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
Regular Contributor
KingNaresh
Posts: 87
Registered: ‎04-30-2013
My Device: 9220

Localization doesn't work.. Help!

Hi,

 

 Am new to Blackberry Java, now i am working in localization but its not working for me. I created the file based upon the documents only. I enetered the key and values in Root, i check it in xxx _fr.rrc, xxx _tr.rrc  files its shows only key fields. i dunno why values are not shown. How to resolve this problem and how to translate values from root file to other files like _fr,_tr.

 

Thanks... 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Localization doesn't work.. Help!

use the resource file editor that comes with the eclipse plugin
----------------------------------------------------------
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
Regular Contributor
KingNaresh
Posts: 87
Registered: ‎04-30-2013
My Device: 9220

Re: Localization doesn't work.. Help!

Simson, 

 

resource file edtor? can you explain where it is located and how to convert and am using eclipse indigo? 

 

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Localization doesn't work.. Help!

if you have installed the bb plugin opening a rrh or rrc file from eclipse should open the resource editor. you could also try the "open with" context menu.
----------------------------------------------------------
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
Regular Contributor
KingNaresh
Posts: 87
Registered: ‎04-30-2013
My Device: 9220

Re: Localization doesn't work.. Help!

Ya.. Am doing like this only...
1.Entered Key field ---> FIELD_NAME
2.Entered Value field ---> Test in Root
but its not convert in anything and system does not allows me to implement the resource file.
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Localization doesn't work.. Help!

This tutorial might help you set up what you need to achieve this.

 

http://supportforums.blackberry.com/t5/Java-Development/Localizing/ta-p/442783

Regular Contributor
KingNaresh
Posts: 87
Registered: ‎04-30-2013
My Device: 9220

Re: Localization doesn't work.. Help!

Peter, 

 

Am following the same document but in xxx_es.rrc, xxxx.tr.rrc files values are also empty.

 

Files are:-

LocalDemo.rrh,

LocalDemo.rrc,

LocalDemo_es.rrc,

LocalDemo_tr.rrc

 

1. Entered the Key fields in root.

2. Entered the value fields in root.

3. Key & values fields are shows only in  LocalDemo.rrc.

4. Key fields are only shows(Value fields are empty) only in  LocalDemo_es.rrc and LocalDemo_tr.rrc.

 

Thanks

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Localization doesn't work.. Help!

what do you expect? it does not translate automatically, you have to enter the translated values there.
----------------------------------------------------------
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
Regular Contributor
KingNaresh
Posts: 87
Registered: ‎04-30-2013
My Device: 9220

Re: Localization doesn't work.. Help!

Oah.. ok.. thanks simon.. i thought, its translate automatically, sorry.

Thanks