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

Internationalization of display tag

 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello every one I am using Structs 1 frame work and i use display tag now i need to internationalize all the column headers to thai language.

can any one help me to explain me how to use step by step.

My JSP




Thank You!
 
Krish Khan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey every one i have found the solution :

I found the solution...

First create a display.properties file in WEB-INF/classes folder and then paste this line into that file
locale.provider=org.displaytag.localization.I18nStrutsAdapter

Then declare that cloumn name as tittleKey
eg:


then declare in the translation in resource file as usual.

Its working... for struts 1

Have a try gud luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic