• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ResourceBundle

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,all
Does anybody use ResourceBundle ? why should we use it?
In the statement:
ResourceBundle rb = ResourceBundle.getBundle("LocalStrings")
What does LocalStrings mean?
thanks in advance
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
it is actually we use for localization which means that the labels in the user interface to understand in its own language for example the web page which we developed in english may not understand by some people and they want in their own language for that reason the locaization is needed in order to achieve it we use resource bundle in java and LocalStrings is a name of the properties file where we store all the conversion mechanism replace Hello label as Hillo etc.
I hope now you will be clear with this stuff.
Regards,
venkat

Originally posted by sean zang:
Hi,all
Does anybody use ResourceBundle ? why should we use it?
In the statement:
ResourceBundle rb = ResourceBundle.getBundle("LocalStrings")
What does LocalStrings mean?
thanks in advance


 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ResourceBundle is class. Its also same as properties
suppose you want to add some values in Listbox in installation times. so you can put that values in text file with labels. Now thro' the code you can get the values. ResourceBundle will refer the text file.
Let me know if i'm unclear
with regards
prakash
(prak_m@yahoo.com)
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic