ptsjomei / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

new recaptcha - hl parameter does not work with render=explicit #208

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add hl=en as argument of api.js
2. load page

What is the expected output? What do you see instead?

the expected output is to have widget in english but the language is the 
default browser language : FR

What version of the product are you using? On what operating system?

Chrome, Safari, last version of recaptcha: 
https://www.google.com/recaptcha/api.js

Please provide any additional information below.

Works if it is not an explicit render. See example. You can try hl=fr if you 
browser if you are on a english OS.

<html>
  <head>
    <title>reCAPTCHA demo: Explicit render after an onload callback</title>
    <script type="text/javascript">
      var onloadCallback = function() {
        grecaptcha.render('html_element', {
          'sitekey' : 'your_site_key'
        });
      };
    </script>
  </head>
  <body>
    <form action="?" method="POST">
      <div id="html_element"></div>
      <br>
      <input type="submit" value="Submit">
    </form>
    <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit&hl=en" async defer></script>
  </body>
</html>

Original issue reported on code.google.com by erwan.mo...@gmail.com on 1 Dec 2014 at 3:16

GoogleCodeExporter commented 8 years ago
We're aware of this issue and a fix will go out in the next few days.

Original comment by supp...@recaptcha.net on 1 Dec 2014 at 8:24

GoogleCodeExporter commented 8 years ago
This is now fixed.

Original comment by supp...@recaptcha.net on 2 Dec 2014 at 10:10

GoogleCodeExporter commented 8 years ago
I am facing the exact issue now on safari.
How can I fix it??

Original comment by sohan...@gmail.com on 11 Aug 2015 at 4:59