Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recaptcha translation

Tags:

recaptcha

Does anyone know how to change text language from Recaptcha?

I've already tried:

<script type="text/javascript">
var RecaptchaOptions = {
   lang : 'fr',
};
</script>

But it doesn't change.

like image 359
ozsenegal Avatar asked Aug 24 '10 23:08

ozsenegal


People also ask

How do you translate CAPTCHA?

Captcha is an abbreviation for 'completely automated public Turing test to tell computers and humans apart'.

How do I change the language on reCAPTCHA?

Updating the Recaptcha language from English to another language is possible by adding a small script at the header section of your form. Recaptcha with updated language. 2.) In the Header/Footer dialog box, select HTML, click on the "Source" button in Header, and paste in all of the code from the attached text (.

What does reCAPTCHA mean?

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse. A “CAPTCHA” is a turing test to tell human and bots apart. It is easy for humans to solve, but hard for “bots” and other malicious software to figure out.

Is reCAPTCHA owned by Google?

reCAPTCHA is owned by Google. The original iteration of the service was a mass collaboration platform designed for the digitization of books, particularly those that were too illegible to be scanned by computers.


4 Answers

For the reCAPTCHA V2 widget you can override the default interface language detection as a parameter to the javascript. See the new docs.

<script src="https://www.google.com/recaptcha/api.js?hl=fr"></script>
like image 69
Aaron Avatar answered Sep 19 '22 19:09

Aaron


set your lang at last of api address (persian "farsi"):

https://www.google.com/recaptcha/api.js?hl=fa

find your language short name in https://developers.google.com/recaptcha/docs/language

like image 41
shahab morovati Avatar answered Sep 21 '22 19:09

shahab morovati


Append &amp;hl=fr to the public key.

like image 33
Hang Avatar answered Sep 21 '22 19:09

Hang


Appending the language code to your public key work very well :

define('RECAPTCHA_PUBLIC_KEY', '__YOUR_PUBLIC_KEY_HERE__&amp;hl=fr');
echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY);

So you can remove your JavaScript from your code. Or leave it if you use other options, but remove "lang:'fr'"

like image 43
Vadzym Avatar answered Sep 19 '22 19:09

Vadzym