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

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

I'll try to explain in detail my issue:

The Host O.S. running Tomcat is Win XP Pro (ITA).
First of all, I renamed the file package_es.properties in package_it.properties 
("struts2-blank-2.0.11.war" example web app), so I have two properties files: 
package.properties (English language) and package_it.properties (Italian 
language).
Finally I deployed the web app modified.
I have two browser, IE 6 ("it" language) and IE 6 ("en-us" language).
Using both browser I get all jsp text tags in Italian language, while using IE 
6 ("en-us" language) I'd got them in English language.
Is it clear?
I have the same issue in my own web app.
So I think it's a Struts 2 framework bug!

Andrea
-----Messaggio originale-----
Da: Antonio Petrelli (JIRA) [mailto:[EMAIL PROTECTED]
Inviato: martedì 4 dicembre 2007 21.08
A: Gigliotti, Andrea
Oggetto: [jira] Commented: (WW-2345) localization issue for "it" extension


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

Antonio Petrelli commented on WW-2345:
--------------------------------------

I think that I misunderstood your problem.
By default, Struts 2 web application tries to use the native language, that is 
got by the HTTP request sent by the browser.
If you use an Italian browser, then it tries to load the Italian translation.
This is why it "works" for Spanish and French!


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


**********************************************************************
Le informazioni contenute in questa comunicazione sono riservate e
destinate esclusivamente alla/e persona/e o all'ente/i a cui sono
stati indirizzati. Se questa comunicazione Vi e' pervenuta per errore,
siete pregati di informare il mittente rispondendo a questa mail.

Questa nota conferma inoltre che questa mail e' stata verificata da un
opportuno programma contro la presenza di virus informatici.

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
appropriate software for the presence of computer viruses.
**********************************************************************


> localization issue for "it" extension
> -------------------------------------
>
>                 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
>         Environment: O.S. Windows XP Professional (ITA) / Windows Server 2003 
> (ENG) , JDK 1.5.0.12,  Tomcat 5.0.27
>            Reporter: Andrea Gigliotti
>
> 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.

Reply via email to