--- recaptcha.module (revision 2428) +++ recaptcha.module (working copy) @@ -170,6 +170,14 @@ function recaptcha_captcha() { $js .= ", custom_theme_widget : 'recaptcha_custom_theme_widget'"; $recaptcha_form_value = theme('recaptcha_custom_widget'); } + + // Add i18n support + global $language; + if ($language->language) { + // reCAPTCHA uses two-character language codes, so 'pt-br' must be + // passed as 'pt' (cf. http://wiki.recaptcha.net/index.php/I18n) + $js .= ", lang : '". substr($language->language, 0, 2) ."'"; + } // Set the default tab index if (!empty($recaptcha_tabindex)) {