You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/12/06 21:49:33 UTC

[jira] Updated: (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:all-tabpanel ]

Antonio Petrelli updated WW-2345:
---------------------------------

          Description: 
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

  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

          Environment: Italian Server / Spanish browser  (was: O.S. Windows XP Professional (ITA) / Windows Server 2003 (ENG) , JDK 1.5.0.12,  Tomcat 5.0.27)
    Affects Version/s: 2.1.0
              Summary: Default locale is not evaluated always using client default locale  (was: localization issue for "it" extension)

Modified the description so it is more clear.

> 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.