You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Andrea Gigliotti (JIRA)" <ji...@apache.org> on 2007/12/07 09:57:35 UTC

[jira] Commented: (WW-2345) Default locale is not evaluated always using client default locale

    [ https://issues.apache.org/struts/browse/WW-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42793 ] 

Andrea Gigliotti commented on WW-2345:
--------------------------------------

I'd like to inform you if you deploy the webapp on english server O.S.  you'll get all pages in english even if the client is italian.

> Default locale is not evaluated always using client default locale
> ------------------------------------------------------------------
>
>                 Key: WW-2345
>                 URL: https://issues.apache.org/struts/browse/WW-2345
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.0.9, 2.0.11, 2.1.0
>         Environment: Italian Server / Spanish browser
>            Reporter: Andrea Gigliotti
>         Attachments: blank.tar.gz
>
>
> Using the blank webapp, adding the "package_it.properties" file, there is a strange behaviour if you have the default locale of the server different from "en" (in this case "it_IT") and the client different from "en" (in this case "es_ES").
> Calling the homepage of the blank webapp, the default locale is evaluated using the client default locale ("es_ES"), but clicking on "English" (thus selecting the "en" locale, that is not defined), it should use the default "client" locale, while it uses the "server" default locale.
> Notice that clearing the cookies and then calling the homepage again, it works correctly.
> -----------------
> The original description of the issue was:
> I tried using the example application (struts2-blank-2.0.11.war) and it working fine using package_es.properties and package.properties, that is I getting the messages in the right language. 
> I got the same result using package_fr.properties rather than package_es.properties, they working fine!
> But if I rename the package_es.properties in package_it.properties, it did't work, that is the messages are always displayed in the O.S. language. 
> Anyone can help me?
> It seems to be a bug related with the "it" extension !!! 
> Thank's for your time! 
> Andrea

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.