I had a problem like this and solved it by restarting the server and 
browser.  Struts only checks your browser locale when you first hit the page 
and then stores it in your session.  To speed debugging you could manually 
set the locale code under the Action.LOCALE_KEY (i think) session attribute.

Dave


>From: Ryan Cuprak <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Mailing <[EMAIL PROTECTED]>
>Subject: Internationalization
>Date: Fri, 27 Sep 2002 10:02:02 -0400
>
>
>Hello,
>  To test internationalization on my struts application I tossed a 
>properties file "webapp_de.properties" into the same directory as my 
>"webapp.properties". I know that struts is finding "webapp.properties" 
>(English/US) as bean:message correctly retrieves the proper labels. If I 
>change the preferred language on MacOS 10.2 to German and relaunch the 
>browser (Internet Explorer- German set as primary in preferences as well) 
>and visit my struts application, the webapp.properties and not 
>webapp_de.properties is used. For debugging I put some code into the jsp 
>page that would retrieve the country/language from the request. The country 
>comes back an empty string with the language being "deu". Anyone have any 
>advice as to why my German properties file isn't being found/used? Do I 
>need to add anything to web.xml to reference the German file? Note, when 
>the 10.2 is in German mode, Google does return a German web page. In my jsp 
>page I am following the directions from the struts user guide so the 
>encoding should be set correctly.
>
>  Thanks,
>  Ryan Cuprak
>
>BTW: I don't speak German, I am using that sherlock translator in 10.2 - a 
>neat example of a useful webservices!
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to