You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "lefebvre (JIRA)" <ji...@apache.org> on 2008/12/16 08:01:37 UTC
[jira] Issue Comment Edited: (WW-2918) Struts don't use the locale
[ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45264#action_45264 ]
jflefebvre edited comment on WW-2918 at 12/15/08 11:01 PM:
---------------------------------------------------------
The same example with Struts 2.1.2 works fine (XWork xwork-2.1.1.jar)
The same example with Struts 2.0.14 + xwork-2.0.6.jar (not xwork-2.0.7.jar) work fine
was (Author: jflefebvre):
Struts 2.1.2 works fine
> Struts don't use the locale
> ---------------------------
>
> Key: WW-2918
> URL: https://issues.apache.org/struts/browse/WW-2918
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.14
> Environment: Windows, fr
> Reporter: lefebvre
> Priority: Critical
> Attachments: testLocale.war, testLocaleStruts2.1.2OK.war
>
>
> Struts don't use the locale.
> The XWorkBasicConverter getLocale method always use the System locale :
> Locale locale = (Locale) context.get(ActionContext.LOCALE);
> if (locale == null) {
> locale = Locale.getDefault(); ----> No ActionContext.LOCALE key into context
> }
> I try by setting default locale and using the i18n interceptor, the result is the same.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.