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

AbstractI18nContentSupport.getProperty not returning right default value based on default locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.3.4
    • None
    • None
    • None

    Description

      Considering a setup where default and fallback locale are configured differently (e.g. default (unsuffixed) locale is German, fallback locale is English):

      When current locale is German, AbstractI18nContentSupport#getProperty() first tries to resolve "property_de" (note the suffix)
      — because that doesn't exist, it keeps looking up for the next locale, down to the fallback one, that is English.

      Whenever current locale is the default locale, it should also try to lookup the property un-suffixed.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mgeljic Mikaël Geljić
                efochr Evzen Fochr
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD