• I can’t find the location of the error text when I log in with the WP-member Login form so I can translate it into my language.

    For example:
    – Wrong password error: Error: The password you entered for the username <> is incorrect
    – Wrong username error: Error: The username <> is not registered on this site. If you are unsure of your username, try your email address instead.

    These are very basic errors but somehow I can’t find where the message text is to translate it. For example login error due to expiration I can still find in Plugin WP Expire and translate that message.

    I’m using WP-member: 3.4.7. In plugin settings, I don’t tick Use legacy WP-Members login error instead of WP error object because this makes Error message very accurate: expired, wrong password, wrong account. If I check this, the login errors will not correctly report such as the membership expiration date but the indicator is generic.

    Help me. Thanks !!!

    • This topic was modified 1 year, 7 months ago by badamgiak23.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The two messages you noted are native WP error messages. They would be in the WordPress translation files.

    If you’re running a translated version of WP that is complete, then those strings should be included in whatever language pack is being used. (That is part of the reason why WP-Members shifted to using the core WP error messages – it’s far more likely for core WP translations to be updated regularly that for a plugin.)

    Thread Starter badamgiak23

    (@badamgiak23)

    I use the Vietnamese language pack and the WordPress update for this language also says 100% complete. But the text of the login error is still not translated.

    I checked in LocoTranslate, selected WordPress, my language pack also reported 100% translation. But I tried searching and couldn’t find the login error text in English language.

    • This reply was modified 1 year, 7 months ago by badamgiak23.
    Plugin Author Chad Butler

    (@cbutlerjr)

    Those strings originate in wp-includes/user.php in the function wp_authenticate_username_password(). The function is triggered by WP’s authenticate filter hook. The way WP-Members handles login, it runs wp_signon(), which ultimately runs the WP authentication. Those errors are translated when they are added to the error object. When WP-Members is displaying the message, it is getting it from the error object.

    So if you’re getting these string untranslated and you are running WP in your language, you may need to look at whether another plugin is causing it. That’s a common WP filter that can be hooked into by any plugin, and I have seen third party plugins replace it with their own authentication.

    If you have any plugins that have anything to do with login authentication (including what is through wp-login.php, as that is the exact same process), you should test with them deactivated to see if the untranslated string is being added by another plugin.

    i’m not sure if it translates error msgs as well, but i use the https://gtranslate.io plugin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate login error message’ is closed to new replies.