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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slashrsm’s picture

Attaching file.

slashrsm’s picture

Status: Active » Needs review
slashrsm’s picture

Corrected patch (error in variable name).

knalstaaf’s picture

Status: Active » Needs review

I 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 this drupal-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))?

knalstaaf’s picture

Status: Needs review » Active
knalstaaf’s picture

Status: Needs review » Closed (works as designed)
FileSize
56.77 KB

I 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.

RobLoach’s picture

Thanks :-)

mvc’s picture

Status: Closed (works as designed) » Reviewed & tested by the community

oddly, the patch above seems to have disappeared from 7.x-1.10 and 7.x-1.x-dev. can it be put back?

mvc’s picture

oddly, the patch above seems to have disappeared from 7.x-1.10 and 7.x-1.x-dev. can it be put back?

Liam Morland’s picture

Can you determine at what git commit it was added and then when it was removed?

Liam Morland’s picture

Status: Reviewed & tested by the community » Needs work

Local 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.

mvc’s picture

Status: Needs work » Needs review
FileSize
2.42 KB

That 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.

Liam Morland’s picture

Thanks very much.

Can someone who uses localization test this, please, and mark it RTBC if it is good to go?

Liam Morland’s picture

Issue summary: View changes

Can anyone confirm that this patch is working?

hass’s picture

Status: Needs review » Closed (outdated)