Last modified: 2010-05-15 16:03:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15240 - Special:Search uses wrong data in PLURAL with MediaWiki:Showingresultstotal
Special:Search uses wrong data in PLURAL with MediaWiki:Showingresultstotal
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.13.x
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Purodha Blissenbach
http://translatewiki.net/wiki/Support...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-19 02:17 UTC by Purodha Blissenbach
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

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


Attachments

Description Purodha Blissenbach 2008-08-19 02:17:56 UTC
In MediaWiki:Showingresultstotal we currently have: 

  Showing below {{PLURAL:$3|result '''$1''' of '''$3'''|results '''$1 - $2''' of '''$3'''}}".

I believe that is likely erroneous. Why does PLURAL refer to
$3 here? This does not make any sense to me. If there are $3
search results total, instead of PLURAL:$3, we would have to
ask #IF: $1 == $3 or #IF: $1 == $2 so as to make the
distinction between one result line versus more result lines.
The current code is correct if, and only if, there is exactly
one search result, but wrong when paging occurrs.

Best, as Siebrand pointed out, we introduce a $4 to be set to
the value of $2-$1+1, and use PLURAL:$4 ...
Comment 1 Purodha Blissenbach 2008-08-19 02:26:16 UTC
Fixed with r39629

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


Navigation
Links