Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • I18n
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            toli Toli Kuznets
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: