1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Incorrect language for No CAPTCHA.

Discussion in 'Troubleshooting and Problems' started by alexgrist, Jan 14, 2015.

  1. alexgrist

    alexgrist Member


    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.
  2. Allan

    Allan Well-Known Member

    Work for me:

  3. Brogan

    Brogan XenForo Moderator Staff Member

    The template is captcha_nocaptcha but I'm not sure if there are any params available to force the language (I haven't looked into it).
  4. alexgrist

    alexgrist Member

    It works in French as the server is in France, however we're an English forum and so it should be in English. I'm not sure if it may be CloudFlare interfering with the script loading.
  5. Mike

    Mike XenForo Developer Staff Member

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

    alexgrist Member

    The Accept-Language is "en-GB,en;q=0.8" so I guess it's from GeoIP.
  7. alexgrist

    alexgrist Member

    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:

    You can find the language codes here: https://developers.google.com/recaptcha/docs/language
    octabrain, majafy and Skylined like this.
  8. Skylined

    Skylined Active Member

    I've modified the two files, and it's working. (y)

    It would be better if XenForo could have an option to specify the language instead of having to edit files. :)

Share This Page