Forums

Google NoCaptcha Translation

tobisagt 06 Mar, 2017
Hi,

we use chronoforms on a german website and want to translate it into english. Everything works fine, but the Google NoCapchta is still in german. How can it be translated?

- Tobias
calculus00 06 Mar, 2017
Hello tobisagt,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I use Google NoCaptcha?
P.S: I'm just an automated service😉
GreyHead 06 Mar, 2017
Hi Tobias,

Google ReCaptcha picks up the language that is set for the current page. You can force a language using the hl=en parameter if you want a different language. See the last section in this FAQ I think that will let you set it in the same way.

Bob
tobisagt 06 Mar, 2017
Hi Bob,

thanks for your answer!

We use the standard joomla way to translate the website. If i use english as the default language the captcha i still in german. How can that be? Where to set the hl=en parameter?

Tobias
GreyHead 06 Mar, 2017
Hi Tobias,

Please see the link in my last post.

Bob
tobisagt 06 Mar, 2017
Hi Bob,

are you sure you send me the correct link? The faq is just about how to implement Google ReCaptcha. I didn't find anything about multilanguage or your addressed parameter.

Tobias
GreyHead 06 Mar, 2017
Hi Tobias,

" See the last section in this FAQ I think that will let you set it in the same way"

Bob
tobisagt 06 Mar, 2017
Hi Bob,

at first thanks for beeing patient with me.🙂

I put this code into the site key field, but don't work: ...L8XbQd" hl="en

Tobias
GreyHead 06 Mar, 2017
Hi Tobias,

You are correct - it doesn't work from there :-(

I have a hack that will change it successfully - but it would affect all forms on your site :-(

In the file /administrator/components/com_chronoforms5/chronoforms/actions/load_nocaptcha/load_nocaptcha.php at about line 30 you can add a language tag like this
		$doc = \GCore\Libs\Document::getInstance();
        $doc->addJsFile('https://www.google.com/recaptcha/api.js?hl=fr');

I'm not sure if that helps you though?

Bob
tobisagt 06 Mar, 2017
Hi Bob,

thanks. That solution works but is global. That means the german users will get the english version too. Now, what i did is to exclude the line and check in the index.php which language the user is and load the correct js file. Its not the nice way, but it works for me.

The question still is why Google ReCaptcha don't change the language itself? We use the event component "Matukio" on our website. Here, we don't have problems like that with the ReCaptcha.

Thanks so far for your support Bob! If you have a solution for that in the future let me know, please🙂

Tobias
GreyHead 06 Mar, 2017
Hi Tobias,

I don't remember seeing this problem before and ChronoForms doesn't set the language anywhere so I suspect that the issue is related to how the languages are being implemented on your site.

Bob
This topic is locked and no more replies can be posted.