Saturday, 14 September 2013

Recaptcha translation of labels

Recaptcha translation of labels

I am building custom recaptcha theme according to API documentation. In
the html I have:
<span class="recaptcha_only_if_image">Enter the words above:</span>
<span class="recaptcha_only_if_audio">Enter the numbers you hear:</span>
<input type="text" id="recaptcha_response_field"
name="recaptcha_response_field" />
I am using several locales and I am setting them like this:
<script type="text/javascript">
var RecaptchaOptions = {
lang : 'fr'
};
</script>
This translates most of the recaptcha but obviously it won't translate the
"Enter the words above:" label I shown above. I know that the default
recaptcha has all the translations for the labels. My question is: can I
somehow get those translations and apply them dynamically so I don't have
to store them on the server side?

No comments:

Post a Comment