Answers.Body: <p>The library in use in civicrm is not language aware. Here's a patch that is working for me on 5.27:</p>
  <pre><code>diff --git a/packages/recaptcha/recaptchalib.php b/packages/recaptcha/recaptchalib.php
  index 78d2b14..c869a09 100644
  --- a/packages/recaptcha/recaptchalib.php
  +++ b/packages/recaptcha/recaptchalib.php
  @@ -114,7 +114,8 @@ function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
           } else {
                   $server = RECAPTCHA_API_SERVER;
           }
  -
  +        $locale = CRM_Core_I18n::getLocale();
  +        $server = $server .'?hl='.$locale;
           $errorpart = &quot;&quot;;
           if ($error) {
              $errorpart = &quot;&amp;amp;error=&quot; . $error;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-11T09:57:28.273Z
Answers.Text: It would be nice to have this fixed in CiviCRM core - I've opened https://lab.civicrm.org/dev/translation/-/issues/50 to discuss/track
Answers.UserDisplayName: Matthew Wire
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-26T21:24:55.187Z
Answers.LastActivityDate: 2020-08-26T21:24:55.187Z
Answers.UserDisplayName: Alan Dixon
Body: <p>How do you update language for recaptcha.</p>
  
  <p>I've tried with this options (like in the example) : lang : 'fr'  </p>
  
  <p>But it's not working.</p>
  
  <p>Thanks.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-11T06:01:34.107Z
Comments.Text: I can confirm that on CiviCRM 4.6.24.
Comments.UserDisplayName: Martin Peth
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-01T22:25:50.110Z
Comments.Text: Any new action on this - I can't get it to show e.g. a German version.
Comments.UserDisplayName: Abteilung Gerontopsychiatrie
Tags: <recaptcha>
Title: Recaptcha: Update Language
ThreadText: # Recaptcha: Update Language
  
  (Asked by: username_0 on 2016-04-29)
  
  How do you update language for recaptcha.
  
  I've tried with this options (like in the example) : lang : 'fr'
  
  But it's not working.
  
  Thanks.
  
  **Tags:** recaptcha
  
  > **Comments:**
  > **username_1**: I can confirm that on CiviCRM 4.6.24.  
  > **username_2**: Any new action on this - I can't get it to show e.g. a German version.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2020-08-26. Score: 1
  
  The library in use in civicrm is not language aware. Here's a patch that is working for me on 5.27:
  
  ```
  diff --git a/packages/recaptcha/recaptchalib.php b/packages/recaptcha/recaptchalib.php
  index 78d2b14..c869a09 100644
  --- a/packages/recaptcha/recaptchalib.php
  +++ b/packages/recaptcha/recaptchalib.php
  @@ -114,7 +114,8 @@ function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
           } else {
                   $server = RECAPTCHA_API_SERVER;
           }
  -
  +        $locale = CRM_Core_I18n::getLocale();
  +        $server = $server .'?hl='.$locale;
           $errorpart = "";
           if ($error) {
              $errorpart = "&amp;error=" . $error;
  
  ```
  
  > **Comments:**
  > **username_4**: It would be nice to have this fixed in CiviCRM core - I've opened https://lab.civicrm.org/dev/translation/-/issues/50 to discuss/track  
  
  ---
  
  