{"id":335,"date":"2012-07-08T09:53:55","date_gmt":"2012-07-08T09:53:55","guid":{"rendered":"https:\/\/www.frozenlogistic.com\/?p=335"},"modified":"2012-08-12T17:59:51","modified_gmt":"2012-08-12T17:59:51","slug":"translations","status":"publish","type":"post","link":"https:\/\/www.frozenlogistic.com\/?p=335","title":{"rendered":"Translations"},"content":{"rendered":"<p>GavernWP has full support for making translations. Because of differences being a result of using JSON files for generating theme&#8217;s options, a theme&#8217;s translation should be done in three places:<\/p>\n<ol>\n<li>with files use from a languages catalog<\/li>\n<li>by creating a catalog of a language given in a config catalog<\/li>\n<li>by creating a catalog of a language given in an options catalog<\/li>\n<\/ol>\n<p>The first stage is a standard operation described in details in WordPress documentation. Let&#8217;s focus on the two remaining stages then:<\/p>\n<p>Generally, there is <strong>en_US<\/strong> catalog created in <strong>config<\/strong> and <strong>options<\/strong> catalogs which includes JSON configuration files in an English language. So, in order to translate a theme to a different language , you have to copy this catalog and change its name to a respective language used in your installation, e.g. <strong>pl_PL<\/strong>. Then, you have to change all phrases from the English language to your language.<\/p>\n<p>NOTE! You must not change the names of keys in JSON files, the same as, proper names because they are used for proper work and reading values.<\/p>\n<p>e.g. in a widgets.json file for a fragment:<\/p>\n<p>[code]{<br \/>\n\u00abname\u00bb: \u00abTop widgets\u00bb,<br \/>\n\u00abid\u00bb: \u00abtop\u00bb,<br \/>\n\u00abdescription\u00bb: \u00abWidgets area on under the header of website\u00bb,<br \/>\n\u00abbefore_widget\u00bb: \u00ab&lt;div id=\\\u00bb%1$s\\\u00bb class=\\\u00bbbox%2$s\\\u00bb&gt;\u00bb,<br \/>\n\u00abafter_widget\u00bb: \u00ab&lt;\/div&gt;\u00bb,<br \/>\n\u00abbefore_title\u00bb: \u00ab&lt;h3 class=\\\u00bbbox-title\\\u00bb&gt;\u00bb,<br \/>\n\u00abafter_title\u00bb: \u00ab&lt;\/h3&gt;\u00bb<br \/>\n},[\/code]<\/p>\n<p>change the following phrases only:<\/p>\n<ul>\n<li>\u00abTop widgets\u00bb<\/li>\n<li>\u00abWidgets area on under the header of website\u00bb<\/li>\n<\/ul>\n<p>After this operation, you will see sentences in your mother tongue in an administration panel.<\/p>\n<p>It&#8217;s worth remembering that in the case when GavernWP will not find a catalog corresponding to the language set in configuration, there will be files used from <strong>en_US<\/strong> catalogs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GavernWP has full support for making translations. Because of differences being a result of using JSON files for generating theme&#8217;s options, a theme&#8217;s translation should be done in three places: &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[29,28,33],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-theme-features","tag-configuration","tag-json","tag-translations"],"_links":{"self":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335"}],"version-history":[{"count":5,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":337,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions\/337"}],"wp:attachment":[{"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.frozenlogistic.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}