TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.75k stars 431 forks source link

[Feature request] Download Plugins with translation files #713

Open maxviewup opened 6 years ago

maxviewup commented 6 years ago

Many plugins are using separated translation files.

When TGMPA downloads the plugins, it doesn't download the translation files. I can manually download the translation files accessing the WordPress updates section.

The problem: Many plugins create content when installed/activated. If the translation file of the plugin isn't installed, the content will be created with an wrong language.

An big example is Contact Form 7, that creates an default form when installed.

Can TGMPA download plugins with the translation files?

jrfnl commented 6 years ago

Can TGMPA download plugins with the translation files?

Only if you point it to a plugin file which contains the translation files.

This is no different from the install/download functionality WP offers by default when you use the plugin search within the WP admin interface.

maxviewup commented 6 years ago

On the current version of WordPress, when you install/update an plugin, it downloads/updates the translation files as well (this may not be visible on an english installation). You can check the files on the wp-content/languages/plugins/ folder.

I've pointed on my project the Contact Form 7 plugin, TGMPA downloaded the plugin, but no translation files. Then i access the update panel and update the translations manually.

Is there a way to make TGMPA download the translation files too?

jrfnl commented 6 years ago

Interesting. We will need to investigate how WP does this and why it doesn't do so when TGMPA downloads the files (TGMPA uses the WP core code for the downloads). Marking this as an enhancement request.

maxviewup commented 6 years ago

Great. It seems to be an separated process. When i update my plugins, it first update the plugins, then update the translation Files.