Use 'uselang' when fetching unread page notifications

This would make the wiki names localized to the current user
interface language, rather than the wiki language.

Bug: T139807
Change-Id: I2b787e1486819d6833e169ac6db519cd36a3c3eb
This commit is contained in:
Moriel Schottlender 2016-07-08 16:27:02 -07:00
parent 1c166d2e1d
commit 3f723ab7d1

View file

@ -67,7 +67,8 @@
mw.echo.api.APIHandler.prototype.fetchUnreadNotificationPages = function ( sources ) {
var params = {
action: 'query',
meta: 'unreadnotificationpages'
meta: 'unreadnotificationpages',
uselang: this.userLang
};
if ( !sources || sources === '*' ) {