You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2017/09/14 15:06:00 UTC
[jira] [Resolved] (SLING-7112) ResourceBundle cannot be retrieved
for private-use country codes
[ 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)