Page MenuHomePhabricator

Locally overridden messages do not take effect on no.wiki since 1.21wmf8
Closed, ResolvedPublic

Description

Several places in the user interface locally overridden system messages does not take effect. One such example is [[Mediawiki:Mainpage]] which is used in the sidebar. This should show as "Forside" and point to "Portal:Forside", but it is now "Hovedside" and it points to "Hovedside", which is then a redirect to [[Portal:Forside]].

The bug is also visible at [[Special:Allmessages]]
http://no.wikipedia.org/w/index.php?title=Spesial%3AAlle+systembeskjeder&prefix=Mainpage&filter=all&lang=nb&limit=50

Note that the content of the locally overridden message is correct but the correct content does not show up in the listing.


Version: wmf-deployment
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44550

Details

Reference
bz44537

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 1:25 AM
bzimport set Reference to bz44537.
bzimport added a subscriber: Unknown Object (MLST).

p.selitskas wrote:

(In reply to comment #0)

Several places in the user interface locally overridden system messages does
not take effect. One such example is [[Mediawiki:Mainpage]] which is used in
the sidebar. This should show as "Forside" and point to "Portal:Forside", but
it is now "Hovedside" and it points to "Hovedside", which is then a redirect
to
[[Portal:Forside]].

The bug is also visible at [[Special:Allmessages]]
http://no.wikipedia.org/w/index.
php?title=Spesial%3AAlle+systembeskjeder&prefix=Mainpage&filter=all&lang=nb&l
imit=50

Note that the content of the locally overridden message is correct but the
correct content does not show up in the listing.

"no" code should be used no more. The code you need is "nb". On no.wikipedia.org, you should just redefine MediaWiki:messagename.

You should move all /no (or /nb, you know better where you keep the right stuff) into the root message (that is, MediaWiki:Mainpage/no or MediaWiki:Mainpage/nb content should be moved to MediaWiki:Mainpage).

p.selitskas wrote:

One more point: wgLanguageCode for nowiki is set to 'no' in InitialiseSettings.php. $wgLanguageCode should not be one from $wgDummyLanguageCodes.

  1. $wgLanguageCode is set to 'no'
  2. Plain MediaWiki:Mainpage is treated as 'no' (why? seems like messaging system riding the wrong lane), but system language is 'nb', so it doesn't use the plain message
  3. MediaWiki chooses MediaWiki:Mainpage/nb instead

That is why one shouldn't mess with dummy code and set the right one explicitly.

See also Change I5212beab: Eliminate dummy Language instances from being created

p.selitskas wrote:

(In reply to comment #5)

There is still a bunch of messages that should be overridden locally that
isn't.
http://no.wikipedia.org/w/index.
php?title=Spesial%3AAlle+systembeskjeder&prefix=cite&filter=all&lang=nb&limit

50

All you can do now is call the c^WOps/shell-granted users to resolve Bug 44550. It is the best way to fix this issue. And yet again, I'm confused that such fix didn't take place years ago, like it did for be-x-old.wikipedia.org (e.i. occupying a sub-domain other than language code).

Added bug 44550 as a "see alsop" but it seems to be a duplicate to me.

p.selitskas wrote:

Marking as RESOLVED FIXED, but the changes will be seen as the caches are purged. (Unpurged versuib of [[no:Venus' atmosfære]] used [[no:MediaWiki:Cite references link many/nb]], after ?action=purge I've got [[no:MediaWiki:Cite references link many]], so it should be all OK now.)