Commons Sandbox
  1. Commons Sandbox
  2. 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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: I18n
    • Labels:
      None
    • Environment:

      Patch created off rev 678580

      Description

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

        Activity

        Hide
        Toli Kuznets added a comment -

        Patch

        Show
        Toli Kuznets added a comment - Patch

          People

          • Assignee:
            Unassigned
            Reporter:
            Toli Kuznets
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development