struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Kharchuk" <andriy.kharc...@gmail.com>
Subject Re: [Struts 2] Internationalization
Date Fri, 26 Oct 2007 18:23:17 GMT
Rename narrative_fr_FR.properties to narrative_fr.properties.



2007/10/19, ChristopherAngel <christopher10101@googlemail.com>:
>
>
> I've developed a web app using Struts2 - I need to make it display
> different
> languages based on the locale of the browser but I'm having a little
> difficulty getting it to work.
>
> Here is a cut down version of what I have:
>
> 2 properties files in the default package:
>
> narrative.properties:
> index.welcome=welcome
>
> narrative_fr_FR.properties
> index.welcome=bienvenue
>
> 1 jsp:
>
> <s:i18n name="narrative">
> <s:text name="index.welcome"/>
> </s:i18n>
>
> It only ever displays in English despite changing the browser settings.
>
> When I'm testing this I ask what the locale is in the action and it
> returns
> the correct locale but only ever displays the English version.
>
>
> --
> View this message in context:
> http://www.nabble.com/-Struts-2--Internationalization-tf4653435.html#a13295304
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message