Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourceBundle

 
ruba sampath
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can quick start resource bundle with struts2-blank.war
 
sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic