Page MenuHomePhabricator

Special:Search uses wrong data in PLURAL with MediaWiki:Showingresultstotal
Closed, ResolvedPublic

Description

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 ...


Version: 1.13.x
Severity: minor
URL: http://translatewiki.net/wiki/Support#showingresultstotal

Details

Reference
bz15240