title: Recaptcha Translations
body: <p>I am trying to use reCAPTCHA.net's captcha service, however I would like to use the custom translations (<a href="https://developers.google.com/recaptcha/docs/customization#i18n" rel="nofollow noreferrer">https://developers.google.com/recaptcha/docs/customization#i18n</a>) as the built in ones do not cover all the languages.  Also, rather than using one of their standard themes, I would like to go completely custom to match the captcha's look to my site.  </p>
  
  <p>Below is a snippet of what I am trying, however for some funny reason it is not working (text remaining in English rather than translated).  I was wondering whether the text links like "Get another Captcha", "Get an audio Captcha", "Help", etc would translate.  If I am understanding correctly, these should translate, depending on the strings I set in the custom_translations attribute.  Also, in case I replace the contents of the text links with an icon instead of text, would the icons get the ALT tag with the appropriate content automatically?</p>
  
  <p>So, for example, if I change this:</p>
  
  <pre><code>&lt;div class="recaptcha_only_if_image"&gt;&lt;a href="javascript:Recaptcha.switch_type('audio')"&gt;Get an audio CAPTCHA&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>To this, would the alt tags of the image be prefilled automatically so that when you hover over the icon it says "Get an audio captcha"?</p>
  
  <pre><code>&lt;div class="recaptcha_only_if_image"&gt;&lt;a href="javascript:Recaptcha.switch_type('audio')"&gt;&lt;img height="16" width="16" src="audio.gif" alt="" /&gt;&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I am asking this question as when I tried to chose one of the standard themes, such as `theme : 'red', the alt tags were being translated automatically depending on the language.</p>
  
  <p>Here is a snippet of my code.  I have removed my public key from the below.</p>
  
  <p><strong>JS</strong>:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var RecaptchaOptions = {
              custom_translations : {
                      instructions_visual : "Scrivi le due parole:",
                      instructions_audio : "Trascrivi ci\u00f2 che senti:",
                      play_again : "Riascolta la traccia audio",
                      cant_hear_this : "Scarica la traccia in formato MP3",
                      visual_challenge : "Modalit\u00e0 visiva",
                      audio_challenge : "Modalit\u00e0 auditiva",
                      refresh_btn : "Chiedi due nuove parole",
                      help_btn : "Aiuto",
                      incorrect_try_again : "Scorretto. Riprova.",
              },
              lang : 'it', // Unavailable while writing this code (just for audio challenge)
              theme : 'custom', // Make sure there is no trailing ',' at the end of the RecaptchaOptions dictionary
        custom_theme_widget: 'recaptcha_widget'
      };
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="recaptcha_widget" style="display:none"&gt;
  
  &lt;div id="recaptcha_image"&gt;&lt;/div&gt;
  &lt;div class="recaptcha_only_if_incorrect_sol" style="color:red"&gt;Incorrect please try again&lt;/div&gt;
  
  &lt;span class="recaptcha_only_if_image"&gt;Enter the words above:&lt;/span&gt;
  &lt;span class="recaptcha_only_if_audio"&gt;Enter the numbers you hear:&lt;/span&gt;
  
  &lt;input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /&gt;
  
  &lt;div&gt;&lt;a href="javascript:Recaptcha.reload()"&gt;Get another CAPTCHA&lt;/a&gt;&lt;/div&gt;
  &lt;div class="recaptcha_only_if_image"&gt;&lt;a href="javascript:Recaptcha.switch_type('audio')"&gt;Get an audio CAPTCHA&lt;/a&gt;&lt;/div&gt;
  &lt;div class="recaptcha_only_if_audio"&gt;&lt;a href="javascript:Recaptcha.switch_type('image')"&gt;Get an image CAPTCHA&lt;/a&gt;&lt;/div&gt;
  
  &lt;div&gt;&lt;a href="javascript:Recaptcha.showhelp()"&gt;Help&lt;/a&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  
   &lt;script type="text/javascript"
  src="http://www.google.com/recaptcha/api/challenge?k=MY_PUBLIC_KEY"&gt;
   &lt;/script&gt;
   &lt;noscript&gt;
   &lt;iframe src="http://www.google.com/recaptcha/api/noscript?k=MY_PUBLIC_KEY"
      height="300" width="500" frameborder="0"&gt;&lt;/iframe&gt;&lt;br&gt;
   &lt;textarea name="recaptcha_challenge_field" rows="3" cols="40"&gt;
   &lt;/textarea&gt;
   &lt;input type="hidden" name="recaptcha_response_field"
      value="manual_challenge"&gt;
   &lt;/noscript&gt;
  </code></pre>
  
  <p>I am also attaching a screenshot of the result.<br>
  <img src="https://i.stack.imgur.com/swB19.png" alt="enter image description here"></p>