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
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.12.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://hr.wikipedia.org/wiki/Posebno:...
:
: 10356 (view as bug list)
Depends on:
Blocks:
  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: ---


Attachments

Description SpeedyGonsales 2007-11-15 01:15:14 UTC
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) ;-)
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: 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!
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.


Navigation
Links