{"id":796,"date":"2007-01-02T20:13:59","date_gmt":"2007-01-02T19:13:59","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T22:00:00","slug":"multilanguage2","status":"publish","type":"post","link":"https:\/\/tom.scholten.nu\/weblog\/2007\/01\/02\/multilanguage2","title":{"rendered":"Multilanguage"},"content":{"rendered":"<p>Finally my weblog is bilingual. After trying out a few plugins i decided to go with <a href=\"http:\/\/fredfred.net\/skriker\/index.php\/polyglot\/lang-pref\/en\/\">PolyGlot<\/a>. Some simple adjustments and a (blush) finally working .htaccess file made everything work. Adjusments are in the complete post, because from now on i will start &#8216;splitting&#8217; my posts to keep my frontpage in order.<br \/>\n<a title=\"evolutie1.jpg\" class=\"imagelink\" href=\"http:\/\/tom.scholten.nu\/weblog\/wp-content\/uploads\/2007\/01\/evolutie1.jpg\" rel=\"lightbox[796]\"><img loading=\"lazy\" decoding=\"async\" width=\"136\" height=\"95\" alt=\"evolutie1.jpg\" id=\"image212\" src=\"http:\/\/tom.scholten.nu\/weblog\/wp-content\/uploads\/2007\/01\/evolutie1.voorbeeld.jpg\" \/><\/a> <a title=\"evolutie2.jpg\" class=\"imagelink\" href=\"http:\/\/tom.scholten.nu\/weblog\/wp-content\/uploads\/2007\/01\/evolutie2.jpg\" rel=\"lightbox[796]\"><img loading=\"lazy\" decoding=\"async\" width=\"132\" height=\"95\" alt=\"evolutie2.jpg\" id=\"image213\" src=\"http:\/\/tom.scholten.nu\/weblog\/wp-content\/uploads\/2007\/01\/evolutie2.voorbeeld.jpg\" \/><\/a><br \/>\n<!--more--> PolyGlot adjustments;<\/p>\n<p>After downloading unzipping I ran into problems first, because the zipfile unzippes in the directory instead of a subdir, but thats intended! Read the blog on PolyGlot, but at least edit the <strong>polyglot.php<\/strong> file to set your languages.<\/p>\n<p>In <em>search.php\/single.php\/index.php<\/em> inside the <strong>class=entry<\/strong> i added<br \/>\nif(function_exists(&#8216;lp_other_langs&#8217;)) {lp_other_langs(&#8216; &#8216;,&#8217; &#8216;, &#8216; &#8216;, &#8216; &#8216;, &#8216; &#8216;);}<\/p>\n<p>In <em>sidebar.php<\/em> i added<br \/>\nif(function_exists(&#8216;polyglot_list_langs&#8217;)){polyglot_list_langs(true);}<br \/>\nEach posting just contains two languages, so lang_xx between [ and ] brackets \ud83d\ude42<\/p>\n<p>Just simple!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally my weblog is bilingual. After trying out a few plugins i decided to go with PolyGlot. Some simple adjustments and a (blush) finally working<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-796","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/posts\/796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/comments?post=796"}],"version-history":[{"count":0,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/posts\/796\/revisions"}],"wp:attachment":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/media?parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/categories?post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/tags?post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}