[英]How to turn off Google reCAPTCHA localization or lock to English
I tried &hl=en-GB
and this script: 我尝试了
&hl=en-GB
和以下脚本:
<script type="text/javascript">
var RecaptchaOptions = {
lang : 'en-GB'
};
</script>
But it won't turn off localization. 但这不会关闭本地化。 Is there any type of technique that I can restrict the language or stop localization?
有什么类型的技术可以限制语言或停止本地化?
That was how you changed the language for reCAPTHCA v1 这就是您更改reCAPTHCA v1语言的方式
For v2 you can override in JavaScript like this: 对于v2,您可以像这样在JavaScript中覆盖:
<script src="https://www.google.com/recaptcha/api.js?hl=en-GB"></script>
Or you can omit it from JavaScript all together and append it to your key in PHP 或者,您可以将它们全部从JavaScript中省略,然后将其附加到PHP的密钥中
define('RECAPTCHA_PUBLIC_KEY', '__YOUR_PUBLIC_KEY_HERE__&hl=en-GB');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.