--- recaptcha.module	2008-04-22 10:47:41.000000000 +0100
+++ recaptcha-i18n.module	2008-04-22 11:33:33.000000000 +0100
@@ -173,7 +173,14 @@ function recaptcha_captcha() {  
             $js .= ", custom_theme_widget : 'recaptcha_custom_theme_widget'";
             $recaptcha_form_value = theme('recaptcha_custom_widget');
           }
-          
+          if (module_exists('i18n')) {
+            //get current language and truncate at 2 characters
+            $lang = substr(i18n_get_lang(), 0, 2);
+            //add to javascript if it is supported
+            if (in_array($lang, _recaptcha_supported_languages())) {
+              $js .= ", lang : '$lang'";
+            }
+          }
           // Set the default tab index
           if (!empty($recaptcha_tabindex)) {
             $js .= ', tabindex : '. $recaptcha_tabindex;
@@ -212,6 +219,11 @@ function recaptcha_captcha() {  
   }
 } // function recaptcha_captcha
 
+function _recaptcha_supported_languages() {
+  $langs = array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr');
+  return $langs;
+}
+
 /**
  * Creates the custom themed recaptcha widget
  */ 
