Title: CAPTCHA input code not localized
Last modified: August 21, 2016

---

# CAPTCHA input code not localized

 *  Resolved [miscbloggen](https://wordpress.org/support/users/miscbloggen/)
 * (@miscbloggen)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/captcha-input-code-not-localized/)
 * Hi!
 * In wp-members/forms.php the string “Input the code” is hard coded. Is it possible
   for you to make it into a variable so that it can be localized properly?
 * It would be awesome 🙂
 * BR,
    Samuel
 * [https://wordpress.org/plugins/wp-members/](https://wordpress.org/plugins/wp-members/)

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

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/captcha-input-code-not-localized/#post-5147776)
 * It’s actually not hard coded. The __() indicates that gettext will be executed
   on this string.
 * There were new strings added to the localization template with this update. So
   it’s in the template but a translation has not been provided for this string.
 *  [crodexter](https://wordpress.org/support/users/crodexter/)
 * (@crodexter)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/captcha-input-code-not-localized/#post-5147851)
 * Hello,
 * I have input text in Captcha “Type the text”?
    Is it possible to get all Captcha
   in specified language (Get a new chalange”…)
 * In Captcha manual I see this
    “var RecaptchaOptions = { lang : ‘fr'”
 * but I don’t know how to add it properly in wp-members/forms.php
    var RecaptchaOptions
   = { theme : \”. $arr[‘theme’] . ‘\’ }; If that is a place for it?
 * BTW, how can I define which language file to use?
 * Thank you
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/captcha-input-code-not-localized/#post-5147859)
 * Yes, that is where you would define a language for the reCAPTCHA. However, I 
   would recommend that you use the wpmem_recaptcha filter. Assuming the theme was‘
   red’, that look like this:
 *     ```
       add_filter( 'wpmem_recaptcha', 'my_recaptcha_filter' );
       function my_recaptcha_filter( $str ){
       	$old = "var RecaptchaOptions = { theme : 'red' }";
       	$new = "var RecaptchaOptions = { theme : 'red', lang : 'fr' }";
       	return str_replace( $old, $new, $str );
       }
       ```
   
 * The reCAPTCHA function should probably be updated to include language if the 
   site is localized so I’ll put that on the project list.
 * The language file that is used by the plugin is determined by the language you
   are running WP in. This is set in your wp_config file.

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

The topic ‘CAPTCHA input code not localized’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

## Tags

 * [Localization](https://wordpress.org/support/topic-tag/localization/)

 * 3 replies
 * 3 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/captcha-input-code-not-localized/#post-5147859)
 * Status: resolved