recaptcha and custom language

UI Components for JSF
Post Reply
SebastianD
Posts: 24
Joined: 04 Dec 2010, 14:52
Location: Poland
Contact:

13 Jan 2011, 20:42

How can I get custom language in p:captcha? I mean languages not provided by google (tr is provided).
I've read this:
http://code.google.com/apis/recaptcha/d ... ation.html

And there is:

Code: Select all

<script type="text/javascript">
        var RecaptchaOptions = {
                custom_translations : {
                        instructions_visual : "Scrivi le due parole:",
                        instructions_audio : "Trascrivi ci\u00f2 che senti:",
                        play_again : "Riascolta la traccia audio",
                        cant_hear_this : "Scarica la traccia in formato MP3",
                        visual_challenge : "Modalit\u00e0 visiva",
                        audio_challenge : "Modalit\u00e0 auditiva",
                        refresh_btn : "Chiedi due nuove parole",
                        help_btn : "Aiuto",
                        incorrect_try_again : "Scorretto. Riprova.",
                },
                lang : 'it', // Unavailable while writing this code (just for audio challenge)
                theme : 'red',
        };
</script>
But when I put it in my xhtml before p:captcha - it doesn't work :/
Anybody knows?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests