{"id":6092,"date":"2016-06-13T19:42:59","date_gmt":"2016-06-13T19:42:59","guid":{"rendered":"https:\/\/manuals.qantumthemes.xyz\/onair2\/?post_type=ht_kb&#038;p=6092"},"modified":"2019-10-14T10:05:52","modified_gmt":"2019-10-14T10:05:52","slug":"7-0-translating-the-theme","status":"publish","type":"ht_kb","link":"https:\/\/manuals.qantumthemes.xyz\/onair2\/knowledge-base\/7-0-translating-the-theme\/","title":{"rendered":"7.0 Translating the theme"},"content":{"rendered":"<p>This theme is very easy to translate as the .mo .po (pot) files are provided within the language sub folder of the theme.<\/p>\n<p>In the main theme folder in wp-content\/themes\/onair you&#8217;ll find a &#8220;languages&#8221; folder.<\/p>\n<p>It contains a model to translate the theme using Poedit or other .mo .po translation softwares.<br \/>\n1. Start up Poedit.<\/p>\n<p>2. In Poedit goto File -&gt;<strong> New from POT\/PO file<\/strong>&#8230;<\/p>\n<p>3. Select and Open the pot file from the languages folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6511\" src=\"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM.png\" alt=\"\" width=\"820\" height=\"597\" srcset=\"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM.png 820w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM-300x218.png 300w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM-768x559.png 768w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM-50x36.png 50w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM-600x437.png 600w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2019\/10\/Screen-Shot-2019-10-14-at-11.19.32-AM-320x233.png 320w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/p>\n<p>4. Enter your name, email address, your language and country (i.e. French fr_FR, German de_DE) to the setting form.<\/p>\n<p>5. Click the Update button in the main Poedit UI.<\/p>\n<p>6. <strong>Translate the strings<\/strong> you want to change, then<strong> save the file<\/strong>:<br \/>\n&#8211; For a plugin like filename-xx_XX.po with xx_XX for your language and country.<br \/>\n&#8211; For a theme xx_XX.po<\/p>\n<p>Once done, remember to create click\u00a0<strong>File &gt; compile to MO<\/strong><\/p>\n<p>Via FTP upload <strong>both .po and .mo<\/strong> in the &#8216;<em>languages&#8217;<\/em> folder of your theme, in your online website<\/p>\n<p><strong>wp-content\/themes\/onair2\/languages\/<\/strong><\/p>\n<p>7. In WordPress Admin, \u00a0settings -&gt; general set the language of your country.<\/p>\n<p>8. That&#8217;s it, go to your WordPress blog and see your translation in action.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Plugins translation:<\/strong><\/p>\n<p>Some strings are in a separate translation file, within each plugin&#8217;s folder.<\/p>\n<p>Please remember to create the translation file of the plugin Theme Core. Its .pot file is in<\/p>\n<p>wp-content\/plugins\/ttg-core\/languages<\/p>\n<p>&#8211; Save it\u00a0as<strong> ttg-core-xx_XX<\/strong>.po with <strong>xx_XX<\/strong> for your language and country. Compile in .mo and upload both .mo and .po<\/p>\n<p>For more information please visit:\u00a0<a href=\"https:\/\/codex.wordpress.org\/Translating_WordPress\" target=\"_blank\" rel=\"noopener\">https:\/\/codex.wordpress.org\/Translating_WordPress<\/a><\/p>\n<p>You can download Poedit here:<\/p>\n<p><a href=\"https:\/\/poedit.net\/\" target=\"_blank\" rel=\"noopener\">https:\/\/poedit.net\/<\/a><\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht_kb_category":[585],"ht_kb_tag":[588,587],"class_list":["post-6092","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-translation","ht_kb_tag-languages","ht_kb_tag-translation"],"_links":{"self":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb\/6092"}],"collection":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/comments?post=6092"}],"version-history":[{"count":5,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb\/6092\/revisions"}],"predecessor-version":[{"id":6512,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb\/6092\/revisions\/6512"}],"wp:attachment":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/media?parent=6092"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb_category?post=6092"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb_tag?post=6092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}