Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8229

Non JVM-default Locales are not used in I18n

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 6.2.17
    • 6.2.13
    • freemarker
    • None

      Steps to reproduce

      1. Create a site definition that supports English (en) as default and Welsh (cy) as a secondary language.
      2. Use the message bundles to translate a label within a Freemarker template.
      3. eg. You will have message bundles my-module-messages_en.properties and my-module-messages_cy.properties and will use the template as documented.

      Expected results

      When switching between requested languages, the translated label will change from English to Welsh.

      Actual results

      The Welsh translation appears everywhere, never the English.

      Workaround

      TBC

      Development notes

      The DefaultMessageBundlesLoader is, via the LocaleUtils, using the default locales available from the JVM.

        Acceptance criteria

              jbenito Javier Benito
              chris.jennings Chris Jennings
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 0.5d
                    0.5d