{"id":342,"date":"2012-02-09T15:31:21","date_gmt":"2012-02-09T20:31:21","guid":{"rendered":"http:\/\/littlesvr.ca\/grumble\/?p=342"},"modified":"2012-12-05T00:50:00","modified_gmt":"2012-12-05T05:50:00","slug":"lots-of-translations","status":"publish","type":"post","link":"http:\/\/littlesvr.ca\/grumble\/2012\/02\/09\/lots-of-translations\/","title":{"rendered":"Lots of translations"},"content":{"rendered":"<p>Christian Perrier from the debian-i18n list has done me a huge favour. He created a tarball with every translation in every language for every piece of software in Debian!<\/p>\n<p>You may imagine it&#8217;s huge as did I, but I was shocked at just how big it is. Almost 2 GB of gzip-compressed PO files from the testing and unstable branches!<\/p>\n<p>I wrote a little script to extract all the po files from the extracted tarball:<\/p>\n<pre>find | while read A; do gunzip -v \"$A\" ; done<\/pre>\n<p>I&#8217;ve no idea how long it&#8217;s going to take to run :)<\/p>\n<p>After that I&#8217;ll have to write a special PHP script to parse all the po files and add the translations to the database. there are going to be some challenges with that:<\/p>\n<ol>\n<li>It&#8217;s going to be very hard to notice if an error happened during parsing or insertion.<\/li>\n<li>It&#8217;s probably going to take a very long time on <a href=\"http:\/\/littlesvr.ca\/grumble\/2007\/09\/18\/cool-quiet-and-reasonably-priced-server\/\">current hardware<\/a>.<\/li>\n<li>I might actually run out of disk space, since my MySQL databases are in \/var and that&#8217;s on the root partition and it&#8217;s quite small.<\/li>\n<li>If my schema design isn&#8217;t great &#8211; I might have to scrap it all and go through the exercise again. This is, sadly, quite likely.<\/li>\n<\/ol>\n<p>All solvable problems, and I&#8217;m happy that I already got to the point where I have to seriously worry about scalability.<\/p>\n<p>Thanks Christian!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Christian Perrier from the debian-i18n list has done me a huge favour. He created a tarball with every translation in every language for every piece of software in Debian! You may imagine it&#8217;s huge as did I, but I was shocked at just how big it is. Almost 2 GB of gzip-compressed PO files from &hellip; <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-andrew","4":"post-342","6":"format-standard","7":"category-ostd","8":"category-safeforseneca"},"_links":{"self":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":5,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":344,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/342\/revisions\/344"}],"wp:attachment":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}