- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress. How to add theme localization (based on Cherry Framework 3.x)
January 21, 2014
This tutorial is going to show you how to add theme localization to a WordPress Cherry template.
WordPress. How to add theme localization (based on Cherry Framework)
-
Go to http://www.poedit.net/download.php and download Poedit for your system (Wndows/MAC). Poedit is a free, open source and cross-platform gettext catalog (.po file) editor to aid in the process of language localization.
-
Install it on your computer: double click the file and follow the steps it suggests. At the end of the installation, make sure the option Open Poedit After Installation is checked and click Finish.
-
On your FTP there should be the same language files under wp_content/themes/CherryFramework/languages and under wp_content/themes/your_theme/languages for Spanish, Italian, German and Russian. So, if you want to translate (change translations) your site to any of these languages, proceed to step 10 of this tutorial.
-
If you want to translate it to another language, e.g. Dutch, new files should be created. There are two ways to do it:
-
The latest version of Cherry has blank.mo and blank.po files which you can use as samples for creating new language files. Duplicate them or just give them the corresponding locale names (e.g., nl_NL.mo and nl_NL.po for Dutch) and copy them from wp_content/themes/CherryFramework/languages to wp_content/themes/your_theme/languages on your FTP.
-
Alternatively, under wp_content/themes/your_theme/languages on your FTP, you can duplicate a pair of the existing language files and give them the corresponding locale names (e.g., nl_NL.mo and nl_NL.po for Dutch).
-
-
Save the two language files on your computer. In Poedit click Open.
-
Navigate to where you saved the language files and open nl_NL.po.
-
Look for the text string you want to translate in the left column called Source Text. You can hit Ctrl + F to look for a specific string of text.
-
Click the text string to select. It will appear in the Source Text lower column. Change the text in the Translation bottom column.
-
You can translate text both for the front end and back end of your site. When you are done, click Save and upload both files to the wp_content/themes/your_theme/languages directory on your FTP, replacing the existing files.
-
Navigate to WordPress Dashboard and open the Settings -> General tab, scroll down and select the corresponding language in the Site Language field, save changes.
-
Check if the text strings you changed in Poedit are now updated on your site.
Feel free to check the detailed video tutorial below:
WordPress. How to add theme localization (based on Cherry Framework)