0

There is a plugin with other languages translations. I used poedit, online po editors and even plugins to update some strings in localization.

Here are sources:

<label for="user_login"><?php _e("Username or E-mail:") ?><br />

on line 911 in plugin's php file

#: ../other-includes/wp-security-rename-login-feature.php:561
#: ../other-includes/wp-security-rename-login-feature.php:911
msgid "Username or E-mail:"
msgstr "Имя пользователя или e-mail:"

in plugin's localization po file.

The name of locale files is correct. The files are correct. Other strings are fine end whean I edit them, the translation works.

I've changed string in php, then updated po from sources, edited translation, but nothing has happened.

1 Answers1

2

Your code looks right just do one thing provide the text domain of your current theme in the _e() function like below code :

<label for="user_login"><?php _e("Username or E-mail:",'textdomain') ?>
Akshay Shah
  • 3,391
  • 2
  • 20
  • 33
  • But other strings are the same ( _e("Some string") ) and are translated correct. – Stas Ponomaryov Sep 05 '17 at 14:08
  • True, string are same but without text domain it is taking default text domain and you are working in plugin file so it is required to write the plugin text domain name. – Akshay Shah Sep 05 '17 at 14:10