Not sure why your browser is sending "deu" in Accept-Language, but you can try this:
Change the properties file name to webapp_de.properties Here's some further information: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10 James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Ryan Cuprak [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 10:25 AM > To: Struts Users Mailing List > Subject: Re: Internationalization > > > > I haven't tried the Action.LOCALE_KEY yet, but restarting the server > and browser as well as dumping the cookies hasn't fixed it. > > Thanks, > -Ryans > > On Friday, September 27, 2002, at 10:12 AM, David Graham wrote: > > > 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]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

