Title: multi-language label
Last modified: August 30, 2016

---

# multi-language label

 *  Resolved [susox](https://wordpress.org/support/users/susox/)
 * (@susox)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/)
 * Hi there!
    I have a multi-language site and the settings page only allows me 
   to set a single language. How can I update the label language to another languages
   mmm maybe depending on get_locale()? Thanks in advance!
 * [https://wordpress.org/plugins/google-no-captcha-recaptcha/](https://wordpress.org/plugins/google-no-captcha-recaptcha/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [susox](https://wordpress.org/support/users/susox/)
 * (@susox)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545525)
 * So, I managed to add in “class-wdm-contact-form-7-public.php” (line 222) the 
   following code:
 *     ```
       if (get_locale() == "es_ES") {
       	$language_code = "es";
       }
       ```
   
 * is there any less intrusive approach?
 * thanks!
 *  [DJevlp0r](https://wordpress.org/support/users/jaitheradevi/)
 * (@jaitheradevi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545545)
 * Hi susox,
 * You are modifying the right file and your approach is also correct.
 * A more efficient way of achieving your requirement is to add the following code
   to the file class-wdm-contact-form-7-public.php
 *     ```
       $current_website_language_code = substr(get_locale(), 0, 2);
       if($current_website_language_code!=$language_code){
       	$language_code=$current_website_language_code;
       }
       ```
   
 * The above code will serve your requirement and will change the captcha to whatever
   language your website is set of.
 *  Thread Starter [susox](https://wordpress.org/support/users/susox/)
 * (@susox)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545568)
 * thanks!
 *  [shawnhoffman](https://wordpress.org/support/users/shawnhoffman/)
 * (@shawnhoffman)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545760)
 * Would this work with qtranslate-x ?
 *  [shawnhoffman](https://wordpress.org/support/users/shawnhoffman/)
 * (@shawnhoffman)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545761)
 * I am not actually seeing that file – I see
 * google-no-captcha-recaptcha/includes/contact-form-7/class-wdm-contact-form-7.
   php
 * but not the one he refers to
 *  [shawnhoffman](https://wordpress.org/support/users/shawnhoffman/)
 * (@shawnhoffman)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545766)
 * Is there not a way to autodetect language instead of choose language (like [https://es.wordpress.org/plugins/no-captcha-recaptcha/](https://es.wordpress.org/plugins/no-captcha-recaptcha/))??

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘multi-language label’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-no-captcha-recaptcha_c4c4c4.
   svg)
 * [Google No CAPTCHA reCAPTCHA by WisdmLabs](https://wordpress.org/plugins/google-no-captcha-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-no-captcha-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-no-captcha-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/google-no-captcha-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-no-captcha-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-no-captcha-recaptcha/reviews/)

## Tags

 * [label](https://wordpress.org/support/topic-tag/label/)
 * [language](https://wordpress.org/support/topic-tag/language/)
 * [multi-language](https://wordpress.org/support/topic-tag/multi-language/)

 * 6 replies
 * 3 participants
 * Last reply from: [shawnhoffman](https://wordpress.org/support/users/shawnhoffman/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/multi-language-label/#post-6545766)
 * Status: resolved