Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2536

JcrResourceBundle breaks the contract of getLocale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • i18n 2.2.2
    • None
    • Extensions, i18n
    • None

    Description

      The javadoc for getLocale state that it should return the locale of this bundle or the locale of the fallback. Currently JcrResourceBundle always returns the requested locale even if there is no mix:language for that locale.

      e.g. Only a mix:language with a jcr:language en is in the jcr, a request for a resource bundle of sv will return a ResourceBundle object where getLocale returns sv. This should return en according to the javadoc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            endolf Endolf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: