File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Displaytag header localization problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Displaytag header localization problem" Watch "Displaytag header localization problem" New topic
Author

Displaytag header localization problem

Narendar Bureddy
Greenhorn

Joined: Apr 25, 2012
Posts: 2
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

Joined: Mar 10, 2008
Posts: 1836
    
    7

Have a look at the display tag library website.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Narendar Bureddy
Greenhorn

Joined: Apr 25, 2012
Posts: 2
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

Joined: Mar 10, 2008
Posts: 1836
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaytag header localization problem