在asp.net中更改Recaptcha的语言 [英] change language of Recaptcha in asp.net
本文介绍了在asp.net中更改Recaptcha的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下代码来使用Recaptcha第三方控件
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>
参考网址:http://www.google.com/recaptcha/plugins/aspnet
我需要更改Recaptcha控件的语言,但是我没有任何属性可以更改语言.
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?
推荐答案
您可能需要使用具有lang设置的脚本块:
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.
asp.net控件在设置语言时遇到问题,他们忘记添加Lang属性!您可以在以下位置找到更多信息:
http://code.google.com/p/recaptcha/issues/detail?id=22 [^ ]
Lang属性有一个二进制版本,位于:
http://recaptcha.googlecode.com /issues/attachment?aid=-7484578712969581507&name=Recaptcha+1.0.4.0+binary.zip&token=a48b6e7f8682aa5dc689aa26ffffd0d1 [
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:
<recaptcha:RecaptchaControl
ID="recaptcha"
runat="server"
Theme="clean"
PublicKey="Paste your key here"
PrivateKey="Paste your key here"
Lang="es"
/>
希望对您有帮助
再见
Hope it helps
Bye
这篇关于在asp.net中更改Recaptcha的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文