Page MenuHomePhabricator

The language code 'de-DE' is ignored in the Accept-Language HTTP header in the MediaWiki-Installer
Open, Needs TriagePublic

Description

The MediaWiki-Installer supports the HTTP header Accept-Language. The HTTP header

Accept-Language: de-DE, de-AT;q=0.8, de-CH;q=0.6, de;q=0.4, nl;q=0.2

leads to the language code de-AT.

Expected language code is de-DE or de.

Steps to reproduce:

$ curl -L -H 'Accept-Language: de-DE, de-AT;q=0.8, de-CH;q=0.6, de;q=0.4, nl;q=0.2' 'http://localhost/mediawiki/mw-config/' 2> /dev/null | head -2
<!DOCTYPE html>
<html dir="ltr" lang="de-AT">

Event Timeline

Change 399341 had a related patch set uploaded (by Fomafix; owner: Fomafix):
[mediawiki/core@master] Introduce language codes 'de-de', 'en-us', 'ko-kr' and 'pt-pt'

https://gerrit.wikimedia.org/r/399341

Change 399341 had a related patch set uploaded (by Fomafix; owner: Fomafix):
[mediawiki/core@master] Introduce language codes 'de-de', 'en-us', 'ko-kr' and 'pt-pt'

https://gerrit.wikimedia.org/r/399341

Removing task assignee due to inactivity, as this open task has been assigned to the same person for more than two years (see the emails sent to the task assignee on Oct27 and Nov23). Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.
(See https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.)