diff options
Diffstat (limited to 'modules/recaptcha')
-rw-r--r-- | modules/recaptcha/helpers/recaptcha_installer.php | 5 | ||||
-rw-r--r-- | modules/recaptcha/views/admin_recaptcha.html.php | 3 | ||||
-rw-r--r-- | modules/recaptcha/views/form_recaptcha.html.php | 7 |
3 files changed, 9 insertions, 6 deletions
diff --git a/modules/recaptcha/helpers/recaptcha_installer.php b/modules/recaptcha/helpers/recaptcha_installer.php index f74bf558..12044a1b 100644 --- a/modules/recaptcha/helpers/recaptcha_installer.php +++ b/modules/recaptcha/helpers/recaptcha_installer.php @@ -19,10 +19,7 @@ */ class recaptcha_installer { static function install() { - $version = module::get_version("recaptcha"); - if ($version == 0) { - module::set_version("recaptcha", 1); - } + module::set_version("recaptcha", 1); } static function activate() { diff --git a/modules/recaptcha/views/admin_recaptcha.html.php b/modules/recaptcha/views/admin_recaptcha.html.php index 74932a96..4c041ba2 100644 --- a/modules/recaptcha/views/admin_recaptcha.html.php +++ b/modules/recaptcha/views/admin_recaptcha.html.php @@ -2,7 +2,7 @@ <div id="gAdminRecaptcha"> <h1> <?= t("ReCaptcha Challenge Filtering") ?> </h1> <p> - <?= t("Recaptcha is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. automated spam filtering service. In order to use it, you need to sign up for a <a href=\"%domain_url\">ReCaptcha Public/Private Key pair</a>, which is also free. Once registered, the challenge and response strings are evaluated at <a href=\"%recaptcha_url\">recaptcha.net</a> to determine if the form content has been entered by a bot.", + <?= t("Recaptcha is a free anti-bot service that helps digitize books. In order to use it, you need to sign up for a <a href=\"%domain_url\">ReCaptcha Public/Private Key pair</a>, which is also free. Once registered, the challenge and response strings are evaluated at <a href=\"%recaptcha_url\">recaptcha.net</a> to determine if the form content has been entered by a bot.", array("domain_url" => $form->get_key_url, "recaptcha_url" => "http://recaptcha.net")) ?> </p> @@ -23,6 +23,7 @@ Recaptcha.create("<?= $public_key ?>", "gRecaptcha", { callback: Recaptcha.focus_response_field, lang: "en", + custom_translations : { instructions_visual : "<?= t("Type words to check:") ?>"}, theme: "white" }); </script> diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php index abdf8428..d4031586 100644 --- a/modules/recaptcha/views/form_recaptcha.html.php +++ b/modules/recaptcha/views/form_recaptcha.html.php @@ -6,7 +6,12 @@ Recaptcha.create( "<?= $public_key ?>", "gRecaptcha", - { theme: "white", callback: Recaptcha.focus_response_field }); + { + theme: "white", + custom_translations : { instructions_visual : "<?= t("Type words to check:") ?>"}, + callback: Recaptcha.focus_response_field + } + ); }, 0); </script> |