Re: Changing Language in Usbong

8 views
Skip to first unread message

Michael Syson

unread,
Oct 6, 2015, 8:06:57 AM10/6/15
to Iggy Torres, usbong...@googlegroups.com
Hi TorresSAN,
Thank you for the email.

1) Steps to add translation
--> based on the translation files in <your tree>.utree/trans/
--> Capitalize the first letter (i.e. "Filipino", "Japanese")
--> default language is: "English"
--> you may get hold of the sample pedia.utree from the Usbong website

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.


Let me know if you have further questions.

がんばってください。
Mike

--
Usbong: Uplifting Human Lives--
Michael B. Syson
Ateneo de Manila University

On Tue, Oct 6, 2015 at 6:13 PM, Iggy Torres <iggy....@yahoo.com> wrote:
Good evening sir

I am Luigi Torres, from The Food Date group
I would like to ask how do you change the language in Usbong 
while making the app, like the text
and after the app is finished, being able to switch the language while using the app

Thank you

Reply all
Reply to author
Forward
0 new messages