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
jllarraz
Posts: 69
Registered: ‎08-13-2008
My Device: Not Specified

How to search in all .rrc of one ResourceBundle

Hi

I have several .rrc files in my project and they are working fine to traslate the text but i need to search one key in all .rrc files to see if one the text is in any of the languages that i have, How can i do that? its possible?

 

Example i want to see if the text "Favourites" exist in one of all rrc and i have the next key values in the different .rrc

 

Country_en.rrc

 

Favourites             Favourites

 

 

Country_es.rrc

 

Favourites             Favoritos

 

 

Country_fr.rrc

 

Favourites             Favoris

 

thanks

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to search in all .rrc of one ResourceBundle

Yes, this is possible.  To do so click on the Edit menu and select Find in Files.  Change the file type to *.rrc and search for your key.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
jllarraz
Posts: 69
Registered: ‎08-13-2008
My Device: Not Specified

Re: How to search in all .rrc of one ResourceBundle

I think that i have no explain very well, my intention is to do that in source code in a loop.

thanks

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to search in all .rrc of one ResourceBundle

There is no direct way to do this.  You could use Local.setDefault method to change the local (language) and request the value for your key. 

 

Please note that you can only change to a local that is present on the BlackBerry.  So, for example, if the user doesn't have French language support installed, you can't switch to a French locale.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker