Many thanks for your help, that issue is what I was thinking about this night, so I will try it, and I hope it works hehe.
Many Thanks. 2008/12/16 J Ilari Moilanen <imoil...@cc.helsinki.fi>: >> Hi at all! >> >> We are having problem to make the program multi language, with the >> tables generated by displaytag. >> >> I want that display tag reads from a file the header of each table, >> and as far as I know I have to put in the displaytag.properties (which >> is in the root of the classpath): the following: >> >> #or I18nJstlAdapter or I18nStrutsAdapter >> locale.resolver=org.displaytag.localization.I18nSpringAdapter >> #or I18nJstlAdapter or I18nStrutsAdapter >> locale.provider=org.displaytag.localization.I18nSpringAdapter >> >> and for instance in the messages.properties (which is in the root of >> the classpath): >> >> draftEdit.invoice.number=Invoice Number >> >> and in the column tag of the JSP: >> <display:column property="invoiceNumber" >> titleKey="draftEdit.invoice.number" sortable="true"/> >> >> >> >> If I do that, I cant have a good result, because in the header of the >> column appears the invoiceNumber instead of "Invoice Number". >> >> Have I got to configure something more in the spring context?? Or what >> thing dont I have configured?? >> >> >> Any help is welcome. >> >> Thanks > > Hi > We were having similar problems and solved them. But alas we do not use > Spring directly so I don't know if this will help you at all. We are using > Struts 2 with Spring. We could not find resolver or provider for Struts 2 > so we modified the old I18nWebworkAdapter to use xwork2 classes instead of > xwork. So our displaytag properties file resolver and provider > properties look like this > > locale.resolver=xx.xxxx.I18nWebworkAdapter > locale.provider=xx.xxxx.I18nWebworkAdapter > > (where the xx.xxxx.I18nWebworkAdapter is our custom class) > > In struts properties file we define where to find properties > struts.custom.i18n.resources=insertprojectnamehere > > And in insertprojectnamehere.properties file we have for example this line > label.study=Study > > and finally on JSP page we can use it like this > <display:column sortable="true" titleKey="label.study" property="study.name" > /> > > > I don't know why the Spring i18n adapter is not working for you. But > maybe you could check for example by making a custom class if the adapter gets > called at all or something like that. You can just copy the original > org.displaytag.localization.I18nSpringAdapter (from displaytag source) to > your project and add some loggin to it. But this may be too hardcore... :) > > Regards, > Ilari > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user