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: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Ask about localization using our own language

To all developers,

I'm trying to localize my app by creating resource file using another language (in my app, i'm creating translation from english to indonesia).

But, how can i change the language, if no variable locale value is found for my own language?

 

i try to use 

Locale.setDefault(Locale.get(Locale.LOCALE_en, null));

but, LOCALE_in is not found..

Anybody can help me??

 

Thank you ^^

 

 

 

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Ask about localization using our own language

usually the user changes the language of the device, and the application shows the appropriate localized text.
you can change the language in the device options.
----------------------------------------------------------
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
Highlighted
Developer
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Ask about localization using our own language

Thanx for the answer, sir..

Unfortunately, i want to set locale default programmatically and there's no locale for my country.

So i can't try it in simulator..

Is there any method for using file rrc that we created for our own language?

 

Sorry if my english language is bad..