L
L
ligisayan2017-08-02 11:05:10
Machine translation from one language to another
ligisayan, 2017-08-02 11:05:10

How to fix the entry in the localization file?

Hello! I have a multilingual site on wordpress , I want to fix and shorten the entry in the localization.
The .pot file had an entry like this

#: 404.php:26
msgid ""
"It looks like nothing was found at this location. Maybe try one of the links "
"below or a search?"
msgstr ""

who translated this line
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'onepress' ); ?></p>

I deleted the second sentence and it became like this
#: 404.php:26
msgid ""
"It looks like nothing was found at this location."
msgstr ""

and trying to get it translated like this
<p><?php _e( 'It looks like nothing was found at this location.', 'onepress' ); ?></p>

In the translation file itself, .po made an update from the .pot file and translated the string into Russian,
but now it doesn’t translate and displays only the English version .. What am I doing wrong?
All changes were made through notepad++ and poedit

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Simon, 2017-08-02
@ligisayan

Well so you not correctly put a line apparently. It should be like this

msgid "It looks like nothing was found at this location."
msgstr ""

M
MrGaunt, 2017-08-02
@MrGaunt

To edit the translation of Wordpress elements, you can use software such as PoEdit .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question