I have a topic in English, but there are translation files .po and .mo in Russian. I do as they say in the recommendation - I prescribe in the wp-config.php file define ('WPLANG', 'en_RU'); But nothing helps. What can be wrong?
2 answers
Judging by the fact that you managed to prescribe define ('WPLANG', 'ru_RU'); you do not have a Russified version of WordPress. Download the Russian version from the site and install the Loco Translate localization plugin
- The Russian version is worth it - Roman
- Define ('WPLANG', 'ru_RU') is already registered in the Russian version, but what about the translation plugin? - Gradar
|
Translation files must be in the folder mysite.com/wp-content/themes/my_theme/languages
In most cases will work.
Sometimes theme developers forget to connect a text domain. Then the following code should be added to functions.php
function my_theme_setup { load_theme_textdomain( 'my_theme' ); } add_action( 'after_setup_theme', 'my_theme_setup' ); where my_theme is the name of your theme.
|