You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Julien HENRY <he...@yahoo.fr> on 2008/10/26 22:51:34 UTC
How to make I18N working on index.jsp
Hi,
I'm following the tutorial here: http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html
And now I would like to make I18N working.
I added <constant name="struts.custom.i18n.resources" value="messages"></constant> in struts.xml and I have messages.properties and messages_en.properties in src/main/resources
Then I added some <s:text name="key"/> in index.jsp and list.jsp.
But only the one that are in list.jsp are translated when I switch local. Do you know what is the problem?
Thanks
Julien
P.S. : I was also bitten by http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/firefox-3-and-struts-2-theme-ajax-render-issues. Do you know if it will be solved in struts-2.1.x with dojo-plugin?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: How to make I18N working on index.jsp
Posted by Martin Gainty <mg...@hotmail.com>.
please display your jsp
thanks
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Sun, 26 Oct 2008 21:51:34 +0000
> From: henryju@yahoo.fr
> Subject: How to make I18N working on index.jsp
> To: user@struts.apache.org
>
>
> Hi,
>
> I'm following the tutorial here: http://struts.apache.org/2.0.12/docs/struts-2-spring-2-jpa-ajax.html
>
> And now I would like to make I18N working.
>
> I added <constant name="struts.custom.i18n.resources" value="messages"></constant> in struts.xml and I have messages.properties and messages_en.properties in src/main/resources
>
> Then I added some <s:text name="key"/> in index.jsp and list.jsp.
>
> But only the one that are in list.jsp are translated when I switch local. Do you know what is the problem?
>
> Thanks
>
> Julien
>
> P.S. : I was also bitten by http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/firefox-3-and-struts-2-theme-ajax-render-issues. Do you know if it will be solved in struts-2.1.x with dojo-plugin?
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Stay organized with simple drag and drop from Windows Live Hotmail.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008