aspose file tools*
The moose likes Beginning Java and the fly likes ResourceBundle file name problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ResourceBundle file name problem" Watch "ResourceBundle file name problem" New topic
Author

ResourceBundle file name problem

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 245
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

the file name is: MyRessources_en_US

You mean MyResources_en_US.properties ?


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResourceBundle file name problem
 
Similar Threads
Internationalization Problem
Properties Vs ResourceBundle
How to access the request from an ActionServlet?
Help with I18N
How to read values from .properies file in Jasper report