Thursday, October 25, 2012

Usbong Update (Oct. 24, 2012): Set Language = OK

Hi everyone,

Here's another important update regarding Usbong.

Tasks accomplished:
  • added: set language = OK 
    • based on the translation files in <your tree>.utree/trans/
    • Capitalize the first letter (i.e. "Filipino", "Japanese")
    • default language is: "English"
    • refer to attached screenshots
This is what pedia.utree looks inside:
pedia.utree./res./trans/Japanese.xml./pedia.xml
Place your translations inside the trans folder.
  • refer to attached: Japanese.xml
  • take note of the format (based on Android's strings.xml)
  • what happens is, before Usbong displays the screen,
  1. It checks the current language setting.
  2. It then takes the words on the screen (which are based on your xml tree), and matches it with the corresponding string names in the xml file in the trans folder (e.g. Japanese.xml).
  3. Once it finds the matching word, it then replaces the words on the screen with the equivalent word in /trans/<language>.xml
You can put as many translations as you want (not just Japanese).

The set language dialog box should adjust accordingly.

I've just uploaded the latest .apk onto Google Play.It should be available for download within 24 hours.

Let me know if you need me to clarify anything.

Cheers,
Mike