File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes ResourceBundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ResourceBundle" Watch "ResourceBundle" New topic
Author

ResourceBundle

ruba sampath
Greenhorn

Joined: Jun 17, 2011
Posts: 28
Hi,

I am using different language in my application. It's working for english and chinese. I am creating a new proerties file for zh_TW(for Traditional Chinese). I am getting error like

java.util.MissingResourceException: Can't find bundle for base name hrondemand, locale
java.util.MissingResourceException: Can't find bundle for base name hrondemand, locale
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:726)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)


Could you please help me to resolve this issue. Some of the properties are working but still i am getting this error.

Thanks
sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
You can quick start resource bundle with struts2-blank.war
sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
I am afraid why it is unable to find as you clearly mentioned property file name as "zh_TW"

please try the below example and figure it out.

http://docs.oracle.com/javase/tutorial/i18n/resbundle/control.html
ruba sampath
Greenhorn

Joined: Jun 17, 2011
Posts: 28
Hi

Thanks for your reply. The issue has been fixed if i use *_tw.properties. I dont know why its not working if i give it as a *_zh_TW.properties.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResourceBundle