Allow updating language packs for individual plugins and themes
swissspidy opened this issue · 1 comments
Followup to the discussion over at #29 (comment)
What does not work as we had initially discussed is that operations like
update
automatically work across all plugins/themes and language packs are always downloaded in their latest version, irregardless of what version of the plugin/theme is installed.
Perhaps we can do something here. The relevant code is in \WP_CLI\CommandWithTranslation::update()
.
This would probably also fix an inconsistency I just noticed when using wp language plugin list --all
.
That command showed a few available updates for some plugins for the de_DE
locale.
However, when running wp language plugin update --dry-run
, only one plugin was listed.
What does not work as we had initially discussed is that operations like
update
automatically work across all plugins/themes and language packs are always downloaded in their latest version, irregardless of what version of the plugin/theme is installed.
In theory it should work.
For example, for Akismet there is https://downloads.wordpress.org/translation/plugin/akismet/4.0.8/de_DE_formal.zip but also https://downloads.wordpress.org/translation/plugin/akismet/3.2/de_DE_formal.zip.