{"id":30,"date":"2019-09-19T06:50:53","date_gmt":"2019-09-19T06:50:53","guid":{"rendered":"https:\/\/www.loftocean.com\/eaven\/?p=30"},"modified":"2019-09-20T09:40:44","modified_gmt":"2019-09-20T09:40:44","slug":"how-to-translate-eaven-theme","status":"publish","type":"post","link":"https:\/\/www.loftocean.com\/eaven\/translate\/how-to-translate-eaven-theme\/","title":{"rendered":"How to translate Eaven theme"},"content":{"rendered":"<p>Eaven theme is translation ready. We have included .pot file which can be used for translating the theme into any language.<\/p>\n<p>please use this free tool to translate: <a href=\"https:\/\/poedit.net\/wordpress\">poedit<\/a>. You can download the tool to your computer, and read <a href=\"https:\/\/make.wordpress.org\/docs\/theme-developer-handbook\/part-two-theme-functionality\/internationalization\/\">poedit documentation<\/a> to know the details about how to translate your site with the tool.<\/p>\n<hr \/>\n<p>Let&#8217;s translate the text &#8220;Next Article&#8221; into German as a simple example:<\/p>\n<h5>Step 1 &#8211; Find the .pot file<\/h5>\n<p>In the <strong>eaven<\/strong> theme folder, please go to <strong>assets &gt; languages<\/strong>, there you can find the <strong>&#8220;eaven.pot&#8221;<\/strong> file.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-229\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/fallsky-pot-file-location.png\" alt=\"fallsky-pot-file-location\" width=\"1594\" height=\"362\" \/><\/p>\n<p>&nbsp;<\/p>\n<h5>Step 2 &#8211; Translate text in &#8220;eaven.pot&#8221; file<\/h5>\n<p>Please download and install <a href=\"https:\/\/poedit.net\/wordpress\">poedit<\/a> on your computer first. Then right click the <strong>&#8220;eaven.pot&#8221;<\/strong> file and choose to open it with <strong>Poedit.app<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-231\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/open-pot-in-poedit.png\" alt=\"\" width=\"520\" height=\"244\" \/><\/p>\n<p>Or open <strong>Poedit.app<\/strong> first, then choose <strong>&#8220;Create New Translation&#8221;<\/strong> and choose &#8220;eaven.pot&#8221; file.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-205\" src=\"http:\/\/www.loftocean.com\/berry\/wp-content\/uploads\/sites\/5\/2017\/08\/choose-pot-to-translate.png\" alt=\"choose-pot-to-translate\" width=\"2068\" height=\"1192\" \/><\/p>\n<p>Select the target language in the list:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-233\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/translation-language.png\" alt=\"\" width=\"2070\" height=\"512\" \/><\/p>\n<p>Find the text you&#8217;d like to translate, then enter the translated text into <strong>&#8220;Translation&#8221;<\/strong> box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-234\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/translate-text.png\" alt=\"\" width=\"2066\" height=\"1242\" \/><\/p>\n<p>When complete the translation, click <strong>&#8220;File&#8221; &gt; &#8220;Save as&#8221;<\/strong>, then add <strong>&#8220;eaven-&#8220;<\/strong> as the prefix to the file name. So if the default file name is &#8220;de_DE.po&#8221;, change it to &#8220;eaven-de_DE.po&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-236\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/save-translation.png\" alt=\"\" width=\"1646\" height=\"726\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-239\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/add-fallsky-prefix-2.png\" alt=\"\" width=\"415\" height=\"165\" \/><\/p>\n<p>Then you will get 2 files: <strong>&#8220;eaven-de_DE.po&#8221;<\/strong> and <strong>&#8220;eaven-de_DE.mo&#8221;<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h5>Step 3 &#8211; Upload translated files to your WordPress site<\/h5>\n<p>Please upload the 2 files to your WordPress site via FTP. Please put the 2 files to the path &#8220;wp-content\/languages\/themes&#8221;, like shown in the screenshot below. You may need to create a new folder and name it <strong>&#8220;themes&#8221;<\/strong> if the folder doesn&#8217;t exist.<\/p>\n<p><strong>Please note:<\/strong> Don&#8217;t upload to <strong>wp-content &gt; themes<\/strong>, the correct path is <strong>wp-content &gt; languages &gt; themes<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/upload-mo-po-file.png\" alt=\"\" width=\"1356\" height=\"182\" class=\"alignnone size-full wp-image-241\" \/><\/p>\n<p>&nbsp;<\/p>\n<h5>Step 4 &#8211; Switch your site language<\/h5>\n<p>In your WordPress dashboard, go to <strong>Settings &gt; General &gt; Site Language<\/strong>, choose the target language in the list, then save changes to let your site use the translated file.<\/p>\n<p>As you can see in the screenshot below, the text &#8220;Next Article&#8221; on a single post page has been translated into &#8220;N\u00e4chster Artikel&#8221;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.loftocean.com\/fallsky\/wp-content\/uploads\/sites\/8\/2018\/06\/translated-text.jpg\" alt=\"\" width=\"1722\" height=\"594\" class=\"alignnone size-full wp-image-243\" \/><\/p>\n<p>And please note: when switch your site language, be careful with the language options. For example, if you choose &#8220;<strong>Deutsch (Schweiz)<\/strong>&#8221; instead of <strong>&#8220;Deutsch&#8221;<\/strong>, then the translated files should be named as\u00a0<strong>&#8220;eaven-de_CH.po&#8221;<\/strong> and <strong>&#8220;eaven-de_CH.mo&#8221;<\/strong>. WordPress will not load\u00a0<strong>&#8220;eaven-de_DE.po&#8221;<\/strong>\u00a0and\u00a0<strong>&#8220;eaven-de_DE.mo&#8221; <\/strong>for<strong>\u00a0&#8220;Deutsch (Schweiz)&#8221;<\/strong> language\u00a0option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-182\" src=\"http:\/\/www.loftocean.com\/ceramag\/wp-content\/uploads\/sites\/6\/2017\/04\/choose-site-language.png\" alt=\"choose-site-language\" width=\"1272\" height=\"248\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eaven theme is translation ready. We have included .pot file which can be used for translating the theme into any language. please use this free tool to translate: poedit. You can download the tool to your computer, and read poedit documentation to know the details about how to translate your site with the tool. Let&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-translate"],"_links":{"self":[{"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":2,"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":51,"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/posts\/30\/revisions\/51"}],"wp:attachment":[{"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.loftocean.com\/eaven\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}