Currently, drush l10n-update command allows to update translations for all modules with available translations.

I need to filter the list of modules that will be updated (for instance, only update custom module translations).
We could add an argument / option to specify which modules should be updated.

By the way, this post is related to #1026320: Make it possible to select/deselect specific modules for updates.

Comments

make77’s picture

Status: Active » Needs review
StatusFileSize
new1.69 KB

Here is a patch to do so.
For instance :
drush l10n-update my_module1 my_module2 will only update the translations for these two modules.

make77’s picture

Same patch with few corrections.

hrmoller’s picture

Works like a charm. I would give this a go!

hrmoller’s picture

I did a few modifications to the above patch to gain the ability to force a refresh of the source and thereby avoid the cache.

sutharsan’s picture

Version: 7.x-1.0-beta3 » 7.x-2.x-dev
Issue summary: View changes

Moving this to 7.x-2.x branch.

geek-merlin’s picture

Patch #4 looks fine. I would suggest to name the parameter and associated variables "projects"/$selected_projects for consistency.

sutharsan’s picture

Issue tags: +Needs reroll

Patch is outdated and needs a reroll to 7.x-2.x branch.

sutharsan’s picture

Status: Needs review » Needs work

Changing status according to the actual issue state.