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/19 14:24:37 UTC
[jira] Commented: (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=45329#action_45329 ]
lefebvre commented on WW-2918:
------------------------------
Hi James, I can't install a beta version on production server, is it possible to fix this bug into the next release 2.0.15 ?
Thanks
> 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
> Fix For: 2.1.2
>
> 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.