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

ResourceBundle cannot be retrieved for private-use country codes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • i18n 2.5.8
    • i18n 2.5.10
    • i18n
    • None
    • Mac OS, AEM

    Description

      In HTL the @‚Äči18n tag fails when jcr:language not in ISO list.
      es_PY falls back to es, but es_XL falls back to default en.

      I think this is related to the check for valid countries in JcrResourceBundleProvider::toLocale().
      If you feel you must check for valid country code, please also allow case where country code starts with X which is allowed by the [IANA spec](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).

      ```
      %%
      Type: region
      Subtag: XA..XZ
      Description: Private use
      Added: 2005-10-16
      ```

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              h.putman@ieee.org Harold Putman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: