{"id":52442,"date":"2015-08-19T02:49:24","date_gmt":"2015-08-19T06:49:24","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=52442"},"modified":"2016-02-25T03:43:43","modified_gmt":"2016-02-25T08:43:43","slug":"cherryframework-4-how-to-add-theme-localization","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-4-how-to-add-theme-localization.html","title":{"rendered":"CherryFramework 4. How to add theme localization"},"content":{"rendered":"<p>\r\n<p>This tutorial is going to show you how to add theme localization to a WordPress CherryFramework 4 template.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=bW4ykQnG_CY?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to add theme localization<\/a><\/p>\r\n<p>In order to add theme localization to a WordPress Cherry 4 template, you should perform the following:<\/p>\r\n<ol>\r\n<li>\r\n<p>Go to <a href=\"http:\/\/poedit.net\/download\" target=\"_blank\" rel=\"nofollow\">http:\/\/poedit.net\/download<\/a> and download <strong>Poedit<\/strong> for your system (Windows\/MAC). <strong>Poedit<\/strong> is a free, open source and cross-platform gettext catalogue (.po file) editor to aid in the process of language localization:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-1-300x169.jpg\" alt=\"CherryFramework_4._How_to_add_theme_localization-1\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-52443\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-1-1024x576.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-1.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<\/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 of 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\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-2-300x234.jpg\" alt=\"CherryFramework_4._How_to_add_theme_localization-2\" width=\"300\" height=\"234\" class=\"aligncenter size-medium wp-image-52444\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-2-300x234.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-2-150x117.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-2.jpg 508w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<\/li>\r\n<li>\r\n<p>Go to <strong>wp-content\/themes\/cherryframework4\/languages<\/strong> folder. There you&#8217;ll see the <strong>cherry.pot<\/strong> file.<\/p>\r\n<p>In order to add a new localization, you need to download the <strong>cherry.pot<\/strong> file to your local system and open it up in <strong>Poedit<\/strong> by selecting in the main menu <strong>File \/ New from POT\/PO file&#8230;<\/strong>. When you do that, you&#8217;ll get to a dialogue box that says <strong>Translation Language<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-3-300x245.jpg\" alt=\"CherryFramework_4._How_to_add_theme_localization-3\" width=\"300\" height=\"245\" class=\"aligncenter size-medium wp-image-52445\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-3-300x245.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-3-150x123.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-3.jpg 992w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>There you need to select the language you are going to add.<\/p>\r\n<\/li>\r\n<li>\r\n<p>You need to make a translation for each string by writing it in the <strong>Translation<\/strong> field. Also, you can translate only those of them that need to be rewritten.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-4-300x245.jpg\" alt=\"CherryFramework_4._How_to_add_theme_localization-4\" width=\"300\" height=\"245\" class=\"aligncenter size-medium wp-image-52446\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-4-300x245.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-4-150x122.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_4._How_to_add_theme_localization-4.jpg 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<\/li>\r\n<li>\r\n<p>After all is done, go to <strong>File \/ Save<\/strong> or press <strong>Ctrl + S<\/strong> and save the localization. You&#8217;ll get two files with the extensions <strong>*.po<\/strong> and <strong>*.mo<\/strong>. You need to name them <strong>cherry-ln_LN<\/strong>, where <strong>ln_LN<\/strong> is the locale international code of the language.<\/p>\r\n<\/li>\r\n<li>\r\n<p>The <strong>PO\/MO<\/strong> localization files that you created should be uploaded to the <strong>wp-content\/languages\/themes<\/strong> folder. If the folder doesn&#8217;t exist, please create it.<\/p>\r\n<\/li>\r\n<li>\r\n<p>The last step is to go to <strong>Dashboard -> Settings -> General<\/strong> and switch the <strong>Site Language<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_5._How_to_add_theme_localization-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_5._How_to_add_theme_localization-5-300x169.jpg\" alt=\"CherryFramework_5._How_to_add_theme_localization-5\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-52447\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_5._How_to_add_theme_localization-5-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_5._How_to_add_theme_localization-5-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_5._How_to_add_theme_localization-5-1024x576.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/08\/CherryFramework_5._How_to_add_theme_localization-5.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<\/li>\r\n<li>Check if the text strings you changed in Poedit are now updated on your site.<\/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=bW4ykQnG_CY?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to add theme localization<\/a><\/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 CherryFramework 4 template.<\/p>\n","protected":false},"author":85,"featured_media":52450,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[2012,702,766],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/52442"}],"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\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=52442"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/52442\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/52450"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=52442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=52442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=52442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}