How to translate any translation-ready theme

For this documentation, we use Kyma there as a example. Kyma is translation ready in order to fulfill our customers needs from all around the world. With Kyma you can have your website in any language you need in a very easy way.

For this you can use any translation plugin like Polylang or WPML. For this tutorial we are going to usePolylang.

First step is to install the plugin. You can do that from your Dashboard->Plugins->Add New. After this process is over, you need to activate it. After activation please go into Polylang Settings. The Settings section will give you access to choose the language(s) you need for your website. (For further details, please check Polylang documentations.)

After this you can start translating your website.

-To translate the options in Customizer, first make sure that  you have saved your own content and then go to Polylang->Strings Translation where you will find your strings in order for you to enter your own translation.

-Another way is to use POEdit to create your own .po and .mo files from kyma’s .pot file with your translations and place them into Languages folder. Make sure you use the right names for these files to match the language you need. For example, for Romanian, you would have ro_RO.po and ro_RO.mo.

-To translate the widgets you just need to create separate widgets for each language and you will get a button with the following text “The widget is displayed for:” and just select the language.

-To translate posts and pages follow this:  https://polylang.wordpress.com/documentation/setting-up-a-wordpress-multilingual-site-with-polylang/translating-posts-or-pages/

Are you using a child theme ?

In this case, you need to take an extra step.

Please copy the file called wpml-config.xml from you parent theme’s folder into the child theme’s folder, open it and change the line:

<key name=’kyma_theme_options’>

to:

<key name=’kyma_theme_options_ child_theme_example‘> where you need to replace child_theme_example with your child theme’s folder.

After this step, you should be able to translate the strings using Polylang->Strings Translation.

Leave a Reply

Your email address will not be published. Required fields are marked *