[
https://issues.apache.org/jira/browse/SLING-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057563#comment-13057563
]
Justin Edelson commented on SLING-2111:
---------------------------------------
in r1141340, generating an RFC 4646 representation of the Locale. If this is
not equal to the normal String representation of the Locale, an or is used in
the query, ie. (@jcr:language = 'en_US' or @jcr:language = 'en-US')
This is necessary for backwards compatibility on the off chance someone was
depending on the old behavior.
> JcrResourceBundle is not compatible with RFC 3066
> -------------------------------------------------
>
> Key: SLING-2111
> URL: https://issues.apache.org/jira/browse/SLING-2111
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: I18n 2.0.4
> Reporter: Christanto
> Assignee: Justin Edelson
> Priority: Minor
> Fix For: I18n 2.1.2
>
>
> When loading messages from JCR repo, JcrResourceBundle use
> java.util.Locale.toString() to find the coresponding jcr:language JCR
> property.
> jcr:language uses RFC 3066 (e.g. en-US) while Java Locale use en_US.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira