{"id":31986,"date":"2014-01-21T07:34:32","date_gmt":"2014-01-21T12:34:32","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=31986"},"modified":"2017-06-16T06:33:32","modified_gmt":"2017-06-16T10:33:32","slug":"wordpress-how-to-add-theme-localization-based-on-cherry-framework","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-add-theme-localization-based-on-cherry-framework.html","title":{"rendered":"WordPress. How to add theme localization (based on Cherry Framework 3.x)"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p>This tutorial is going to show you how to add theme localization to a WordPress Cherry template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Jc3BOEuhCJE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to add theme localization (based on Cherry Framework)<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>Go to <a href=\"http:\/\/www.poedit.net\/download.php\" rel=\"nofollow\">http:\/\/www.poedit.net\/download.php<\/a>\u00a0 and download <strong>Poedit<\/strong> for your system (Wndows\/MAC). <strong>Poedit<\/strong> is a free, open source and  cross-platform gettext catalog (.po file) editor to aid in the process of  language localization. <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_1-300x147.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_1\" width=\"300\" height=\"147\" class=\"aligncenter size-medium wp-image-31987\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_1-300x147.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_1-150x73.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_1.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Install it on your computer: double  click the file and follow the steps it suggests. At the end\u00a0of the installation, make sure the option <strong>Open Poedit After Installation<\/strong> is  checked and click <strong>Finish<\/strong>.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_2-300x183.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_2\" width=\"300\" height=\"183\" class=\"aligncenter size-medium wp-image-31988\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_2-300x183.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_2-150x91.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_2.jpg 987w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>On your FTP there should be the same  language files under <strong>wp_content\/themes\/CherryFramework\/languages<\/strong> and under <strong>wp_content\/themes\/your_theme\/languages <\/strong>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.<\/p>\r\n<li>\r\n<p>If you want to translate it to another language, e.g. Dutch, new files  should\u00a0 be created. There are two ways to  do it:<\/p>\r\n<ul class=\"list\">\r\n<li>\r\n<p>The latest version of Cherry \u00a0has 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\u00a0 locale names (e.g., nl_NL.mo \u00a0and nl_NL.po for Dutch) and copy them from <strong>wp_content\/themes\/CherryFramework\/languages<\/strong> to<strong>\u00a0  wp_content\/themes\/your_theme\/languages <\/strong>\u00a0on your FTP.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Alternatively, under \u00a0<strong>wp_content\/themes\/your_theme\/languages <\/strong>\u00a0on your FTP,  you can duplicate a pair of the existing language files and give them the corresponding\u00a0locale names (e.g., nl_NL.mo \u00a0and nl_NL.po  for Dutch).<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_3-300x124.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_3\" width=\"300\" height=\"124\" class=\"aligncenter size-medium wp-image-31989\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_3-300x124.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_3-150x62.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_3.jpg 930w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>\r\n<p>Save the two language files on your  computer. In Poedit click <strong>Open<\/strong>.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_4-300x161.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_4\" width=\"300\" height=\"161\" class=\"aligncenter size-medium wp-image-31990\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_4-300x161.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_4-150x80.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_4.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to\u00a0where you saved the language files and open <strong>nl_NL.po<\/strong>.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_5-300x181.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_5\" width=\"300\" height=\"181\" class=\"aligncenter size-medium wp-image-31991\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_5-300x181.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_5-150x90.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_5.jpg 967w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Look for the text string you want to  translate in the left column called <strong>Source  Text<\/strong>. You can hit <strong>Ctrl + F<\/strong> to look for a specific string of text.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_6-300x167.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_6\" width=\"300\" height=\"167\" class=\"aligncenter size-medium wp-image-31992\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_6-300x167.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_6-150x83.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_6.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Click\u00a0 the text string to select. It will appear in  the <strong>Source Text <\/strong>lower column. Change  the text in the <strong>Translation<\/strong> bottom  column.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_7-300x168.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_7\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-31993\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_7-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_7-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_7.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>You can translate text both for the front end  and back end of your site. When you are done, click <strong>Save<\/strong> and upload both files to the <strong>wp_content\/themes\/your_theme\/languages <\/strong>\u00a0directory on your FTP, replacing the existing files.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to WordPress Dashboard and open the <strong>Settings -> General<\/strong> tab, scroll down and select the corresponding language in the <strong>Site Language<\/strong> field, save changes.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Check if the text strings you  changed in Poedit are now updated on your site.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_8-300x157.jpg\" alt=\"wordpress_cherry_based_theme_localization_adding_8\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-31994\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_8-300x157.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_8-150x78.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/01\/wordpress_cherry_based_theme_localization_adding_8.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Jc3BOEuhCJE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to add theme localization (based on Cherry Framework)<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to add theme localization to a WordPress Cherry template.<\/p>\n","protected":false},"author":30,"featured_media":32003,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1158,1419,702,766,1511,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/31986"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=31986"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/31986\/revisions"}],"predecessor-version":[{"id":81594,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/31986\/revisions\/81594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/32003"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=31986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=31986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=31986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}