Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question