{"id":210,"date":"2020-05-08T23:29:40","date_gmt":"2020-05-08T23:29:40","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=210"},"modified":"2020-09-23T10:59:07","modified_gmt":"2020-09-23T10:59:07","slug":"translating-directorist","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/advanced-settings\/translating-directorist\/","title":{"rendered":"Translating Directorist"},"content":{"rendered":"<p><b>Translate Using Loco<\/b><\/p>\n<p><span style=\"font-weight: 400\">You can use the loco translator plugin to translate it to your language. Please go through the steps below-<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400\"> Go to <\/span><b>plugins \u2192add new \u2192 and search for Loco Translate \u2192 Click Install and Activate<\/b><\/li>\n<li><span style=\"font-weight: 400\"> From the <\/span><b>wp-admin dashboard \u2192 click on Loco Translate \u2192 Plugins \u2192 Directorist- Business Directory Plugin<\/b><\/li>\n<li><span style=\"font-weight: 400\"> You will see an interface likewise the screenshot here <\/span><span style=\"font-weight: 400\">and click on &#8220;New Language&#8221;.<\/span><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/K9At5cK.png\" \/><\/li>\n<li><span style=\"font-weight: 400\">Select the language from the dropdown <\/span><span style=\"font-weight: 400\"><span style=\"font-weight: 400\">and click on &#8220;Start Translating&#8221;.<br \/>\n<\/span><\/span><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/mCrjxiQ.png\" \/><\/li>\n<li><span style=\"font-weight: 400\"><span style=\"font-weight: 400\"> Now, you will see an interface where you can translate the strings to your language.<\/span><\/span><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/eWUqSC4.png\" \/><\/li>\n<li>Make sure to click on <b>&#8220;Save&#8221;<\/b> and then <b>&#8220;Sync&#8221;<\/b>, else the changes won&#8217;t take effect.<\/li>\n<li>You must move the PO and MO files from the plugins folder to <strong>wp-content \u2192 languages \u2192 loco \u2192 plugins<\/strong> or <strong>wp-content \u2192 languages \u2192 plugins <\/strong>to avoid losing your translations when you update the plugin. To do so navigate to <strong>Loco translate \u2192 plugins \u2192<\/strong> select the plugin you are translating and the click on &#8220;edit&#8221; right below the language file.<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/AM13l0Q.png\" width=\"691\" height=\"719\" \/><\/span><\/p>\n<p>Now click on &#8220;Relocate&#8221;, select either &#8220;Custom&#8221; or &#8220;System&#8221; and click on &#8220;Move files&#8221; to avoid losing your translations when you update the plugin.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/WAZlUAl.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Translate Directorist Manually<\/b><\/p>\n<p><span style=\"font-weight: 400\">To translate using the poedit software, you are required to open the directorist.pot file which is located in <\/span><b>wp-content \u2192 plugins \u2192 Directorist \u2192 Languages<\/b><span style=\"font-weight: 400\"> and follow the steps below<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400\"> Open the <\/span><b>directorist.pot<\/b><span style=\"font-weight: 400\"> file using the poedit software.<\/span><\/li>\n<li><span style=\"font-weight: 400\"> An option will appear to <\/span><b>create a new language<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<li><span style=\"font-weight: 400\"> Select the language from the drop-down <\/span><\/li>\n<li><span style=\"font-weight: 400\">You will have to translate the string on the interface and save it when you are done.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Upon saving the file, you will notice two new files .po and .mo is created. You must add the text domain <\/span><b>&#8220;directorist&#8221;<\/b><span style=\"font-weight: 400\"> before the WordPress Locale Code. Rename the files like <strong>directorist-en_US.po<\/strong> and <strong>directorist-en_US.mo<\/strong>. Please note, the <\/span><b>WordPress Locale Code<\/b><span style=\"font-weight: 400\"> will vary and do not edit the language code that is generated by the poedit or make sure not to rename the code which is after <\/span><b>directorist-<\/b><span style=\"font-weight: 400\">. In short, poedit software will save the file with language code and you just need to add the &#8220;<\/span><b>directorist-<\/b><span style=\"font-weight: 400\">&#8221; before the file name.<\/span><\/li>\n<li>You must move the PO and MO files from the plugins folder to <strong>wp-content \u2192 languages \u2192 loco \u2192 plugins<\/strong> or <strong>wp-content \u2192 languages \u2192 plugins <\/strong>to avoid losing your translations when you update the plugin.<\/li>\n<\/ol>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-210","wpwax_directorist","type-wpwax_directorist","status-publish","hentry","wpwax_directorist_category-advanced-settings"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_directorist"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2298"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}