[ http://jira.codehaus.org/browse/DISPL-248?page=all ]
     
fabrizio giustina closed DISPL-248:
-----------------------------------

    Resolution: Cannot Reproduce

Setting a Spring i18n provider will not make displaytag looking for table 
specific properties in Spring-managed resource bundles.
Setting the Spring adapter will allow you to:
- make displaytag use the same locale used by Spring
- make displaytag use Spring resource bundles for column titles only

... at the moment anyway anything defined in displaytag.properties is loaded 
directly by displaytag (the resource provider at the moment is set in 
displaytag.properties... there is a chicken and egg problem here).
In future I will split the displaytag.properties in 2 separate files, a 
configuration and an internalization file, and enable loading of resources from 
the configured adapter. I will open a separate RFE for this


> I18nSpringAdapter doesn't work for me
> -------------------------------------
>
>          Key: DISPL-248
>          URL: http://jira.codehaus.org/browse/DISPL-248
>      Project: DisplayTag
>         Type: Bug
>   Components: I18N
>     Versions: 1.0

>
>
> I had a proper working web application when I decided to move the message 
> resources of displaytag to my spring message resource file.
> I added 
> locale.resolver = org.displaytag.localization.I18nSpringAdapter
> locale.provider = org.displaytag.localization.I18nSpringAdapter
> to the displaytag.properties file and moved all other i18n related stuff to 
> my (already working) spring message resource file.
> After that, the displaytag messages are shown in english instead of my 
> translation.
> In the tomcat log I found -
> org.displaytag.properties.TableProperties - LocaleResolver initialized to 
> org.displaytag.localization.I18nSpringAdapter
> Is it a bug, or is it my fault?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to