Page MenuHomePhabricator

default uselang problems
Closed, ResolvedPublic

Description

Author: tomasz.sienicki

Description:
If a user sets Polish as the default language then user-defined messages in the MediaWiki: namespace fail to return the /pl value, even though it works for other languages than Polish.

Please have a look at the page http://pl.wiktionary.org/wiki/Portal:Jidysz
(source: "{{Portal:Jidysz/<Jidysz/uselang>/mainpage}}")

As a result of this bug

http://pl.wiktionary.org/wiki/Portal:Jidysz?uselang=pl  does not work
http://pl.wiktionary.org/wiki/Portal:Jidysz?uselang=en  works
http://pl.wiktionary.org/wiki/Portal:Jidysz?uselang=yi  works

The bug was introduced in 1.13alpha (r35980, June 7th 2008).

See also the demonstration of the bug at http://pl.wiktionary.org/wiki/Wikipedysta:Joystick/brudnopis/problemy


Version: 1.13.x
Severity: enhancement

Details

Reference
bz14802

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:13 PM
bzimport set Reference to bz14802.
bzimport added a subscriber: Unknown Object (MLST).

joystick.pl wrote:

update:
Please have a look at the page http://pl.wiktionary.org/wiki/Portal:Jidysz
(source: "{{Portal:Jidysz/{{int:Jidysz/uselang}}/mainpage}}"

This'll just use MediaWiki:X rather than MediaWiki:X/pl since it's the site language.

joystick.pl wrote:

Brion: it does not work

Ok, fundamental issue:

All internal rendering of the page should use the same language consistently based on current design; that is, {{int:foo}} in page body text will always use the content language. At least, that's how it's supposed to work. ;) Per bug 14404, currently {{int:}} (which is designed for UI messages only) apparently also still "works" in page body text... at least sometimes...

This can corrupt page link tables etc which is Not Good, and it might get removed totally at some point.

In the meantime, though, it's perhaps nice if it works consistently. ;)

In my local testing, it's all working fine on English, and no change if I set to Polish. Hmm.

Cannot reproduce anymore with the given example page.