Language & Translation
Zeno theme is translation ready. What does this mean?
It means that you can easily translate the theme without the need to edit all template and PHP files and look for every single word that you want to translate.
Zeno theme has a .po file inside the “lang” folder (from the root of the theme). This .po file will contain all the translatable strings in English.
If you don’t see the file extension, the file with the larger size is the .po file
To open and edit this file, you need to install Poedit. Poedit is a free editor, so you don’t have to pay anything for it.
After you have installed Poedit, duplicate the en_US.po file and open the new file in the editor.
Make sure you save the file name in the following format (the translation won’t work if this will be saved incorrectly):
For example, a French translation should be saved as fr_FR.po, an English translation for the United Kingdom will be saved as en_UK, a Romanian translation will be saved as ro_RO.po and so on. You can find your country and language code here.
Translate every English string inside your new .po file.
Leave untouched the %s, 1%s, 2%s, %u, … found. Do not remove these characters because these are PHP variables.
Some phrases also contain pieces of HTML code, do not remove it also.
To translate a word or phrase, click on its English form and enter your translation in the Translation field from the bottom of the editor.
Repeat the operation for every word of phrase you want to translate.
After you have finished the translation, you need to save the file. To do that, go to File->Save
If everything worked OK, Poedit will compile the translation file and will generate an additional .mo file inside the lang folder, named the same as your translated .po file.
The final step in translating Zeno into your language is to tell WordPress to use your new language file.
To do this, log in to your WordPress dashboard with an account with administrator rights, then go to Settings->General and look for “Site Language” setting.
Set the language of your site based on the language you have translated the theme in and save the changes.
If you’ve done everything correctly, your site should be in your language now.