Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle file name problem

 
mark smith
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i try to be able to use many language for a application

i will read language and country from a properties.... for the example i hardcoded ...



the file name is: MyRessources_en_US


i get the error:
ception in thread "AWT-EventQueue-0" java.util.MissingResourceException: Can't find bundle for base name MyResources, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)

any idea?

thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the file name is: MyRessources_en_US

You mean MyResources_en_US.properties ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic