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

Developer
Posts: 19,636
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

Developer
Posts: 239
Registered: ‎07-26-2010
My Device: Z10
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?

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