Viewing 3 replies - 1 through 3 (of 3 total)
  • Change the following line in the better-wp-security/core/modules/strong-passwords/class-itsec-strong-passwords.php file:

    _e(“Sorry, but you must enter a strong password”,”ithemes-security”);

    into:

    _e( “Sorry, but you must enter a strong password”, “it-l10n-better-wp-security” );

    Please note this change will be lost when updating the iTSec plugin.

    Search this forum for other changes you need to make in order to get the translation working with the iTSec plugin.

    If the provided info above helped you solve the issue please mark this topic as ‘resolved’.

    dwinden

    Thread Starter vizcano

    (@vizcano)

    thanks @dwinden

    i found in the file the two lines that you talked about, i just edit the message inside “sorry…” in those two lines and leave everything just the same and it worked!

    thanks a lot!

    Hi

    I found it here.

    add_filter( 'wc_password_strength_meter_params', 'my_strength_meter_custom_strings' );
    function my_strength_meter_custom_strings( $data ) {
        $data_new = array(
            'i18n_password_error'   => esc_attr__( 'Come on, enter a stronger password.', 'theme-domain' ),
            'i18n_password_hint'    => esc_attr__( 'The password should be at least seven characters long.', 'theme-domain' )
        );
    
        return array_merge( $data, $data_new );
    }

    Thanks goes to Nicola Mustone

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can Strong Passwords error message be translated?’ is closed to new replies.