On 15/08/2013 17:08, Haszlakiewicz, Eric wrote:
> I've been having some problems getting Tomcat to show the right language for 
> web pages.  I've narrowed it down to what appears to be a problem with how 
> the accept-language header is handled.  Specifically, lower preference 
> languages override higher preference ones.
> 
> Here is the setup that I used:
> Server:
>   Completely fresh installation of Tomcat 7.0.42 with a user added to 
> tomcat-users.xml, running on Linux (RHEL5).
>   The "locale" command returns blank for LANG and LC_ALL, "POSIX" for all 
> other LC_* settings.  Neither LANG nor any other LC_* environment variable is 
> set.
> Browser:
>   Firefox 22.0, running on Windows 7, system locale set to "English (United 
> States)", as is the "format" in the Region and Language control panel.
>   Preferred languages in Firefox have been adjusted to include Spanish at a 
> *low* priority:
>     Tools->Options->Content->Languages, Added "Spanish [es]", then moved it 
> down to the *end* of the list.
> 
> Behavior seen:
>   When I go to http://myserver:8080/manager/html, the page displays with 
> Spanish labels instead of English.
>   I checked which Accept-Language header is being sent to the server, and it 
> sends "en-us,en;q=0.7,es;q=0.3" so English _should_ be preferred.
> 
> I tried re-ordering the order of the languages, but it didn't make any 
> difference, the Spanish messages were always displayed.
> 
> Is this a known bug?  Should I report it in bugzilla?

It is a bug but not a known one. I'm looking at a fix now but please
report it in Bugzilla.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to