{"id":643,"date":"2011-05-08T17:38:36","date_gmt":"2011-05-08T15:38:36","guid":{"rendered":"http:\/\/www.kavdesign.net\/blog\/?p=643"},"modified":"2011-05-08T17:39:49","modified_gmt":"2011-05-08T15:39:49","slug":"how-to-translate-the-wordpress-thesis-theme","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/wordpress\/how-to-translate-the-wordpress-thesis-theme\/","title":{"rendered":"How to translate the WordPress Thesis Theme"},"content":{"rendered":"<p>WordPress Thesis Theme is shipped in English language only, but it provides also the strings  to translate in a file in PO (GNU Gettext Portable Object) format.<br \/>\nThe file is <code>thesis.po<\/code> and is located in the directory <code>wp-content\/themes\/thesis<\/code> of your WordPress installation. The file <code>thesis.mo<\/code> that you\u2019ll find in the same directory is the same file but in the machine readable format.<br \/>\nTo translate the Thesis\u2019s strings in your own language follow these simple steps :<\/p>\n<ol>\n<li>set your preferred language in the file <code>wp-config.php<\/code> : for Italian, for example, <code>define ('WPLANG', 'it_IT');<\/code><br \/>\nSee these instructions <a href=\"http:\/\/codex.wordpress.org\/WordPress_in_Your_Language\">WordPress in Your Language<\/a> for a complete guide.<\/li>\n<li>rename the <code>thesis.po<\/code> file using your language code (ex for Italian language in will be : <code>it_IT.po<\/code>)<\/li>\n<li>open the file with the text editor of your choice and translate the strings filling the <code>msgstr<\/code> value<\/li>\n<li>using the command-line utility <code>msgfmt<\/code> to create the machine readable file : <code>msgfmt -o it_IT.mo it_IT.po<\/code><\/li>\n<li>copy the files <code>it_IT.po<\/code>, <code>it_IT.mo<\/code> into the <code>wp-content\/themes\/thesis<\/code> directory<\/li>\n<li>In thesis 1.8 or later copy the files <code>it_IT.po<\/code>, <code>it_IT.mo<\/code> into the <code>wp-content\/themes\/thesis_18\/lib\/languages<\/code> directory<\/li>\n<li>There may be missing strings, so add them to the .po file with Dreamweaver or notepad and generate the .mo file with poedit.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>WordPress Thesis Theme is shipped in English language only, but it provides also the strings to translate in a file in PO (GNU Gettext Portable&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/wordpress\/how-to-translate-the-wordpress-thesis-theme\/\">Continue reading<span class=\"screen-reader-text\">How to translate the WordPress Thesis Theme<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[82],"tags":[111,144,100,418],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-theme","tag-thesis","tag-translation","tag-wordpress","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=643"}],"version-history":[{"count":3,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":647,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/643\/revisions\/647"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}