You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ankit Agarwal (JIRA)" <ji...@apache.org> on 2016/06/13 11:25:20 UTC

[jira] [Created] (SLING-5781) [i18n] generating locale from a string

Ankit Agarwal created SLING-5781:
------------------------------------

             Summary: [i18n] generating locale from a string
                 Key: SLING-5781
                 URL: https://issues.apache.org/jira/browse/SLING-5781
             Project: Sling
          Issue Type: Bug
          Components: Extensions
    Affects Versions: i18n 2.4.6
            Reporter: Ankit Agarwal


As per sling document here 
https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html

parts of locale string are separated by hyphen ("-") like de-DE-MAC but in JCRResourceBundleProvider while extracting locale from a String we are separating parts with underscore ("_") as done here https://github.com/apache/sling/blob/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java#L586


Should this be change to separate string on "-" basis ?





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)