Support » Plugin: reCAPTCHA for Ninja Forms » Please add localization support

  • Resolved DOOMdesign

    (@doomdesign)


    Hello. The current version of this plugin doesn’t seem to support localization.
    E.g. in ninja-forms-recaptcha.php on line 120 & line 124 (Error response messages), the messages are entered without the gettext function:

    if ( !empty( $response->{'error-codes'} ) && $response->{'error-codes'}[0]!='missing-input-response' ) {
    
    	$error= 'Please check if you have entered Site & Secret key correctly';
    
    }else {
    
    	$error= 'Captcha mismatch, Please try again.';
    }

    whereas for example line 124 should rather look like the following to support localization:

    $error= __('Captcha mismatch, Please try again.','ninja-forms-recaptcha');

    https://wordpress.org/plugins/ninja-forms-recaptcha-field/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please add localization support’ is closed to new replies.