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.

inside custom component

Java Development

Reply
Developer
anta40
Posts: 224
Registered: ‎07-26-2010
My Device: Z10

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: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

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.
Developer
anta40
Posts: 224
Registered: ‎07-26-2010
My Device: Z10

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: 16,215
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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.