{"id":809,"date":"2006-09-21T14:43:56","date_gmt":"2006-09-21T14:43:56","guid":{"rendered":"http:\/\/software.sil.org\/wesay\/?p=809"},"modified":"2017-04-27T14:46:46","modified_gmt":"2017-04-27T14:46:46","slug":"localization","status":"publish","type":"post","link":"https:\/\/software.sil.org\/wesay\/localization\/","title":{"rendered":"Localization"},"content":{"rendered":"<p>I am dictating this blog using Microsoft Vista\u2019s built in speech recognition. I have been using speech recognition for over five years now, and I\u2019m very excited about the quality I\u2019m seeing. Back to WeSay\u2026<\/p>\n<p>It\u2019s obviously important that people can easily change the user interface of WeSay to use a national or regional language that the user understands. <em>Internationalization<\/em> is an involved in topic, and it\u2019s easy to get bogged down in all of the potential complexities. Following my personal adage\u201dif it\u2019s worth doing, it\u2019s worth doing poorly\u201d, we\u2019ve done something pretty simple to get our localization ball rolling.<\/p>\n<p>The first decision we made was that we don\u2019t want people to have to buy special or complicated tools in order to produce a localized version of WeSay. We want them to be able to just edit a text file, or use a <a href=\"http:\/\/www.poedit.org\/\" title=\"\" class=\"external\" target=\"_blank\" rel=\"noopener\">simple free tool<\/a>. Of course, po\/gettext files fit this bill.<\/p>\n<p>The next decision was how to actually use that file\u2026 I tried getting the relevant gnu libraries for .net, but I just kept running into problems. Eric convinced me that I should just to write a little parser for it myself, and even though that felt so terribly wrong, I did have the parser going in a fraction of the time I had spent trying to locate\/use standard libraries.<\/p>\n<p>Anyhow, Eric provided some Portuguese for a few labels, and we produced the following: <a href=\"\/wp-content\/uploads\/sites\/35\/2017\/04\/20060920_14095010692.png\" rel=\"lightbox\"><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/35\/2017\/04\/20060920_14095010692.png\" alt=\"Palavras tab\" title=\"Palavras tab\" \/><br \/>\n<\/a><\/p>\n<p>We get this simply by adding \/ui:br to the shortcut that launches WeSay (\u2018br\u2019 is for Brazil). This causes WeSay to go looking for a file named br.po, first in the user\u2019s project directory, and then in the WeSay common directory. Users will be able to submit po files that they have localized and are willing to include in the next distribution of WeSay. But no one needs to wait for a new distribution\u2026 they can simply make their own po file or share the file with colleagues in the area.<\/p>\n<div class=\"top border\"><a href=\"#top\">top<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I am dictating this blog using Microsoft Vista\u2019s built in speech recognition. I have been using speech recognition for over five years now, and I\u2019m very excited about the quality I\u2019m seeing. Back to WeSay\u2026 It\u2019s obviously important that people can easily change the user interface of WeSay to use a national or regional language [&hellip;]<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-809","post","type-post","status-publish","format-standard","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts\/809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/comments?post=809"}],"version-history":[{"count":3,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts\/809\/revisions"}],"predecessor-version":[{"id":812,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts\/809\/revisions\/812"}],"wp:attachment":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/media?parent=809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/categories?post=809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/tags?post=809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}