Posts Tagged localization
A peak into localization by Chris N. who worked on the POSIT-Haiti code base:
Being able to display the app in multiple languages was essential for the project, due to the developers being native English speakers and the end users speaking French and Haitian Creole. I localized the mobile side of the app. There are hundreds of strings that appear in the display of the app, each of which needed to be internationalized and then localized. After the strings were translated and organized into xml files, they were then tested. A number of bugs appeared as a result of being able to change the language. Multiple strings needed to be abstracted out of the code. In addition, menu and dialog boxes needed to be reinitialized so that the newly changed language would display properly.
There was a great deal of difficulty keeping the character encoding consistent between Linux and Apple machines, which use different codes for special characters (such as the é character). This coding issue made it difficult to create non-conflicting translation patches that can work on both Linux and Macintosh computers. In addition, the patches often had to be tested for conflicts before being applied to the most recent repositories, due to the localization process’s nature of touching all the files in the app. It also became necessary to abstract the options end users select in data entry forms from the strings those forms store in the database, since otherwise the data queries would not be able to identify data submitted in one language and retrieved in another.
The localization process was difficult, but enjoyable. Users are able to toggle the display language between English, French, and Haitian Creole without exiting the app. Furthermore, the app is set up so that additional languages can be implemented quickly and easily.