sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SLING-7112) ResourceBundle cannot be retrieved for private-use country codes
Date Thu, 14 Sep 2017 15:06:00 GMT

     [ https://issues.apache.org/jira/browse/SLING-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Konrad Windszus resolved SLING-7112.
------------------------------------
    Resolution: Fixed

Applied slightly modified patch from [~h.putman@ieee.org]. Thanks a lot for the contribution.

> ResourceBundle cannot be retrieved for private-use country codes
> ----------------------------------------------------------------
>
>                 Key: SLING-7112
>                 URL: https://issues.apache.org/jira/browse/SLING-7112
>             Project: Sling
>          Issue Type: Bug
>          Components: i18n
>    Affects Versions: i18n 2.5.8
>         Environment: Mac OS, AEM
>            Reporter: Harold Putman
>            Assignee: Konrad Windszus
>            Priority: Minor
>             Fix For: i18n 2.5.10
>
>
> 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 
> ```



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message