Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5781

[i18n] generating locale from a string is incorrect

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: i18n 2.4.6
    • Fix Version/s: i18n 2.4.8
    • Component/s: Extensions
    • Labels:
      None

      Description

      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 ?

        Attachments

          Activity

            People

            • Assignee:
              kwin Konrad Windszus
              Reporter:
              anagarwa Ankit Agarwal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment