You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Isaac Qu (JIRA)" <ji...@apache.org> on 2010/10/20 06:25:26 UTC
[jira] Created: (WW-3521) I18n issure. If you configed default
locale in struts.xml, when you request by other locale, the default locale
returned.
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.