You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Toli Kuznets (JIRA)" <ji...@apache.org> on 2008/07/31 20:40:31 UTC

[jira] Created: (SANDBOX-252) [i18n] Patch to improve MessageManager to supply the locale to MessageFormat so that formatters for parameters have the locale initialized to the correct value

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


[jira] Updated: (SANDBOX-252) [i18n] Patch to improve MessageManager to supply the locale to MessageFormat so that formatters for parameters have the locale initialized to the correct value

Posted by "Toli Kuznets (JIRA)" <ji...@apache.org>.
     [ 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.