OutputPage: Use PageViewLanguage instead of PageLanguage for mw.config
authorTpt <thomaspt@hotmail.fr>
Tue, 8 Oct 2013 14:57:42 +0000 (16:57 +0200)
committerKrinkle <krinklemail@gmail.com>
Wed, 30 Apr 2014 22:23:01 +0000 (22:23 +0000)
commitd7e0fd581cc2aa95518c389266704f0e433da461
treef23fbbdbe2e51a20da546429e4d1c5c948bc5c48
parent6970de209d1584f617d4ccbae5175422412e1de0
OutputPage: Use PageViewLanguage instead of PageLanguage for mw.config

This way wgPageContentLanguage will be the language of the displayed
page content and not the language of the page as stored in the database.

Affects other mw.config values as well:
* wgPageContentLanguage
* wgDefaultDateFormat
* wgMonthNames
* wgMonthNamesShort
* wgSeparatorTransformTable
* wgDigitTransformTable

It does not change anything for most of kind of pages, expect for pages
with special Content types like Wikibase entities that outputs the
content of the page in the user language but store the page in a
multilingual way. It fix the case that such entities have ever
wgPageContentLanguage=en even if the page is fully displayed, as example,
in French.

Change-Id: Ib2073071b5d46eaf9cbd1d09ac92a842a0ef4233
includes/OutputPage.php