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.
reCAPTCHA itslef supports localization just for a few languages. In order to translate reCAPTCHA's interface in any other language, you need to translate it locally.
Attached patch enables this. Strings localization is done via Drupal's translation engine (.po files).
Comment | File | Size | Author |
---|---|---|---|
#12 | recaptcha-custom-localisation-1177498-12.patch | 2.42 KB | mvc |
#6 | Afbeelding-3.png | 56.77 KB | knalstaaf |
#3 | reacptcha_localization.patch | 8.87 KB | slashrsm |
#1 | reacptcha_localization.patch | 8.87 KB | slashrsm |
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedAttaching file.
Comment #2
slashrsm CreditAttribution: slashrsm commentedComment #3
slashrsm CreditAttribution: slashrsm commentedCorrected patch (error in variable name).
Comment #4
knalstaaf CreditAttribution: knalstaaf commentedI applied the patch but when I go to the Translation interface (admin/config/regional/translate/translate), it doesn't seem to find "Type the two words:", eventhough I visited the page, ran cron and cleared the cache.
Second method I tried was downloading the Serbian .po file (drupal-7.7.sr.po), put it in Drupal's Profile folder, and added the lines from the
recaptcha.pot
file to thisdrupal-7.7.sr.po
, filled out the necessary translations, visited the page, ran cron and cleared the cache. No result.I'm not sure if I'm using the right method though. Can you describe how this should be done please (using Drupal's translation engine (.po files))?
Comment #5
knalstaaf CreditAttribution: knalstaaf commentedComment #6
knalstaaf CreditAttribution: knalstaaf commentedI guess enabling "Localize reCaptcha" in the reCaptcha tab (admin/config/people/captcha/recaptcha) would do the job, ofcourse. I didn't notice it first - sorry.
Now all of the above works like it should.
Comment #7
RobLoachThanks :-)
Comment #8
mvcoddly, the patch above seems to have disappeared from 7.x-1.10 and 7.x-1.x-dev. can it be put back?
Comment #9
mvcoddly, the patch above seems to have disappeared from 7.x-1.10 and 7.x-1.x-dev. can it be put back?
Comment #10
Liam MorlandCan you determine at what git commit it was added and then when it was removed?
Comment #11
Liam MorlandLocal translation was removed in 32c4f8. I don't think the patch in this issue was ever committed. At the very least, this patch needs a re-roll. I would like to know why translation was removed before putting it back. Someone familiar with Drupal localization will need to work on this.
Comment #12
mvcThat was the git migration commit; if this code was removed then it was likely a bug in the migration script.
Here's a reroll of the patch to 7.x-1.x-dev, which works for me just as it did in D6.
Comment #13
Liam MorlandThanks very much.
Can someone who uses localization test this, please, and mark it RTBC if it is good to go?
Comment #14
Liam MorlandCan anyone confirm that this patch is working?
Comment #15
hass CreditAttribution: hass commented