Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1284167
    maghrabi42
    Participant

    Hello,
    if you can tell me please how to translate the message which appears on invalid username and password
    you can find it in attachment

    #1284213
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Please follow this post: https://community.theme.co/kb/translation/

    Let us know how it goes.

    #1284307
    maghrabi42
    Participant

    hello,
    i did not find it on x.pot of theme and woo commerce
    thak you

    #1284330
    Christopher
    Moderator

    Hi there,

    Please provide us with URL of page where you added login form.

    Thanks.

    #1284338
    maghrabi42
    Participant
    This reply has been marked as private.
    #1284643
    Lely
    Moderator

    Hello There,

    Thank you for the credentials.
    The message you were seeing is the default wordpress message. It is not part of the theme. In case you want to translate the message please try adding the following code on your child theme’s functions.php file:

    add_filter( 'wp_login_errors', 'override_incorrect_password_msg', 10, 2 );
    function override_incorrect_password_msg( $errors, $redirect_to ) {
        if( isset( $errors->errors['incorrect_password'] ) ) {
            $errors->errors['incorrect_password'][0] = 'Your new translated message';
        }
    
        return $errors;
    }
    add_filter( 'wp_login_errors', 'override_incorrect_username_message', 10, 2 );
    function override_incorrect_username_message( $errors, $redirect_to ) {
        if( isset( $errors->errors['invalid_username'] ) ) {
            $errors->errors['invalid_username'][0] = 'Your new translated message';
        }
    
        return $errors;
     }

    Then replace Your new translated message with your translated message.

    Hope this helps.

    #1285564
    maghrabi42
    Participant

    thanks for your help about the translate is not on your scope but the code is not make any change if you can help me for that please
    thank you so much

    #1285666
    maghrabi42
    Participant

    you can see the attachment please
    sorry about ask a lot of questions 🙂

    #1285699
    Lely
    Moderator

    Hello There,

    I can see that you do have caching plugin. Please try clearing cache and then check again. Do let us know how this goes.

    #1285769
    maghrabi42
    Participant

    Hello,
    i get error about the plugin i disaple the w3 total cache
    thank you

    #1285771
    maghrabi42
    Participant
    This reply has been marked as private.
    #1285790
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! Regretfully the given ftp access is not working for us. Please double check it and send the correct ones.

    Thank you in advance.

    #1285873
    maghrabi42
    Participant
    This reply has been marked as private.
    #1286449
    Rad
    Moderator

    Hi there,

    It’s still incorrect, please check again.

    You should also check your child theme’s functions.php, a function name should only exist once x_translate_text(). It’s either rename the other one, or merge the same function.

    Thanks!

    #1287025
    maghrabi42
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1284167 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>