XF 1.4 Incorrect language for No CAPTCHA.

alexgrist

Member
Hello,

I've just installed the 1.4.4 update specifically to enable the recent reCAPTCHA (No CAPTCHA) and it's rendering it in the wrong language (french) which I assume is due to the servers location being in France.

I'm looking for the template that loads the captcha or that loads the javascript for it since there are language code options for recaptcha.

Any help would be much appreciated.
 
We don't specify a specific language code so we're allowing Google to detect your language (which is presumably using the Accept-Language header, though it could be doing GeoIP).
 
For anyone else that has this issue and want to force a specific language, you'll need to go into both of the "xenforo.js" files and change the following:

Code:
getScript("https://www.google.com/recaptcha/api.js?onload=XFNoCaptchaCallback&render=explicit")
to
Code:
getScript("https://www.google.com/recaptcha/api.js?onload=XFNoCaptchaCallback&render=explicit&hl=en-GB")

You can find the language codes here: https://developers.google.com/recaptcha/docs/language
 
Back
Top Bottom