Click here to Skip to main content
15,923,164 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I have used the following code to use Recaptcha third party control
<asp:label id="lblResult" runat="server" xmlns:asp="#unknown" />

<recaptcha:recaptchacontrol id="recaptcha" theme="white" lang="fr" runat="server" xmlns:recaptcha="#unknown">
    PublicKey="......" PrivateKey="....." />
<br />
<asp:button id="btnSubmit" runat="server" text="Submit" onclick="btnSubmit_Click" xmlns:asp="#unknown" /></recaptcha:recaptchacontrol>



reference url : http://www.google.com/recaptcha/plugins/aspnet

I need to change the language of Recaptcha control, however I am not getting any property to change the language. Can you please let me know how to change the language of the Recaptcha?
Posted
Updated 15-Jul-10 2:30am
v5

You'll likely need to use a script block with the lang setting:
<script>
var RecaptchaOptions = {
   lang: 'pt'
};
</script>


You can find more languages on the docs site[^].

Cheers.
 
Share this answer
 
Comments
Pankaj Saha 19-Jul-10 2:00am    
I have used this...but it is also not working.
TheyCallMeMrJames 19-Jul-10 9:26am    
what language are you trying to set it to?
The asp.net control has a problem setting the language, they forgot to add the Lang property! You can find more information at:

http://code.google.com/p/recaptcha/issues/detail?id=22[^]

There are a binary version with the Lang Property at:

http://recaptcha.googlecode.com/issues/attachment?aid=-7484578712969581507&name=Recaptcha+1.0.4.0+binary.zip&token=a48b6e7f8682aa5dc689aa26ffffd0d1[^]

You can use the control in a simple way:

VB
<recaptcha:RecaptchaControl
                  ID="recaptcha"
                  runat="server"
                  Theme="clean"
                  PublicKey="Paste your key here"
                  PrivateKey="Paste your key here"
                  Lang="es"
                  />


Hope it helps

Bye
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900