summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorunostar <unostar@danalan.info>2009-06-15 05:54:45 -0700
committerunostar <unostar@danalan.info>2009-06-15 05:54:45 -0700
commit1081eee201cefa0278e189a2296545097c6f1db4 (patch)
tree43fc5f546af4157c01bbb095c9726181ce46febf /modules
parent2a5ffaae7e656636bf8c9411358bf4f33c31dde8 (diff)
Added "cutom_translations" instruction to Recaptcha to localize & cutomize recaptcha message.
Diffstat (limited to 'modules')
-rw-r--r--modules/recaptcha/views/form_recaptcha.html.php7
1 files changed, 6 insertions, 1 deletions
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>