Page MenuHomePhabricator

What links here navigation on hr wikipedia is broken
Closed, ResolvedPublic

Description

When you click on http://de.wikipedia.org/wiki/Spezial:Linkliste/Hauptseite

you get:

View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)

which is ok (you can get previous and next 50 links). En wiki shows the same behaviour.
http://en.wikipedia.org/wiki/Special:Whatlinkshere/Main_Page
View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)

Hr wiki not:

http://hr.wikipedia.org/wiki/Posebno:Whatlinkshere/Glavna_stranica

View () (Posebno:Whatlinkshere/Glavna stranica) (20 | 50 | 100 | 250 | 500)

Bug exist both on Betawiki (1.12alpha (r27506)) and hr wikipedia with rather old mediawiki 1.12alpha (r26409) ;-)


Version: 1.12.x
Severity: normal
URL: http://hr.wikipedia.org/wiki/Posebno:Whatlinkshere/Glavna_stranica

Details

Reference
bz11991

Event Timeline

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

It was late when I submited bug, now some more details:

On en and de wiki bug not exist whatever language I set in my preferences.

On hr wiki bug exists whatever language I set in my preferences.

On betawiki bug exist only if I set as language hr.

So bug is somehow related only to hr localization.

URL used underneath looks correct: http://hr.wikipedia.org/w/index.php?title=Posebno:Whatlinkshere/Glavna_stranica&limit=50&from=55341&back=0

but localization string written between A tags is bad:

<a href="/w/index.php?title=Posebno:Whatlinkshere/Glavna_stranica&amp;limit=50&amp;from=55341&amp;back=0" title="Posebno:Whatlinkshere/Glavna stranica">Posebno:Whatlinkshere/Glavna stranica</a>

Both title parameter in A tag, and text between opening and closing A tag is incorrect. I can take a look in mediawiki localization code, but somebody with more experience could find a bug maybe from first try. Thanks!

Changed component which produces an error

'whatlinkshere-prev' and 'whatlinkshere-next' are untranslated for hr. Both messages use {{PLURAL}} function but the default return from languagesHr.php is wordform3:

				default: return $wordform3;

But wordform3 isn't used in the English original.

Presumably a bug in languagesHr.php?

Bug in parser, it should fill rest of the parameters with the last defined item, it did that before. Anyway I think that best solution is to convert convertPlural to take variable number of arguments and have the languages themselves specify what to do with missing forms.

Raimond partially guessed, and Niklas got it 100% correct.

Hr plural has three forms (declination), and when I added third form, now link on hr is ok.
Thanks Raimond.

But parser should use last parameter for all other which are missing (if they are same, they
are redundant).

It's not burning, but should be corrected.

Niklas fixed the bug in svn r27602. Good work!

  • Bug 10356 has been marked as a duplicate of this bug. ***