Steps to reproduce:
- Set $wgPageLanguageUseDB = true in LocalSettings.php
- Set content language of the wiki $wgLanguageCode = "nl" in LocalSettings.php.
- Create a new article with the title Foobar.
- Change the page content language for this article from nl to fr via Special:PageLanguage/Foobar
- Load http://localhost/w/index.php?title=Foobar&uselang=de
Current result: The HTML contains:
<div id="mw-content-text" lang="nl" dir="ltr" class="mw-content-ltr">
Expected result: The HTML should contain:
<div id="mw-content-text" lang="fr" dir="ltr" class="mw-content-ltr">
The global JavaScript variable wgPageContentLanguage correct contains fr.