Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21579

Invalid lang HTML Tag when "German (Germany)" locale is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.5.4, 15.10.1
    • 15.5.3, 15.9, 14.10.19
    • Localization
    • Unknown
    • N/A
    • N/A
    • 3.1.1 Language of Page

    Description

      Steps to reproduce:

      1. Login as Administrator
      2. Open the top-right side bar and click "Administer Wiki"
      3. Go to the "Content > Localization" section
      4. Change the "Default Language" field to "German (Germany)".
      5. Click save

       

      Expected result:

      The HTML 'lang' global attribute is set to 'de-DE' using a dash ('-') as a separator (see: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang#language_tag_syntax)

      Actual result:
      The HTML 'lang' global attribute is set to an invalid 'de_DE'. (See screenshot)

      Attachments

        Activity

          People

            Lucas C Charpentier Lucas
            douakli Dorian Ouakli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: