joomla-irish / language_pack

Joomla Irish Translation Packs
1 stars 0 forks source link

Google Recaptcha 2 label #5

Open beamaria opened 7 years ago

beamaria commented 7 years ago

Hi, I have a problem with the translation of the label " I am not a robot" in joomla contact page (single contact form); unfortunately ga-IE is not in the list of language codes used by Google for the version 2 of Recaptcha, so there is no Irish translation for this label. I found this solution in Stack Overflow:

<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=ga-IE">

But I've no idea where to put this code in my Joomla website, or if could be rendered correctly in the front-end...

Any idea on how to sort this problem would be very appreciated!

Thanks

kscanne commented 7 years ago

I don't know about the technical side, but the correct translation of "I am not a robot" is "Ní róbat mé", in case that helps.

rvbgnu commented 7 years ago

Thanks @beamaria to have reported this. Unfortunately still not on Google list of language, for nearly 2 years now. Nobody likes captachs, and it is even worth when it is the only part not translated...

Thanks Kevin for the quick translation, again!

I will look at the JS parameter solution, and check if it can be implemented at Joomla's core level. Otherwise I will look at a (not so) quick plugin or user friendly solution 8-)

beamaria commented 7 years ago

Thank you both for your help! Anyway it's awful Google hasn't corrected this incredible oversight !! Maybe they don't know the saying "Ní tír gan teanga" ;-)

rvbgnu commented 7 years ago

Actually, the script is already rendered with the correct language, as the Joomla default ReCaptcha plugin adds the Joomla language tag parameter of the page to the script call <script src="https://www.google.com/recaptcha/api.js?onload=JoomlaInitReCaptcha2&render=explicit&hl=en-GB"></script> if you look in the <head> source of the page.

I've tried with a few other languages, and it works well by default, no need to change the code. The issue is that Google does not have Irish as a language option, so <script src="https://www.google.com/recaptcha/api.js?onload=JoomlaInitReCaptcha2&render=explicit&hl=ga-IE"></script> does not work, falls back to English... https://developers.google.com/recaptcha/docs/language

rvbgnu commented 7 years ago

The alternative would be to use another system than Google ReCaptcha, and I could check if we can use it in different languages. I've seen some here in JED (Joomla Extension Directory) https://extensions.joomla.org/tags/captcha/

And ECC+ might work, if it can be used without ReCaptcha. The mathematical question, or the simple question may work fine. There is only a few strings to translate for the front-end. http://joomla25.kubik-rubik.eu/demo-ecc-easycalccheck-plus

Please @beamaria have a look at which one will fit your needs, and let us know!