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

Paul Benedict updated STR-1485:
-------------------------------

    Fix Version/s:     (was: Future)
                   1.4.0

> Locale missing when constructing a MessageFormat in MessageResources
> --------------------------------------------------------------------
>
>                 Key: STR-1485
>                 URL: https://issues.apache.org/struts/browse/STR-1485
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1 RC1
>         Environment: Operating System: All
> Platform: All
>            Reporter: Mike Baroukh
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> in method
> org.apache.struts.util.MessageResources.getMessage(Locale locale, String key,
> Object args[]) 
> a MessageFormat is constructed : 
> ...
> format = new MessageFormat(escape(formatString));
> ...
> this line should be replaces with
> format = new MessageFormat(escape(formatString), locale);
> else it use the machine default locale instead of the locale asked for the 
> message.
> So, if a key contain something like
> mykey.format=the date is {0,date,EEEEEEE dd MMMM yyyy}
> the mesage will be internationalized but not the format of the date inside ...

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