You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "franck.perrin@voila.fr" <fr...@voila.fr> on 2002/08/26 15:42:53 UTC
i18n of internal messages
Hi,
I need to customise some internal messages (org.apache.struts.taglib.LocalStrings.properties,
org.apache.struts.util.LocalStrings.properties...).
I first apply the rules for i18n :
I created a ApplicationResources_fr_FR.properties
I put it in the WEB-INF/classes directory and put the following code in my web.wml file
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
It works fine for keys like "struts.welcome" but messages for keys like "lookup.bean" (member of
org.apache.struts.util.LocalStrings.properties) can't be overwritten.
I secondly tried to put a LocalStrings_fr_FR.properties in the WEB-INF/classes directory but it doesn't work either.
I've not managed to understand how the internal messages location was set.
Is there a better solution than replacing the original messages files in the my struts.jar file ?
------------------------------------------
Faites un voeu et puis Voila ! www.voila.fr
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>