I got the update and you can try to change the language for your captcha by:
- Dequeue the wpt-cred-recaptcha script
- Enqueue the script again with your required language
Thank you for your reply,
But I'm afraid this solution is not acceptable because it will force only one language by using the explicit setting, which in turn means when a client switches to English he will still see the Greek version, because this change is implemented via the functions.php file.
How can I pass a the language parameter via the form itself, so I can at least build two different forms?
If you can be as specific as possible it would be appreciated.
Also is it possible that you are forcing the hl=en parameter in your script? Normally if a user's browser language setting is in a different language other than English, recaptcha should automatically follow the user's browser language setting, which is not the case here. Can you also look into this?
Hi,
Thank you for your reply.
Let's try not to over complicate this simple issue.
Please read Google's reCAPTCHA implementation for developers here: hidden link
and also see the all the available language codes here: hidden link
The WPML plugin that you are referring to has absolutely nothing to do with this issue, and no I am not using that plugin.
The fact is that your plugin developer has omitted the implementation for setting the lang parameter, making it difficult for multilingual website owners to use the reCAPTCHA feature in it's localized version.
So I would appreciate it very much if you can speak to the software developer and ask him to implement a localization (lang parameter) setting in the next update to solve this issue.
Why make things so difficult, when all I need is to append a parameter like so:
<script src='hidden link;
You will see the following function - Where we are retrieving user local language using function get_user_locale() but not the browser's default language. So, this is how the language for ReCaptcha is loaded using following code:
Thank you for your prompt reply.
I will be expecting a reply, hopefully together with a solution that allows me to set the language to my liking on each form I create.
Even though Google's reCaptcha has language auto-detect and so if it's not explicitly set it will default to the language set by the user's browser, the feature does not work properly all the time so it's not reliable. This if course is a Google issue.
But the best way to implement and correct the problem is to allow the user to append the ?hl=xx to the URL to every instance of the form that the user has created and this may only be done via your plugin.
Well - as you can see with the code - there is no such option to set the language param manually, I will ask our Dev and pass your concern as feature request for assessment and it will take considerable time as it's totally depend on predefined priorities set for our Devs.
I really appreciate the fact that you tried to help.
I understand about the existing priorities, but please make sure this issue gets on the list of things to do with your devs, this way we will not have to address the same issue 10 months from now, because in reality it is a very simple fix.