Page MenuHomePhabricator

"-" should not overwrite "titles" form [[MediaWiki:Sidebar]]
Closed, InvalidPublic

Description

Author: gangleri

Description:
Hallo!

This is a special case of
Bug 2030: anomalies in the "Navigation" menue while selecting a different
language interface in [[Special:Preferences]]
and its duplicate
Bug 4088: preserve navigation and toolbox links regardless of select user interface

The screen dump http://bugzilla.wikimedia.org/attachment.cgi?id=1109 ilustrates
the problem. If you want to reproduce the mentioned behaviour log in at
http://test.wikipedia.jp/ and select 'he' as user intrface.

What happened:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/wikipedia/phase3/languages/LanguageHe.php
shows that
"currentevents" => "-",
is the "MediaWiki default value" for 'he'.

To my understanding when changing the interface to another language *available
translations* for "titles" from the navigation and toolbox (defined in
[[MediaWiki:Sidebar]]) should be displayed.

What works until now: If no translation exists the untranslated "title" from the
"MediaWiki:Sidebar" is preserved.

What should be changed: A translation as "-" should be regarded as "invalid". To
my understanding it should not mather if it comes from the LanguageXx.php file
or from a "local" MediaWiki:Foo/xx as
http://test.wikipedia.jp/w/index.php?title=MediaWiki:Currentevents/he (which is
not the case at http://test.wikipedia.jp/ ).

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: enhancement

Details

Reference
bz4103

Event Timeline

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

You should never use "-" for the link _text_. Set it for the link _target_ to disable it.

The older code was not very consistent about this, but with multiple language selection it
has to be this way.

gangleri wrote:

posted a note at [[he:שיחת ויקיפדיה:מפעיל מערכת#MediaZilla:04103]]

gangleri wrote:

posted a note at [[lt:project_talk:Administratoriai#MediaZilla:04103]]

gangleri wrote:

posted a note at [[pl:project_talk:Administratorzy#MediaZilla:04103]]

gangleri wrote:

posted a note at [[sv:project_talk:Administratörer#MediaZilla:04103]]

gangleri wrote:

identified some more:

  1. [[wiktionary:sq:Main_Page]]
  2. [[wiktionary:sq:MediaWiki:Sidebar]], [[wiktionary:sq:Portal]],

[[wiktionary:sq:Portal-url]]
6a) [[wikipedia:pa:Main_Page]]

  • [[wikipedia:pa:MediaWiki:Sidebar]], [[wikipedia:pa:Currentevents]],

[[wikipedia:pa:Currentevents-url]]
6b) [[wikibooks:pa:Main_Page]]

  • [[wikibooks:pa:MediaWiki:Sidebar]], [[wikibooks:pa:Currentevents]],

[[wikibooks:pa:Currentevents-url]]
6c) [[wiktionary:pa:Main_Page]]

  • [[wiktionary:pa:MediaWiki:Sidebar]], [[wiktionary:pa:Currentevents]],

[[wiktionary:pa:Currentevents-url]]

*note* The change should be done both at the local wiki's and also using a
"unified patch". See [[meta:MediaWiki_localization#Create_a_patch]]

rotemliss wrote:

Resolved Invalid – it's not a bug. (By the way, "currentevents" is now fixed.)

gangleri wrote:

(In reply to comment #7)

Resolved Invalid – it's not a bug. (By the way, "currentevents" is now fixed.)

This is a configuration / validation issue. Thanks for the fix in
MessagesHe.php. However some other languages would generate "-" in navigation:
http://en.wikipedia.org/wiki/MediaWiki:Sidebar?uselang=pa