Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
With Drupal and Drush 8, it is now possible to update translations without l10n_update.
I also think to add a support for drush_language and its options.
Is this feature already planned or can I try to make a patch for that?
Comments
Comment #2
GrimreaperWrong Category.
Comment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedI've not heard of anyone working on that... so go for it :)
Comment #4
GrimreaperHello,
Here is a patch that adds this feature.
The only "problem" I am not satisfied with is that I have duplicated the function _hosting_sync_site_has_module() into _hosting_tasks_extra_site_has_module() to avoid a dependency on hosting_sync module.
Thanks for the review.
Comment #5
GrimreaperAlso, I think to maybe create a separated module to integrate with the drush_language extension.
I imagine a scan of the platform to detect the .po files and then being able to select which po file to import.
Comment #6
GrimreaperI forgot to change project.
Comment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedCool
+1 for moving _hosting_sync_site_has_module to the core hosting_site module so it can be used in both places.
The core_major_version check from #2830557: Support for --entity-updates option on drush updb command might be useful here too... that also sounds like a nice addition for core.
PS: the patch still calls _hosting_sync_site_has_module() ;)
Comment #8
GrimreaperHello,
Thanks @helmo for catching that. here is a rework of the patch.
I will open an issue and provide a patch for the refactoring of the _hosting_sync_site_has_module() function.
Comment #9
GrimreaperI will redo the patch when #2832110: Refactoring of _hosting_sync_site_has_module will be ok.
Comment #10
GrimreaperHello,
Here is the updated patch as the issue #2832110: Refactoring of _hosting_sync_site_has_module is fixed.
Comment #11
helmo CreditAttribution: helmo at Initfour websolutions commentedThanks, I just did some basic testing... looks OK.
Comment #12
helmo CreditAttribution: helmo at Initfour websolutions commentedCommitted, thanks.
Comment #13
GrimreaperThanks @helmo.
But I don't see the commit in the repository: http://cgit.drupalcode.org/hosting_tasks_extra/log
Not pushed yet?
Comment #15
helmo CreditAttribution: helmo at Initfour websolutions commentedI must have been distracted ... it's pushed now.
Comment #16
GrimreaperThanks @helmo.