• Leandro

    (@leandrorocha)


    Hello,

    Since I enabled the option “Don’t let WordPress reveal valid users in login errors” the phrase in login page when someone enter with a wrong password or user changed to “ERROR: The username or password you entered is incorrect. Lost your password?”

    However I cant find where is this phrase is available in wordfence translation files to allow me to translate to my language. I already tried several differents combinations of keywords and still cant find it.

Viewing 15 replies - 16 through 30 (of 60 total)
  • Same problem. Need to translit it in French.

    ant0nell0

    (@ant0nell0)

    This issue is still present and noticed since 1 YEAR and 7 MONTHs ago. I don’t know why the DEV doesn’t apply this 5 mins fix of the code. There remains only to flood the developer mailbox!

    PLEASE ADD THE LOGIN NOTICES STRINGs WITHIN THE NAME SPACE.PLEASE ADD THE LOGIN NOTICES STRINGs WITHIN THE NAME SPACE. PLEASE ADD THE LOGIN NOTICES STRINGs WITHIN THE NAME SPACE.

    Thanks.

    cabgfx

    (@cabgfx)

    Pleeeeease update this you guys.

    It’s almost 2020, and the fix can be isolated to what @level-level previously wrote, about the missing textdomain in translatable strings.

    Thanks in advance!

    I can only endorse my predecessor. Please guys, just fix this simple thing.

    Thank you!

    wpuser10

    (@adelatusanova)

    Hi all,

    I have found solution here:
    https://wordpress.stackexchange.com/questions/287887/how-to-translate-wordpress-error-message?rq=1

    As some characters caused error messages, here is how I fixed it:

    
    add_filter('login_errors','login_error_message');
    
        function login_error_message($error){
            //check if that's the error you are looking for
            $pos = strpos($error, 'incorrect');
            if (is_int($pos)) {
                //its the right error so you can overwrite it
                $error = "CHYBA: Zadané pou?ívate?ské meno alebo heslo je nesprávne. <a href='https://www.rainbow-heart.sk/wp-login.php?action=lostpassword'>Stratili ste heslo?</a>";
            }
            return $error;
        }
    
    • This reply was modified 4 years, 11 months ago by wpuser10.

    This is my solution…

    1. Create your translation files .po and .mo and name it wordfence-xx_XX.po and wordfence-xx_XX.mo, where xx_XX is your language code.

    2. Upload the translation files to wp-content/languages/plugins.

    3. In wp-content/plugins/wordfence/lib/wordfenceClass.php (2 times) and in wp-content/plugins/wordfence/modules/login-security/classes/controller/ajax.php (2 times), change this

    __('<strong>ERROR</strong>: The username or password you entered is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?')

    for this

    __('<strong>ERROR</strong>: The username or password you entered is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?', 'wordfence')

    Does anyone have any idea of why this surprisingly simple issue hasn’t been fixed?

    When will you fix it? Is it really impossible to create a settings page in the control panel?

    I’m struggling with this as my website is intended for a Spanish speaking audience, any ideas when this will be supported? the fix suggested here did not work for me, the message continues to come up in English ??

    @wfdave Any ideas?

    • This reply was modified 4 years, 7 months ago by Eli.
    anonymized-17115093

    (@anonymized-17115093)

    This is unbelievable and completely undermines the trust in the plugin to protect! Some people to deal with the problem disable some features – you’ve made it happen. For example, when you disable the option (in Wordfence / Brute Force Protection): Don’t let WordPress reveal valid users in login errors everything works properly but security is lower. It’s just a shame! We were supposed to invest in licenses for this plugin for over 50 pages, and we read about things where you can’t solve simple problems for 2 years!

    Still not fixed? We are also not enjoying this lack of professionalism. I’m getting my money back. Or, even if they do not return it, I’m steering away from using it and pick up the competition.

    This is unacceptable… More than 2 years for a 2 minutes fix and still no reply!!

    Same here. Just like @realact, my website is in Spanish and have not been able to resolve this issue. Using premium and recent support response regarding this was:

    “Thanks for reaching out. Though internationalization is important to us, we have not been able to make progress on doing this. I believe that there is a case in the queue to make error messages and possibly emails display in other languages, and I know that as new code is added to the plugin we are adding the necessary code to make it translatable. Hopefully this will be rectified before too long.”

    But the thread is 2 years old, I cannot understand why hasn’t this been fixed or give us backend easy custom messages edit.

    I cannot understand why this simple issue hasn’t been fixed. Regardless, I solved it in the meanwhile by just replacing the translation. I wrote this little snippet. You can put it in your child-theme’s functions.php file and replace the translated string ($translated). You can add more case statements if needed to replace more strings. Keep in mind that you should not limit the translation to Wordfence’s text domain.

    
    function opal_custom_translation( $translated, $original, $domain ) {
        
        switch ($original) {
            case '<strong>ERROR</strong>: The username or password you entered is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?':
                $translated = '<strong>Fel</strong>: Anv?ndarnamnet eller l?senordet du angav var fel. <a href="%2$s" title="L?senords?terst?llning">Gl?mt l?senordet</a>?';
                break;
        }
        
        return $translated;
    }
    
    add_filter( 'gettext', 'opal_custom_translation', 10, 3 );
    

    17/06/2020 and this simple issue stilll not fixed,
    Wondering if this plugins is as safe as they pretend and if this worth spending money on it

Viewing 15 replies - 16 through 30 (of 60 total)
  • The topic ‘Cant Translate ERROR: The username or password you entered is incorrect.’ is closed to new replies.