Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-4853

$ENV{LANGUAGE} shouldn't end up in xml:lang and lang attributes.

    XMLWordPrintable

    Details

      Description

      The server by default sets the xml:lang and lang attributes of the <html> element to the the value of $ENV

      {LANGUAGE}

      . The LANGUAGE environment variable contains a colon separated list of POSIX locales. The xml:lang and lang attributes contain a BCP47 language code (aka an IETF language tag).

      It isn't clear to me how different POSIX and BCP47 language codes are, but xml:lang and lang certainly do not allow a colon separated list. Considering that usually the user running the server is not the user interacting with the software, I think the musicbrainz server should ignore the LANGUAGE environment variable set by the user entirely.

        Attachments

          Activity

            People

            Assignee:
            ianmcorvidae Ian McEwen
            Reporter:
            warp Kuno Woudt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Bug fixes, 2012-08-06