Support » Plugin: Contact Form 7 » How to set the reCaptcha language?

Viewing 15 replies - 1 through 15 (of 43 total)
  • Plugin Author Takayuki Miyoshi


    You can specify the language of CAPTCHA widget by adding hl parameter to the URL of api.js.

    Thank you!

    Sorry, I didn’t specified that I was using the graphical interface of CotactForm7 to generate a shortcode.
    So, can the reCaptcha shortcode enriched with a language parameter?

    Plugin Author Takayuki Miyoshi


    No. The hl parameter must be added to the URL of api.js.

    Thank you,

    Is there any How-To for doing this out of WordPress or the Plugin?
    Sorry for having no clue.

    Same here.
    Would like to know.


    Gerhaaard I found a solution:
    In modules folder you have a file recaptcha.php
    In that file at line 243 you currently have:

    ‘render’ => ‘explicit’ ), $url );

    Change that to:

    ‘render’ => ‘explicit&hl=XX’ ), $url );

    Replace XX with your language code found here:

    Please note that upon every update of CF7 plugin, you’d have to change this manually again unless CF7 developer decides to add some sort of support for defining a language from within the plugin itself.

    All best,

    Hi krko,

    Thank you very much for your investigation work.

    Have a nice weekend!

    Thank you, thats nice. Anyone has a code to put in the child functions php, so i dont have to manually do it everytime there is an update! thanks!

    @takayuki Miyoshi – would you consider adding a filter on 'render' => 'explicit' ), $url ); to allow users to set this via their child theme functions php.

    @krko Thx for the how-to; works like a charm.
    Hopefully this will become a plugin setting in the future…

    Plugin Author Takayuki Miyoshi


    @buzztone I’m not considering it seriously for now. reCAPTCHA has ability to detect client language and automatically display a widget in the language. I don’t get in what situation the auto-detect isn’t useful.

    Autodetect would be the best way.
    But often it doesn’t work.
    So a workaround is appreciated.


    Hi takayuki,

    I’ll tell you why autodetect isn’t good…

    If you’re currently in Thailand (visiting) and you don’t speak a word in Thai, recaptcha will be displayed to you in Thai. It’s ok assuming you know what’s required of you but what happens if you see this the first time in your life?
    Moreover even if you know recaptcha and you know you should thick there it might than display images to you asking you to mark all images with grass in them for example. If it’s written in Thai and you only speak English this is a huge problem since you will not know what to do.

    Moreover their autodetect simply doesn’t work reliably! On my website, visiting from Firefox resulted in French captcha, Chrome got English and Safari got Hebrew which is the only correct one. And NO my Firefox isn’t set to French nor is Chrome set to English. So obviously the autodetect simply isn’t reliable.

    Just my two cents.


    Plugin Author Takayuki Miyoshi


    If the auto-detect isn’t reliable, that is a problem. But it is a problem that Google should address.

    @takayuki Miyoshi

    You’re absolutely right but since they probably won’t do a dime since they think they know the best, it would be nice to have a workaround as a fallback, especially one that wouldn’t require too much work. A filter so one can hook into it from functions.php would be nice, options to set language preference within the plugin even nicer.

    Don’t get me wrong, I think CF7 is awesome and I love it and I’m not trying to tell you what to do, but if there’s a demand it would be nice to have a fallback in what is otherwise one of the best plugins for wordpress.

    Recaptcha is a crucial part of CF7 and CF7 is a crucial part of any website using it so it’s fundamental one can make sure it works reliably and properly.

    All best,

Viewing 15 replies - 1 through 15 (of 43 total)
  • The topic ‘How to set the reCaptcha language?’ is closed to new replies.