[last release] - hl - language support does not work with render=explicit

247 views
Skip to first unread message

Erwan MORVILLEZ

unread,
Dec 1, 2014, 8:55:40 AM12/1/14
to reca...@googlegroups.com

Hi,

I think there is a bug  with last release of recaptca google!

I can't force language when I use specific parameters onload & render=explicit.

Works perfectly with simple Google example :

try to display in en with a FR browser for me : 

<html>
 
<head>
   
<title>reCAPTCHA demo: Simple page</title>
     
<script src="https://www.google.com/recaptcha/api.js?hl=en" async defer></script>
 
</head>
 
<body>
   
<form action="?" method="POST">
     
<div class="g-recaptcha" data-sitekey="your_site_key"></div>
     
<br/>
     
<input type="submit" value="Submit">
   
</form>
 
</body>
</html>

But not working with a manual render

<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>

The widget is loaded in default browser language : fr for me.

It's weird that script is loaded twice :



Any idea?

Regards

Erwan

Tomy Bombardier

unread,
Dec 1, 2014, 1:21:58 PM12/1/14
to reca...@googlegroups.com
Same like I post last week https://groups.google.com/forum/#!topic/recaptcha/SA1jDHvFUwI

The new recaptcha pass thru a iframe where it load the script form the local into the browser.
If you find a solution let's me now :)

Recaptcha Captcha

unread,
Dec 1, 2014, 3:19:45 PM12/1/14
to reCAPTCHA
Thanks a lot for posting your feedback. We're aware of this issue and a fix will go out in the next few days.

Thanks,
ReCAPTCHA support

--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+...@googlegroups.com.
To post to this group, send email to reca...@googlegroups.com.
Visit this group at http://groups.google.com/group/recaptcha.
For more options, visit https://groups.google.com/d/optout.



--
reCAPTCHA: stop spam, read books
http://www.google.com/recaptcha

Recaptcha Captcha

unread,
Dec 2, 2014, 5:07:53 PM12/2/14
to reCAPTCHA
This is now fixed.

ReCAPTCHA support
Reply all
Reply to author
Forward
0 new messages