struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-3521) I18n issure. If you configed default locale in struts.xml, when you request by other locale, the default locale returned.
Date Mon, 25 Mar 2013 20:43:18 GMT

     [ https://issues.apache.org/jira/browse/WW-3521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-3521:
------------------------------

    Fix Version/s:     (was: 3.0)
                   2.3.x
    
> I18n issure. If you configed default locale in struts.xml, when you request by other
locale, the default locale returned.
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3521
>                 URL: https://issues.apache.org/jira/browse/WW-3521
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.8, 2.1.8.1, 2.2.1
>         Environment: Windows/Linux, others not test
> SUN JDK 1.6
>            Reporter: Isaac Qu
>             Fix For: 2.3.x
>
>
> If you configed default locale in struts.xml, when you request by other locale, the default
locale returned.
> I found the following issues in Dispatcher.java:
> Line 571 and 654: 
>         locale = LocalizedTextUtil.localeFromString(defaultLocale, request.getLocale());

> According LocalizedTextUtil.localeFromString method signature,
>  the first parameter is request localeStr, the second parameter is defaultLocale
> should be:
>          locale = LocalizedTextUtil.localeFromString( request.getLocale(), defaultLocale);


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message