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.2.1, 2.1.8.1, 2.1.8
         Environment: Windows/Linux, others not test
SUN JDK 1.6
            Reporter: Isaac Qu


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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to