Last modified: 2009-02-12 19:46:59 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 11991 - What links here navigation on hr wikipedia is broken
What links here navigation on hr wikipedia is broken
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: 10356 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2007-11-15 01:15 UTC by SpeedyGonsales
Modified: 2009-02-12 19:46 UTC (History)
1 user (show)

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


Description SpeedyGonsales 2007-11-15 01:15:14 UTC
When you click on

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.   
View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500)

Hr wiki not:

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) ;-)
Comment 1 SpeedyGonsales 2007-11-15 09:54:49 UTC
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:

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!
Comment 2 SpeedyGonsales 2007-11-15 09:57:29 UTC
Changed component which produces an error
Comment 3 Raimond Spekking 2007-11-15 10:00:53 UTC
'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?
Comment 4 Niklas Laxström 2007-11-15 10:18:24 UTC
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.
Comment 5 SpeedyGonsales 2007-11-15 23:38:19 UTC
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.
Comment 6 SpeedyGonsales 2007-11-18 20:38:32 UTC
Niklas fixed the bug in svn r27602. Good work!
Comment 7 Niklas Laxström 2007-11-30 19:58:51 UTC
*** Bug 10356 has been marked as a duplicate of this bug. ***

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