A
A
Alexander Fedoruk2016-10-14 11:05:30
Internationalization and localization
Alexander Fedoruk, 2016-10-14 11:05:30

How to switch language in wordpress?

Hello! There is a site on wordpress with the Cherry plugin installed on it, the theme, and at the very beginning all this was translated into Russian using CodeStyling Localization. Now the customer asked to add the Ukrainian version of the site so that it all looks like a small button in the right upper corner of the screen - you click on it and the site changes the language. How to implement?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaliy Orlov, 2016-10-14
@orlov0562

I did not use CodeStyling Localization, but as I understand it, it generates translation files ..
If so, then you do the translation, then go to load_textdomain_mofile , check the cookie that you set when you click on the language change button and select the desired translation file.

I
Igor Vorotnev, 2016-10-15
@HeadOnFire

Do you only need an interface, or should the content of pages and posts also be in Ukrainian? Look towards plugins Polylang, WPML ($), qTranslate X and the like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question