{"id":2372,"date":"2019-11-26T18:56:30","date_gmt":"2019-11-26T18:56:30","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=2372"},"modified":"2022-02-17T07:13:49","modified_gmt":"2022-02-17T07:13:49","slug":"language-files","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/langauges\/language-files","title":{"rendered":"Language Files"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">The Files Used For Translating<\/h4>\n\n\n\n<p>You\u2019ll have one pair of PO\/MO files per language and region, but only one (optional) POT per domain.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">PO (Portable Object) file<\/h5>\n\n\n\n<p>A list of readable \u201ctranslated objects\u201d<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">MO (Machine Object) file<\/h5>\n\n\n\n<p>The corresponding binary (to be interpreted by Gettext when doing localization).<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">POT (PO Template) file<\/h5>\n\n\n\n<p>Contains all existing keys from your source files, and can be used as a guide to generate and update all PO files.<\/p>\n\n\n\n<p>Not mandatory.  Depending on the tool you\u2019re using to do l10n, you\u2019ll be just fine with only PO\/MO files<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Creating custom language files for a child theme<\/h4>\n\n\n\n<p> A child theme always uses the translation of the parent theme.   You have to use a different \/ the child themes text-domain slug for all translation function calls in the child theme files<\/p>\n\n\n\n<p>Copy the .po and .mo files to: &#8220;wp-content\/languages\/themes&#8221;<\/p>\n\n\n\n<p>Name them &#8220;[yourchildthemename]-nl_NL.po&#8221; and &#8220;[yourchildthemename]-nl_NL.mo&#8221;<\/p>\n\n\n\n<p>Replacing [yourchildthemename] with the name of your child theme.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Files Used For Translating You\u2019ll have one pair of PO\/MO files per language and region, but only one (optional) POT per domain. PO (Portable Object) file A list of readable \u201ctranslated objects\u201d MO (Machine Object) file The corresponding binary (to be interpreted by Gettext when doing localization). POT (PO Template) file Contains all existing [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[201],"tags":[],"class_list":["post-2372","post","type-post","status-publish","format-standard","hentry","category-langauges"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=2372"}],"version-history":[{"count":4,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2372\/revisions"}],"predecessor-version":[{"id":2405,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2372\/revisions\/2405"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=2372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=2372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=2372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}