{"id":900,"date":"2014-09-08T10:30:39","date_gmt":"2014-09-08T08:30:39","guid":{"rendered":"http:\/\/hesmid.nl\/test\/?p=900"},"modified":"2016-01-20T13:01:52","modified_gmt":"2016-01-20T12:01:52","slug":"wordpress-localized","status":"publish","type":"post","link":"https:\/\/hesmid.nl\/test\/wordpress-localized\/","title":{"rendered":"WordPress &#8211; Localized"},"content":{"rendered":"<p>A localized version (in this example Dutch) of WordPress is basically the same as the normal WordPress except for:<\/p>\n<ul>\n<li>includes\/version.php -&gt; contains aan extra line at the end with\n<pre lang=\"php\">$wp_local_package = 'nl_NL';<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>The\u00a0wp-content\/languages\u00a0folder<\/li>\n<\/ul>\n<p>Basically, all you need to do is:<!--more--><\/p>\n<p>Download your languages files from the http:\/\/nl.wordpress.org\/<br \/>\nThere is no need to add this repo as a submodule; just manually download the language files you require.<br \/>\nCreate a folder under content called languages. Place all of your .mo (and optionally .po) files here.<br \/>\nOpen up wp-config.php and set the WP_LANG constant on line 51.<\/p>\n<pre lang=\"php\">define( 'WPLANG', 'nl_NL' );<\/pre>\n<p><strong>Note:\u00a0<\/strong>WordPress will notify you that you don&#8217;t have the latest version, unless you add the line<\/p>\n<ul>\n<li>\n<pre lang=\"php\">$wp_local_package = 'nl_NL';<\/pre>\n<\/li>\n<\/ul>\n<p>to version.php in wp\/includes\/<\/p>\n<p>You will have to add that line after each update of WP and on all servers \ud83d\ude41<\/p>\n<p>OR what I did:<\/p>\n<p>Remove WP submodule, and add as normal files to git repo (see also the post with <a title=\"Git snippets and tricks\" href=\"https:\/\/hesmid.nl\/test\/web-development-2\/git-snippets-and-tricks\/\">Git snippets<\/a>)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A localized version (in this example Dutch) of WordPress is basically the same as the normal WordPress except for: includes\/version.php -&gt; contains aan extra line at the end with $wp_local_package = &#8216;nl_NL&#8217;; The\u00a0wp-content\/languages\u00a0folder Basically, all you need to do is:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17],"tags":[43],"acf":[],"_links":{"self":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/900"}],"collection":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":10,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":1416,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/900\/revisions\/1416"}],"wp:attachment":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}