File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resource bundle

 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, when should we use resource bundle ? thank you !

[ EJFH Nothing to do with book, so edited subject. ]
[ October 16, 2004: Message edited by: Ernest Friedman-Hill ]
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alvin,
You can find the answer to your question mainly in the Java API doc... Resource Bundle is available since JDK1.1... The following is some part from the Java API doc that I extracted here for you to have a look... Hope it helps...

Resource bundles contain locale-specific objects. When your program needs a locale-specific resource, a String for example, your program can load it from the resource bundle that is appropriate for the current user's locale. In this way, you can write program code that is largely independent of the user's locale isolating most, if not all, of the locale-specific information in resource bundles.
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you, ko ko !!
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alvin chew:
hi, when should we use resource bundle ? thank you !

[ EJFH Nothing to do with book, so edited subject. ]

[ October 16, 2004: Message edited by: Ernest Friedman-Hill ]



Resource bundle is like Property but Resource bundle can use in any Localization/Internationalization (L10N/I18N) that property is not.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic