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

Toli Kuznets updated SANDBOX-252:
---------------------------------

    Attachment: message_formatter_locale_improvements.patch

Patch

> [i18n] Patch to improve MessageManager to supply the locale to MessageFormat 
> so that formatters for parameters have the locale initialized to the correct 
> value
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SANDBOX-252
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-252
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: I18n
>         Environment: Patch created off rev 678580
>            Reporter: Toli Kuznets
>         Attachments: message_formatter_locale_improvements.patch
>
>
> - Update MessageManager to supply the locale to MessageFormat so that 
> formatters for parameters have the locale initialized to the correct value
> - Added a unit test that verifies that the formatters for parameters do 
> correctly localize the output. The unit test fails if the changes to 
> MessageManager are undone
> - Modified XMLMessageProvider.getText() to return null instead of throwing an 
> exception when the message is not found to avoid skipping checking the next 
> service provider. XMLMessageProvider.getEntries() modified accordingly to 
> handle null and to throw a MessageNotFoundException in that case
> Unit tests included. 

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