Harold Putman created SLING-7112:
------------------------------------

             Summary: @i18n in HTL fails on private-use country codes
                 Key: SLING-7112
                 URL: https://issues.apache.org/jira/browse/SLING-7112
             Project: Sling
          Issue Type: Bug
          Components: i18n
         Environment: Mac OS, AEM
            Reporter: Harold Putman
            Priority: Minor


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)

Reply via email to