Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaytag header localization problem

 
Narendar Bureddy
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using displaytag-1.2.jar in my (springs and hibernate) application.

I need to localize display table header into marathi header.

Please suggest me where exactly i have to place the user-defined displaytag.properties file?

Thanks in advance.

Regards,
Narendar
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the display tag library website.
 
Narendar Bureddy
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for quick response.

I have gone through the URL suggested by you.

I am using dispalytag_mr_IN.properties file and placed in classes folder.

but it is not picking the value from dispalytag_mr_IN.properties file. Instead it is showing ???display.name??? as header in display table.

Note: "display.name" is key in dispalytag_mr_IN.properties file.

I am not sure where i committed mistake.

Please suggest me how to resolve this issue.

Thanks,
Narendar
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't find an entry for mr_IN on the list of locales supported by Java 7, and I'm betting that ResourceBundle comes in to play at one point or another to match a locale to a .properties file, so that might be a problem.
If you look at the displaytag library page on i18n there are sections about locale resolution and resource lookup. I think that might be your best, or possibly only, option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic