Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    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.

    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

    (@cbutlerjr)

    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.