A
A
Alex Ozerov2020-05-12 16:54:37
WordPress
Alex Ozerov, 2020-05-12 16:54:37

How to translate Event Calendar?

Installed Event Calendar on the site. The language of the site is Ukrainian, and accordingly the calendar should also be translated. But, wp does not automatically translate the plugin. Editing via loco translate does not change anything. I tried to edit all languages, for a trial one parameter, as a result, all "po" files have a translation, but the plugin remained in English as it was. I tried to edit through poedit, but it didn't help either. Climbed into the source of "pot" and also did not give any results. I wrote a function in js that replaces words with translated ones, it helped in part, but it's like a huge crutch. WP 5.3.3. Who will tell you what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-05-12
@ozerovlife

Hello!
First of all, open the plugin source and see if the code is prepared for localization.
Are there inserts _e(), etc. Most likely, taking into account the fact that the plugin has translation files, it means that it is localized.
Another point - pay attention to whether you have correctly specified the name of the translation files.
For the Ukrainian language should be:

название_плагина-uk.po
название_плагина-uk.mo
название_плагина-uk.pot

or
название_плагина-uk_UA.po
название_плагина-uk_UA.mo
название_плагина-uk_UA.pot

Try uploading the translation files to /wp-content/languages/plugins
Note that it's not the po or pot file that matters, it's the mo file, since that's where WP reads data from.
Also try the following -
open the wp-config.php file
and specify -define ('WPLANG', 'uk_UA');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question