Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
anta40
Posts: 220
Registered: ‎07-26-2010
My Carrier: Telkomsel

Easiest way to provide multi-language support?

I want my app to support several languages (e.g: English, Indonesia, and Malaysia). Of course users are able to change the language within the app.

 

What is the easiest way to do this?

I think  ResourceBundle can be used for the purpose, but I'm still not sure how to change the language during run time.

Please use plain text.
Developer
peter_strange
Posts: 17,959
Registered: ‎07-14-2008

Re: Easiest way to provide multi-language support?

The search box is your friend - remember someone else has probably asked the question before.

 

http://supportforums.blackberry.com/t5/Java-Development/Change-default-language-in-4-6/m-p/641323

Please use plain text.
Trusted Contributor
anta40
Posts: 220
Registered: ‎07-26-2010
My Carrier: Telkomsel

Re: Easiest way to provide multi-language support?

Ah I see. Thanks.

But I don't see Indonesia or Malaysia supported in Locale class.

How can we use them, then?

Please use plain text.
Developer
simon_hain
Posts: 14,064
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Easiest way to provide multi-language support?

according to my own reply to a similar question (i used search):
id is the code for Indonesia.
Appname_id.rrc would be the language file.

as there is no constant in the locale class there may be no way to set indonesian as the device language programatically, but you can provide resources for it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.