MyBB Community Forums

Full Version: reCaptcha is the wrong language?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hmm., it is in English for me (image) - strange!

I was wondering if it is possible to customize the language (if someone is interested in using the ReCaptcha)
customizing ReCaptcha Wrote:<script type="text/javascript">
var RecaptchaOptions = {
lang : 'fr',
};
</script>
may be by modifying ./inc/class_captcha.php file

Edit: language option can be added in member_register_regimage_recaptcha template (in Member Templates)
(2014-01-22, 08:52 AM).m. Wrote: [ -> ]hmm., it is in English for me (image) - strange!

I was wondering if it is possible to customize the language (if someone is interested in using the ReCaptcha)
customizing ReCaptcha Wrote:<script type="text/javascript">
var RecaptchaOptions = {
lang : 'fr',
};
</script>
may be by modifying ./inc/class_captcha.php file

Edit: language option can be added in member_register_regimage_recaptcha template (in Member Templates)

lang : 'fr' (or en, in this case) only applies to audio captcha.

I think my best bet is the other modification from that page, and manually rewriting every line;

Quote:<script type="text/javascript">
var RecaptchaOptions = {
custom_translations : {
instructions_visual : "Scrivi le due parole:",
instructions_audio : "Trascrivi ci\u00f2 che senti:",
play_again : "Riascolta la traccia audio",
cant_hear_this : "Scarica la traccia in formato MP3",
visual_challenge : "Modalit\u00e0 visiva",
audio_challenge : "Modalit\u00e0 auditiva",
refresh_btn : "Chiedi due nuove parole",
help_btn : "Aiuto",
incorrect_try_again : "Scorretto. Riprova.",
},

lang : 'it', // Unavailable while writing this code (just for audio challenge)
theme : 'red' // Make sure there is no trailing ',' at the end of the RecaptchaOptions dictionary
};
</script>

of course changing them all to english, and lang to en.
I'll have to give this a try later on, I'll be back with the results.

Yep, changed to the code below fixed the problem.

Quote:<script type="text/javascript">
var RecaptchaOptions = {
custom_translations : {
instructions_visual : "Type the words:",
instructions_audio : "Type what you hear:",
play_again : "Replay the audio",
cant_hear_this : "Download the audio as MP3",
visual_challenge : "Visual Challenge",
audio_challenge : "Audio Challenge",
refresh_btn : "Get two new words",
help_btn : "Help",
incorrect_try_again : "Incorrect. Try again.",
},
lang : 'en', // Unavailable while writing this code (just for audio challenge)
theme : 'clean' // Make sure there is no trailing ',' at the end of the RecaptchaOptions dictionary
};
</script>
Pages: 1 2