{"id":93,"date":"2019-03-12T14:36:57","date_gmt":"2019-03-12T14:36:57","guid":{"rendered":"http:\/\/localhost\/wordpress\/lore-demo\/?post_type=lsvr_kba&amp;p=93"},"modified":"2019-03-12T14:36:57","modified_gmt":"2019-03-12T14:36:57","slug":"translation","status":"publish","type":"lsvr_kba","link":"https:\/\/help.letterhub.com\/index.php\/knowledge-base\/translation\/","title":{"rendered":"Translation"},"content":{"rendered":"\n\t\t\t\t\n<p>If you are going to use this theme in any language other then English, you will need to translate it. The important part is that you need to translate the <strong>theme and all LSVR plugins<\/strong> you are using. Most of the translatable text is part of the admin area, so if you plan to translate only the front-end, there won&#8217;t be that much text to translate.<\/p>\n\n\n\n<p>There are <strong>two general approaches to translation<\/strong>. You can either use a <a rel=\"noreferrer noopener\" aria-label=\"3rd party plugin (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/\" target=\"_blank\">3rd party plugin<\/a>, or do it the old-fashioned way via the <a rel=\"noreferrer noopener\" aria-label=\"Poedit (opens in a new tab)\" href=\"https:\/\/poedit.net\/\" target=\"_blank\">Poedit<\/a> software. If you prefer the plugin approach, check out their respective documentations on how to do that. We will describe the manual process of <strong>translation via Poedit<\/strong> which I recommend over the plugin approach because <strong>it is usually much more reliable<\/strong>.<\/p>\n\n\n\n<p>Before we begin, download and install <a href=\"https:\/\/poedit.net\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Poedit (opens in a new tab)\">Poedit<\/a> to your computer.<\/p>\n\n\n\n<h2>Theme Translation<\/h2>\n\n\n\n<p>1.) Make copy of the <strong><em>lore.pot<\/em><\/strong> file from the theme&#8217;s <em>languages<\/em> folder. You can either just unzip the <em>lore.zip<\/em> file (which you got from full package) on your local computer and find the .pot file there, or you can use FTP to access your WP installation and copy the .pot file from the <em>wp-content \/ themes \/ lore \/ languages<\/em> folder.<\/p>\n\n\n\n<p>2.) Paste the file anywhere on your computer and rename it to <em><strong>lore-xx_YY.po<\/strong><\/em>. &#8220;xx&#8221; stands for your <a rel=\"noreferrer noopener\" aria-label=\"language code (opens in a new tab)\" href=\"http:\/\/www.gnu.org\/software\/gettext\/manual\/html_chapter\/gettext_16.html#Language-Codes\" target=\"_blank\">language code<\/a> and YY for <a rel=\"noreferrer noopener\" aria-label=\"country code (opens in a new tab)\" href=\"http:\/\/www.gnu.org\/software\/gettext\/manual\/html_chapter\/gettext_16.html#Country-Codes\" target=\"_blank\">country code<\/a> (for example &#8220;lore-de_DE.po&#8221; for German). Notice how the file extension changed from &#8220;.pot&#8221; to &#8220;.po&#8221;.<\/p>\n\n\n\n<p>3.) Open your .po file in Poedit, make your changes and save the file. This will create a new file &#8211; <em><strong>lore-xx_YY.mo<\/strong><\/em>.<\/p>\n\n\n\n<p>4.) Copy both <strong><em>lore-xx_YY.po<\/em><\/strong> and <em><strong>lore-xx_YY.mo<\/strong><\/em> to your WP installation under <em>wp-content \/ languages \/ themes<\/em> and that&#8217;s it.<\/p>\n\n\n\n<h2>Plugins Translation<\/h2>\n\n\n\n<p>The whole process is very similar to theme translation, you just need to do it separately for each plugin. Let&#8217;s translate the <strong>LSVR Knowledge Base<\/strong> plugin for example (but it is the same for all LSVR plugins).<\/p>\n\n\n\n<p>1.) Make copy of the <strong><em>lsvr-knowledge-base.pot<\/em><\/strong> file from the LSVR Knowledge Base plugin <em>languages<\/em> folder. You can either just unzip the <em>lsvr-knowledge-base.zip<\/em> file from the <em>Plugins<\/em> folder (which you can find in full package) on your local computer and find the .pot file there, or you can use FTP to access your WP installation and copy the .pot file from <em>wp-content \/ plugins \/ lsvr-knowledge-base \/ languages<\/em> folder.<\/p>\n\n\n\n<p>2.) Paste the file anywhere on your computer and rename it to <strong><em>lsvr-knowledge-base-xx_YY.po<\/em><\/strong>. &#8220;xx&#8221; stands for your <a rel=\"noreferrer noopener\" aria-label=\"language code (opens in a new tab)\" href=\"http:\/\/www.gnu.org\/software\/gettext\/manual\/html_chapter\/gettext_16.html#Language-Codes\" target=\"_blank\">language code<\/a> and YY for <a rel=\"noreferrer noopener\" aria-label=\"country code (opens in a new tab)\" href=\"http:\/\/www.gnu.org\/software\/gettext\/manual\/html_chapter\/gettext_16.html#Country-Codes\" target=\"_blank\">country code<\/a> (for example &#8220;lsvr-knowledge-base-de_DE.po&#8221; for German). Notice how the file extension changed from &#8220;.pot&#8221; to &#8220;.po&#8221;.<\/p>\n\n\n\n<p>3.) Open your .po file in Poedit, make your changes and save the file. This will create a new file &#8211; <strong><em>lsvr-knowledge-base-xx_YY.mo<\/em><\/strong>.<\/p>\n\n\n\n<p>4.) Copy both <strong><em>lsvr-knowledge-base-xx_YY.po<\/em><\/strong> and <em><strong>lsvr-knowledge-base-xx_YY.mo<\/strong><\/em> to your WP installation under <em>wp-content \/ languages \/ plugins<\/em> and that&#8217;s it.<\/p>\n\n\n\n<div class=\"lsvr-alert-message lsvr-alert-message--info\"\n    >\n    <div class=\"lsvr-alert-message__inner\">\n\n        \n        \n            <div class=\"lsvr-alert-message__text\">\n\n                <p>Make sure that your site language under Settings \/ General is set to the correct language.<\/p>\n\n            <\/div>\n\n        \n    <\/div>\n<\/div>\n\n\t\t","protected":false},"excerpt":{"rendered":"<p>If you are going to use this theme in any language other then English, you will need to translate it. The important part is that you need to translate the theme and all LSVR plugins you are using. Most of the translatable text is part of the admin area, so if you plan to translate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"lsvr_kba_cat":[12],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba\/93"}],"collection":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":0,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba\/93\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba_cat?post=93"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba_tag?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}