{"id":268,"date":"2018-09-11T11:55:33","date_gmt":"2018-09-11T11:55:33","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=268"},"modified":"2018-09-13T10:09:28","modified_gmt":"2018-09-13T10:09:28","slug":"country","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/translation\/country\/","title":{"rendered":"Country"},"content":{"rendered":"<p><span class='bookmark-index'><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#install\">Installation<\/a><br \/>\n<a href=\"#settings\">Preparation<\/a><br \/>\n<a href=\"#instructions\">Instructions<\/a><br \/>\n<a href=\"#support\">Support<\/a><br \/>\n<\/span><\/p>\n<h3><a name=\"intro\" href=\"#intro\">Introduction<\/a><\/h3>\n<p>GeoDirectory V2 enables translation of country slugs. That makes is possible to change the URL of the location page to a country that matches the language of your site.<\/p>\n<p>In this example the country &#8220;Spain&#8221; has the slug &#8220;spain&#8221;. This procedure will translate the country name &#8220;Spain&#8221; to &#8220;Espana&#8221; and  the country slug &#8220;spain&#8221; to &#8220;espana&#8221;.<\/p>\n<p>The outcome will be visible in location type pages where the country is part of the URL.<\/p>\n<p>For example, if your location page has the slug &#8220;location&#8221;, then:<\/p>\n<p>&#8220;location\/spain\/&#8221;<\/p>\n<p>will become:<\/p>\n<p>&#8220;location\/espana&#8221;<\/p>\n<h3><a name=\"prep\" href=\"#prep\">Preparation<\/a><\/h3>\n<p>You will need to install and activate the Location Manager addon.<\/p>\n<h3><a name=\"instructions\" href=\"#instructions\">Instructions<\/a><\/h3>\n<p>To accomplish the translation of a country slug, follow these steps for each country you wish to translate:<\/p>\n<ol>\n<li>Choose the language for your site.<\/li>\n<li>Translate GeoDirectory Core including the country names.<\/li>\n<li>Visit the settings at GeoDirectory &#8211; Settings &#8211; Locations &#8211; Countries (subtab)<\/li>\n<li>Select the countries you have translated in the PO file (#2 above).<\/li>\n<li>From the drop down at the top left choose &#8220;Translate&#8221;<\/li>\n<li>The translation file for GeoDirectory Core will be checked for translations.<\/li>\n<li>The resulting translations will then be loaded when the page refreshes.<\/li>\n<li>If your translation is not showing, then check that you have translated the PO file correctly.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/09\/Screenshot-2018-09-11-at-2.11.37-PM.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/09\/Screenshot-2018-09-11-at-2.11.37-PM.png\" alt=\"\" width=\"398\" height=\"403\" class=\"alignnone size-full wp-image-271\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/09\/Screenshot-2018-09-11-at-2.11.37-PM.png 398w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/09\/Screenshot-2018-09-11-at-2.11.37-PM-296x300.png 296w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><\/p>\n<h3><a name=\"support\" href=\"#support\">Get Support<\/a><\/h3>\n<p>Get support on our forum, fnd out more here: <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/v2\/support\/\" rel=\"noopener\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/v2\/support\/<\/a><\/p>\n","protected":false},"featured_media":0,"parent":60,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/268"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/268\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/60"}],"prev":[{"title":"Translator's Handbook","link":"https:\/\/wpgeodirectory.com\/docs-v2\/translation\/translators-handbook\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/66"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}