{"id":213,"date":"2014-06-30T17:24:52","date_gmt":"2014-06-30T17:24:52","guid":{"rendered":"https:\/\/docs.wpgeodirectory.com\/?p=213"},"modified":"2017-11-24T13:17:52","modified_gmt":"2017-11-24T13:17:52","slug":"translate-core","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/translate-core\/","title":{"rendered":"Translate Core"},"content":{"rendered":"<p><a class=\"cnt1\" href=\"#intro\">Introduction<\/a> <a class=\"cnt1\" href=\"#start\">Translation process<\/a> <a class=\"cnt1\" href=\"#more\">More information<\/a><\/p>\n<h3><a id=\"intro\"><\/a>Introduction<\/h3>\n<ol>\n<li>All our plugins and themes are in English by default, but all of them come with <em><strong>.po<\/strong><\/em>\u00a0files.<\/li>\n<li><em><strong>.po<\/strong><\/em>\u00a0files are the standard way WordPress themes and plugins are translated, or the files can just be used to change the wording used by default for English language sites.<\/li>\n<li>There are many programs you can use to edit these <em><strong>.po<\/strong>\u00a0<\/em>language files but we\u00a0recommend using\u00a0<a href=\"https:\/\/poedit.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">Poedit<\/a>.<\/li>\n<li>Translation programs like\u00a0<a href=\"https:\/\/poedit.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">Poedit<\/a>\u00a0create a matching\u00a0<em><strong>.mo<\/strong><\/em> file when a <em><strong>.po<\/strong><\/em> file is translated.<\/li>\n<li>It is those .mo files that contain the translated <em><strong>language strings<\/strong><\/em> to show the translations on your site.<\/li>\n<li>You can find some ready made translations in our languages project, <a style=\"background-color: #ffffff;\" href=\"\/docs\/getting-translation-files\/\">find out more here<\/a>.<\/li>\n<\/ol>\n<h3><a id=\"start\"><\/a>Translation process<\/h3>\n<p>We will translate the core GD plugin here, but the process is the same for all plugins and addons.<\/p>\n<p><a href=\"https:\/\/wpgeodirectory.com\/docs\/translating-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\">Translating themes<\/a> also\u00a0follows the same process except for the location where you should upload the <em><strong>.mo<\/strong><\/em> file.<\/p>\n<ol>\n<li>Download <a href=\"http:\/\/poedit.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">POedit<\/a>\u00a0and install the program on your local machine (you only need the free version, but the paid version will assist translations with suggestions).<\/li>\n<li>Using FTP or your host&#8217;s control panel, download the plugins default <em><strong>.po<\/strong><\/em> file to your local machine:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans15.png\" alt=\"\" \/><\/li>\n<li>Open the <em><strong>Poedit<\/strong><\/em> program and select <em><strong>Create new translation<\/strong><\/em>:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans16.png\" alt=\"\" \/><\/li>\n<li>Navigate to the <em><strong>.po<\/strong><\/em> file you downloaded at step 2, and open the file:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans17.png\" alt=\"\" \/><\/li>\n<li><em><strong>Poedit<\/strong><\/em> will ask you to select the new language:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans18.png\" alt=\"\" \/><\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> Make sure to select exactly the same language you have at <em><strong>WP &gt; Settings &gt; General<\/strong><\/em>:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans19.png\" alt=\"\" \/><\/li>\n<li>Now <em><strong>save<\/strong><\/em> the file:\n<ol>\n<li><em><strong>Poedit<\/strong><\/em> will give you the correct extension, in our example that will be <em><strong>nl_BE.po.<\/strong><\/em><\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> <span style=\"color: #ff0000;\">Make sure that the rest of the filename saved is the same as the original <em><strong>.po<\/strong><\/em> file, in our example that will be\u00a0<em><strong>geodirectory-<\/strong><strong>nl_BE.po<\/strong><strong>.<\/strong><\/em><\/span><\/li>\n<li>You will need to upload the newly created files to\u00a0<em><strong>\/wp-content\/languages\/plugins\/ <\/strong><\/em>on your server, so we suggest you save it to a copy of the same folder on your local machine to make<\/li>\n<li>You will see that Poedit creates 2 files:\u00a0<em><strong>geodirectory-<\/strong><strong>nl_BE.<span style=\"color: #ff0000;\">po <\/span><\/strong><\/em>and<em><strong>\u00a0geodirectory-nl_BE.<span style=\"color: #ff0000;\">mo<\/span><\/strong><\/em><\/li>\n<\/ol>\n<\/li>\n<li>Now translate any language string you want, and save the file once finished:<br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans20.png\" alt=\"\" \/><\/li>\n<li><i class=\"fa fa-exclamation-triangle fa-2x\" style=\"color: red;\"><\/i> <span style=\"color: #ff0000;\">When you are ready, upload both the <em><strong>.mo<\/strong><\/em> and <em><strong>.po<\/strong><\/em> file to the \/wp-content\/languages\/plugins\/ folder on the server.<\/span><br \/>\n<span style=\"color: #ff0000;\">Create\u00a0the folder if it does not exist yet:<\/span><br \/>\n<img class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2014\/06\/trans21.png\" alt=\"\" \/><\/li>\n<li>Go to your\u00a0website and refresh to see your changes \ud83d\ude42<\/li>\n<\/ol>\n<h3><a id=\"more\"><\/a>More information<\/h3>\n<ol>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs\/translation-faqs\/\">Translation FAQs.<\/a><\/li>\n<li>You can find some ready made translations in our languages project,\u00a0<a style=\"background-color: #ffffff;\" href=\"\/docs\/getting-translation-files\/\">find out more here<\/a>.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs\/translating-themes\/\">Translating themes.<\/a><\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs\/translating-addons\/\">Translating GD addons.<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>How to translate the GD plugin and addons using Poedit.<\/p>\n","protected":false},"author":1670,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/213"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1670"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}