Title: Translation issue
Last modified: October 19, 2016

---

# Translation issue

 *  [zoroaster54](https://wordpress.org/support/users/zoroaster54/)
 * (@zoroaster54)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/translation-issue-60/)
 * Using the TML widget, all is fine (i.e. translated) except error message when
   entering wrong username or password.
    The message “ERROR: The username or password
   you entered is incorrect. Lost your password?” still shows in English. Digged
   into po/pot-files, in Plugin-language directory and in general wp-content/languages/
   plugins directory to find position of that english text, but no luck. Could you
   point into the right direction please?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/translation-issue-60/#post-8341961)
 * I belive that string is from WP core and should be handled in it’s translation
   file.
 *  [benslaters](https://wordpress.org/support/users/benslaters/)
 * (@benslaters)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/translation-issue-60/#post-8621718)
 * I have exactly the same problem, and I’ve been through WP core and still cannot
   find it
 * Did you find a solution? location of that line?
 *  [naigcoif](https://wordpress.org/support/users/naigcoif/)
 * (@naigcoif)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/translation-issue-60/#post-9243965)
 * We can also use the filter wp_login_errors available in This file called theme-
   my-login-custom.php and it must reside in /wp-content/plugins.
    When theme-my-
   login-custom.php is present, it is always loaded when the plugin is loaded.
 * Use the below code in file called theme-my-login-custom.php and it must reside
   in /wp-content/plugins.
 *     ```
       <?php
   
       add_filter( 'gettext', function( $translation, $text, $domain )
       {
           if ( 'default' !== $domain )
               return $translation;
   
           if ( '<strong>ERROR</strong>: The username or password you entered is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' !== $text )
               return $translation;
   
           return '<strong>ERREUR</strong>: Votre Email ou votre Mot de passe est incorrect. <a href="%2$s" title="Mot de passe perdu">Mot de passe perdu</a>?';
       }, 10, 3 );
       ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Translation issue’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [naigcoif](https://wordpress.org/support/users/naigcoif/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/translation-issue-60/#post-9243965)
 * Status: not resolved