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.
When i try to run drush -v l10n-update it say
Warning: The command callback function l10n_update_drush_update has a deprecated name. It must begin with drush_l10n_update_. Skipping hook functions.
How this problem can be solved?
Comment | File | Size | Author |
---|---|---|---|
#9 | l10n_update-1057150.patch | 7.47 KB | jonhattan |
#9 | l10n_update.drush_.inc_.txt | 5.82 KB | jonhattan |
#8 | l10n_update-1057150-8.patch | 1.31 KB | Sutharsan |
#7 | l10n_update-1057150-7.patch | 1.74 KB | Sutharsan |
Comments
Comment #1
Dematron CreditAttribution: Dematron commentedComment #2
jonhattanComment #3
Dematron CreditAttribution: Dematron commentedTried to rename functions. Warning disappear, but translations still don't want downloading
Comment #4
Gábor HojtsySorry, but "don't want downloading" is not a too specific explanation that we can try and solve. What's the error message / symptom? What's in the logs? Your Drush version? Any other circumstance of significance?
Comment #5
Gábor HojtsyComment #6
Dematron CreditAttribution: Dematron commentedDrush version - All-versions-4.2
but there are some translations that should be updated
l10n-update - last dev version
Comment #7
Sutharsan CreditAttribution: Sutharsan commentedThis patch fixes the drush bug. But it needs work because the update process does not work.
drush l10n-update
does check for possible updates, but does not download these update.Comment #8
Sutharsan CreditAttribution: Sutharsan commentedOne without dpm().
Comment #9
jonhattanSo I was to review this patch and ended up rewritting the whole command file. There're two new commands. In summary they are:
1. l10n-update-refresh
2. l10n-update-status // prints a table
3. l10n-update // not limited to a number of imports as before but runs the batch process.
Commands 2 and 3 accepts
--languages=es,fr,de
. l10n-update also accepts--mode=keep|overwrite
. Those options are validated.Attached a patch and also the whole file for readability. This set of commands does work with versions 6.x and 7.x of the module.
Comment #10
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedThumbs up for getting the patch in #9 in as soon as possible, as what is now available does not work at all. I tested the patch with success on a multi-site Drupal installation. See the results below for all 3 commands mentioned in #9.
I also used the l10n-update-refresh and l10n-update-status commands on 2 other sites, but did not test the l10n-update command for these sites, as they had no available updates.
Comment #11
Manuel Garcia CreditAttribution: Manuel Garcia commentedlooks good to me too, great work jonhattan
Comment #12
afeijoI dont think this has been commited yet
any news when? I cant wait to use drush to update all l10n :)
Comment #13
EugenMayer CreditAttribution: EugenMayer commented/me adds a not, that patch is only working with drush 4 or higher ( _convert_cvs.. )
Comment #14
Gábor Hojtsy@EugenMayer: what do you mean? Will it break? Do you think it is a significant problem? (I'm not sure).
@all: Looking at the patch, I've only seen one cosmetic problem "Implementation of" vs. "Implements". Otherwise it looks good IMHO.
Comment #15
EugenMayer CreditAttribution: EugenMayer commented#14 @Gabor: This implementation would not work with drush 3 at allow due to the call to convert_cvs .. but i guess drush 3 is out of live already and not even listed on the project page anymore, so this is just fine.
Just wanted to note it, so it could be stated in the release notes
Comment #16
Gábor HojtsyCommitted to Drupal 7.x. Attempted to apply patch to 6.x checkout, but it did not apply. Still needs backport.
Comment #17
EugenMayer CreditAttribution: EugenMayer commented@ #14: i simply replaced the d6 version with the new file, did not even try to apply the patch. Works just fine - no issues at all. Already tested in several systems
Comment #18
Gábor HojtsyOk, superb, committed to 6.x too.