Last modified: 2008-07-06 20:45:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14677 - MediaWiki:Sidebar does not use i18n for entire menu or links if exists
MediaWiki:Sidebar does not use i18n for entire menu or links if exists
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal major with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: accessibility
Depends on:
  Show dependency treegraph
Reported: 2008-06-28 17:00 UTC by Danny B.
Modified: 2008-07-06 20:45 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Danny B. 2008-06-28 17:00:03 UTC
Situation (simplified):

* header
** somepage-url|somepage
** sandbox-url|sandbox

Page (message)  | Content
header          | Navigation
header/cs       | Navigace
somepage-url    | Some Page
somepage-url/cs | Nějaká stránka
somepage        | Go to Some Page
somepage/cs     | Přejdi na nějakou stránku
sandbox-url     | Project:Sandbox
sandbox-url/cs  | Project:Pískoviště
sandbox         | Sandbox
sandbox/cs      | Pískoviště

Being on site with site language = en, it renders:
* Some Page|Go to Some Page
* Project:Sandbox|Sandbox

Having either uselang=cs or en in preferences set, it renders (*):
* Some Page|Přejdi na nějakou stránku
* Project:Sandbox|Pískoviště

instead of correct:
* Nějaká stránka|Přejdi na nějakou stránku
* Project:Pískoviště|Pískoviště

Tried also to set up
* header
** somepage-url|somepage
** sandbox-url|sandbox

and also:
* header/cs
** somepage-url/cs|somepage/cs
** sandbox-url/cs|sandbox/cs

and other combinations of items with and without /cs suffix, none was working, the best rendering was the (*) marked above.

Neither putting direct urls instead of message call to MediaWiki:Sidebar/cs did work.

Besides MediaWiki:Sidebar/cs is completely ignored - thus it's impossible to make different menus for different languages (typical purpose would be abc ordering of items, but there are many other, especially on multilingual sites).

So obviously links are rendered only using site language message and i18ned sidebars are ignored, which is both bad and should be enabled to display their i18n form and then fallback to site language if appropriate message doesn't exist.
Comment 1 Robin Pepermans (SPQRobin) 2008-06-29 16:15:33 UTC
This is because sidebar uses wfMsgForContent. It can be changed by [[mw:Manual:$wgForceUIMsgAsContentMsg]].
Comment 2 Brion Vibber 2008-07-06 20:45:37 UTC
This is by design. UI language affects UI, not content.

Note You need to log in before you can comment on or make changes to this bug.