Not long ago, someone also got similar problem: http://markmail.org/message/mozukqgrnhfbq7od?q=s2+and+default+locale/language+list:org.apache.struts.users/
________________________________ From: Julien HENRY <henr...@yahoo.fr> To: Struts Users Mailing List <user@struts.apache.org> Sent: Friday, August 14, 2009 4:52:28 PM Subject: Re : Struts2 + I18N Hi, AFAIK this is the same as adding <constant name="struts.locale" value="en" /> in struts.xml. BTW I tried your suggestion without much improvement. I even tried to rename default.properties in default_en.properties => still no english. ________________________________ De : BALAJI CRB <balaji_...@spanservices.com> À : Struts Users Mailing List <user@struts.apache.org> Envoyé le : Vendredi, 14 Août 2009, 17h47mn 37s Objet : RE: Struts2 + I18N Hi, Use struts.locale=en in your struts.properties file. Hope this works. Regards, Balaji C R B -----Original Message----- From: Julien HENRY [mailto:henr...@yahoo.fr] Sent: Friday, August 14, 2009 9:11 PM To: user@struts.apache.org Subject: Struts2 + I18N Hi, In my Struts2 application I have the following language files: default_de.properties default_fr.properties default.properties (contains EN) When I start my application, the application is in French (probably because JVM default locale is french). Then I tried to change language by appending ?request_locale=XX in the URL. Adding ?request_locale=de works fine. All texts are in German. Adding ?request_locale=en doesn't work. All texts are in French. I tried to add <constant name="struts.locale" value="en" /> to struts.xml but no luck. How can I tell Struts that the default.properties file is English? Thanks, Julien DISCLAIMER: This email message and all attachments are confidential and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or to mailad...@spanservices.com and destroy the original message. Opinions, conclusions, and other information in this message that do not relate to the official business of SPAN, shall be understood to be neither given nor endorsed by SPAN.