D
D
Dmitry Sokolov2021-07-27 20:18:49
WordPress
Dmitry Sokolov, 2021-07-27 20:18:49

Translation not working from WordPress .mo and .po files?

Hey!

Bought a premium template on Themeforest. He had a .pot file in Languages. And in the template itself, there are such jokes ->

esc_html__("Login / Sign up","econis");
(_e( 'Showing the single result', 'econis' );)

and similar...

With PoEdit I translated the whole thing into Russian and got ru_RU.po and ru_RU.mo. Uploaded, registered in the config: Half of the records were translated, and half were not. Some entries are normally translated for 1-2 seconds on restart, then back to English. In general, I do not understand why. I hope for your help.
define ('WPLANG', 'ru_RU');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alyoshin, 2021-07-28
@ArchitectOfRuin

I see several options:
1. In some themes, part of the content can be generated through plugins. As an example, the EZY theme. Even if you translate all the lines in it, some of the lines will still remain untranslated, because they can go in the EZY Functionality plugin. For it, translations are already done at wp-content/plugins/ezy-functionality/languages/. It is possible that you have the same situation, premium templates often come with accompanying plugins.
2. Perhaps caching plugins should be disabled.
3. You are uploading translations in the wrong place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question