{"id":431,"date":"2018-11-21T10:55:22","date_gmt":"2018-11-21T10:55:22","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/multilingual\/"},"modified":"2020-04-10T14:26:59","modified_gmt":"2020-04-10T14:26:59","slug":"multilingual","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/multilingual\/","title":{"rendered":"WPML Multilingual"},"content":{"rendered":"<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/WPML-Multilingual.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/WPML-Multilingual-1024x576.png\" alt=\"\" width=\"835\" height=\"470\" class=\"alignnone size-large wp-image-492\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/WPML-Multilingual-1024x576.png 1024w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/WPML-Multilingual-300x169.png 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/WPML-Multilingual-768x432.png 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/WPML-Multilingual.png 1025w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><br \/>\n<span class='bookmark-index'><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#install\">Installation<\/a><br \/>\n<a href=\"#settings\">Settings<\/a><br \/>\n<a href=\"#support\">Support<\/a><br \/>\n<a href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><br \/>\n<\/span><\/p>\n<h3><a name=\"intro\" href=\"#intro\">Introduction<\/a><\/h3>\n<p>Your directory can can feature listings in multiple languages by using the GeoDirectory V2 Multilingual addon with WPML. GD Multilinugual is a bridge between GeoDirectory V2 and WPML.<\/p>\n<p>WPML is NOT required to translate your site if:<\/p>\n<ol>\n<li>Your site is in only a SINGLE LANGUAGE (not en_US) or<\/li>\n<li>you only want to translate the administration\/backend of GeoDirectory into multiple languages.<\/li>\n<\/ol>\n<p>If those cases apply to you, you don&#8217;t need WPML, and you can use the standard translation method with PO files described here:<br \/>\n<a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/translation\/overview\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/translation\/overview\/<\/a><\/p>\n<p>WPML is specifically for translating listing content. You will need at least the free WPML blog version, or, if you want to manage the translation of strings, then you will need a premium WPML version that includes WPML String Translation. <\/p>\n<h3><a name=\"install\" href=\"#install\">Installation<\/a><\/h3>\n<h4><a name=\"prep\" href=\"#prep\">Preparation<\/a><\/h4>\n<p>Check to be sure you have the following plugins installed before you get started.<\/p>\n<ul>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/installation\/\" rel=\"noopener noreferrer\" target=\"_blank\">GeoDirectory V2<\/a><\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/downloads\/wpml-multilingual\/\" rel=\"noopener noreferrer\" target=\"_blank\">GeoDirectory V2 Multilingual<\/a><\/li>\n<li><strong>WPML Addons<\/strong> (see <a href=\"https:\/\/wpml.org\/faq\/install-wpml\/#first-install\" rel=\"noopener noreferrer\" target=\"_blank\">WPML Site<\/a> for install information)<\/li>\n<ul>\n<li>sitepress-multilingual-cms<\/li>\n<li>wpml-translation-management<\/li>\n<li>wpml-string-translation &#8211; Optional, but necessary for string translation<\/li>\n<li>wpml-media-translation<\/li>\n<li>wpml-sticky-links<\/li>\n<\/ul>\n<\/ul>\n<h4><a name=\"install\" href=\"#install\">Installation<\/a><\/h4>\n<ol>\n<li><a href=\"https:\/\/wpgeodirectory.com\/downloads\/wpml-multilingual\/\" rel=\"noopener noreferrer\" target=\"_blank\">Download the Addon<\/a>.<\/li>\n<li><a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/installing-addons\/\" rel=\"noopener noreferrer\" target=\"_blank\">Install the Addon<\/a>.<\/li>\n<\/ol>\n<h3><a name=\"settings\" href=\"#settings\">Settings<\/a><\/h3>\n<p>GeoDirectory Multilingual &#8216;just works&#8217; when WPML is installed, functioning in the background as a bridge.<\/p>\n<p>There is only one setting available, located at:<\/p>\n<blockquote><p>Custom Post Type (ex. Places) &#8211; Settings &#8211; General &#8211; Show Advanced &#8211; WPML &#8211; Enable frontend duplicate?<\/p><\/blockquote>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/Screenshot-2018-10-31-at-5.58.32-PM.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/10\/Screenshot-2018-10-31-at-5.58.32-PM.png\" alt=\"\" width=\"140\" height=\"167\" class=\"alignnone size-full wp-image-398\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-settings-1.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-settings-1-1024x119.jpg\" alt=\"\" width=\"835\" height=\"97\" class=\"alignnone size-large wp-image-489\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-settings-1-1024x119.jpg 1024w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-settings-1-300x35.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-settings-1-768x90.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-settings-1.jpg 1055w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpmlsettings-2.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpmlsettings-2-1024x154.jpg\" alt=\"\" width=\"835\" height=\"126\" class=\"alignnone size-large wp-image-490\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpmlsettings-2-1024x154.jpg 1024w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpmlsettings-2-300x45.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpmlsettings-2-768x116.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpmlsettings-2.jpg 1467w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><\/p>\n<h4><a href=\"#pages\" name=\"pages\">Pages<\/a><\/h4>\n<p>All GD Pages and templates will need to be re-created in different languages including the Search, Details, Location, and Archive template. WPML provides a meta box to create the linked page in the WP Backend editor. Use that option to create the translated duplicates.<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml.png\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml.png\" alt=\"\" width=\"299\" height=\"535\" class=\"alignnone size-full wp-image-738\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml.png 299w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-168x300.png 168w\" sizes=\"(max-width: 299px) 100vw, 299px\" \/><\/a><\/p>\n<h4><a href=\"#design\" name=\"design\">Design &#8211; GD > Post WPML Duplicate<\/a><\/h4>\n<p>If you have already enabled the option for frontend translation, then next add the GD Post WPML Duplicate element to your sidebar for the detail page. This will give the listing owner and admins the option to translate the listing into other languages.<\/p>\n<h4><a href=\"#title-and-meta\" name=\"title-and-meta\">Title and Meta<\/a><\/h4>\n<p><strong>Single Site Language<\/strong><\/p>\n<p>To load GeoDirectory Title and Metas in a single language, translate the strings directly using the GeoDirectory settings at:<\/p>\n<p><strong>GeoDirectory &#8211; Settings &#8211; General &#8211; Title and Meta<\/strong><\/p>\n<p><strong>Multiple Site Languages<\/strong><\/p>\n<p>To load the GeoDirectory Title and Meta in multiple site languages leave all the GeoDirectory settings blank at blank all the strings at:<\/p>\n<p><strong>GeoDirectory &#8211; Settings &#8211; General &#8211; Title and Meta<\/strong><\/p>\n<p>Instead, choose one of two options. <\/p>\n<ul>\n<li>Translate with WPML &#8211; String Translation<\/li>\n<li>Translate PO files with POEdit (standard translation method)<\/li>\n<\/ul>\n<h4><a href=\"#custom-fields\" name=\"custom-fields\">Custom Fields<\/a><\/h4>\n<p><strong>Single Site Language<\/strong><\/p>\n<p>If you are translating into just one language, then translate the field settings in the Custom Fields tab at:<\/p>\n<p><strong>Places &#8211; Settings &#8211; Custom Fields &#8211; Field &#8211; Translate the Label, Description and Validation message<\/strong><\/p>\n<p><strong>Multiple Site Languages<\/strong><\/p>\n<p>If you are translating into multiple languages, then you have two options:<\/p>\n<ul>\n<li>Translate with WPML &#8211; String Translation<\/li>\n<li>Translate PO files with POEdit (standard translation method)<\/li>\n<\/ul>\n<h5>Translate Custom Fields with WPML &#8211; String Translation<\/h5>\n<ul>\n<li>Create your custom fields using the site default language.<\/li>\n<li>Visit the GeoDirectory Tools and run the DB text translation tool &#8211; <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/status\/#translate\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/geodirectory\/status\/#translate<\/a><\/li>\n<li>The tool will have created a new file :\n<pre><code>\/wp-content\/plugins\/geodirectory\/db-language.php<\/code><\/pre>\n<\/li>\n<li>Visit WPML Settings to trigger WPML to scan that file (automatic)<\/li>\n<li>Visit WPML &#8211; String Translation to see the new strings and translate them.<\/li>\n<\/ul>\n<p>Image Titles and Captions \/ Alt<\/p>\n<p>Image titles and captions cannot be translated.<\/p>\n<p>Comments<\/p>\n<p>Comments cannot be translated.<\/p>\n<p><H4>Importing Translation<\/h4>\n<p>When you export listings csv, it contains three columns wpml_lang, wpml_translation_of, wpml_is_duplicate.<br \/>\n\u2013 wpml_lang : post language. ex: de<br \/>\n\u2013 wpml_translation_of : in post is translated then original post id from which this post is trsnalated.<br \/>\n\u2013 wpml_is_duplicate : if post being imported is duplicate or normal translation. 1 = duplicate translation &#038; 0 = normal translation. (If you use the WPML front duplicate, this will be 1)<\/p>\n<h3><a name=\"support\" href=\"#support\">Get Support<\/a><\/h3>\n<p>Get support on our forum, find out more here: <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/v2\/support\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/v2\/support\/<\/a><\/p>\n<h3><a name=\"faq\" href=\"#faq\">FAQ &#8211; Frequently Asked Questions<\/a><\/h3>\n<h5>How can I translate the country slug?<\/h5>\n<p>See this document: <a href=\"https:\/\/wpgeodirectory.com\/docs-v2\/translation\/country\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpgeodirectory.com\/docs-v2\/translation\/country\/<\/a><\/p>\n<h5>How do I install WPML?<\/h5>\n<p>See: <a href=\"https:\/\/wpml.org\/faq\/install-wpml\/#first-install\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpml.org\/faq\/install-wpml\/#first-install<\/a><\/p>\n<h5>How do I setup WPML?<\/h5>\n<p>See: <a href=\"https:\/\/wpml.org\/documentation\/getting-started-guide\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpml.org\/documentation\/getting-started-guide\/<\/a><\/p>\n<h5>I have chosen to setup WPML using the variable in the URL, but sometimes the variable gets dropped. What can I do?<\/h5>\n<p>We recommend you choose the first option as shown here to avoid that issue:<\/p>\n<p><a href=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-dir-recommended.jpg\"><img src=\"http:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-dir-recommended-1024x282.jpg\" alt=\"\" width=\"835\" height=\"230\" class=\"alignnone size-large wp-image-491\" srcset=\"https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-dir-recommended-1024x282.jpg 1024w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-dir-recommended-300x83.jpg 300w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-dir-recommended-768x212.jpg 768w, https:\/\/wpgeodirectory.com\/docs-v2\/wp-content\/uploads\/sites\/23\/2018\/11\/wpml-dir-recommended.jpg 1827w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><\/p>\n<h5><a href=\"#uninstall\" name=\"uninstall\">Uninstall WPML<\/a><\/h5>\n<p>Make sure to follow WPML&#8217;s in-plugin instructions to make a complete removal of WPML. If you do not use the uninstall function WPML will leave database table entries that can continue to have an effect on your site. For support with leftover WPML data or translation please seek support from the WPML plugin authors. If you have leftover translated strings or slugs after you have deactivated WPML, you should reinstall WPML and addon and then perform the uninstall by using the WPML options for &#8220;Reset&#8221; to remove translated strings. <a href=\"https:\/\/wpml.org\/documentation\/faq\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/wpml.org\/documentation\/faq\/<\/a><\/p>\n<p>Translate Events<\/p>\n<p>To enable translation for GeoDirectory Events (gd_event CPT):<br \/>\n<strong>WPML > Settings > Post Types Translation > Tick Translatable for \u201cEvents (gd_event)\u201d<\/strong><br \/>\n<strong>WPML > Settings > Taxonomies Translation > Tick Translatable for \u201cEvent Categories (gd_eventcategory)\u201d &#038; \u201cEvent Tags (gd_event_tags)\u201d<\/strong><\/p>\n","protected":false},"featured_media":0,"parent":167,"menu_order":19,"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\/431"}],"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=431"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/431\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/167"}],"prev":[{"title":"Social Importer","link":"https:\/\/wpgeodirectory.com\/docs-v2\/addons\/social-importer\/","href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/175"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}