If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

WordPress. How to add theme localization (based on Cherry Framework)

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)

  1. 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.

    wordpress_cherry_based_theme_localization_adding_1

  2. 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.

    wordpress_cherry_based_theme_localization_adding_2

  3. 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.

  4. 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).

      wordpress_cherry_based_theme_localization_adding_3

  5. Save the two language files on your computer. In Poedit click Open.

    wordpress_cherry_based_theme_localization_adding_4

  6. Navigate to where you saved the language files and open nl_NL.po.

    wordpress_cherry_based_theme_localization_adding_5

  7. 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.

    wordpress_cherry_based_theme_localization_adding_6

  8. Click  the text string to select. It will appear in the Source Text lower column. Change the text in the Translation bottom column.

    wordpress_cherry_based_theme_localization_adding_7

  9. 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.

  10. On your FTP, open the wp_config.php file located in the root directory to edit.

  11. Search for define(‘WPLANG’, ”); change its second argument to your locale (e.g., nl_NL) and save the changes:

    define('WPLANG', 'nl_NL'); 
  12. Check if the text strings you changed in Poedit are now updated on your site.

    wordpress_cherry_based_theme_localization_adding_8

Feel free to check the detailed video tutorial below:

WordPress. How to add theme localization (based on Cherry Framework)