You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Holmes (JIRA)" <ji...@apache.org> on 2008/12/16 14:41:37 UTC

[jira] Resolved: (WW-2918) Struts don't use the locale

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

James Holmes resolved WW-2918.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.2

Closing as the original reporter has tested with 2.1.2 and says the issue is fixed.

> 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.