Author: D.U.Thibault
Description:
Trying to use PLURAL: with messages such as
http://fr.wiktionary.org/wiki/Discussion_MediaWiki:Nextn, I've come to the
conclusion the implementation is defective (or my understanding is deeply
flawed). It seems the parameters passed to PLURAL: within the context of
mediawiki messages fail to pass the numeric test, regardless of their value
(e.g. {{PLURAL:$1||s}} returns '' instead of 's' for $1 = 2 or better).
Currently, the function reads:
function convertPlural($count, $w1, $w2, $w3, $w4, $w5) {
return $count <= '1' ? $w1 : $w2;
}
I suspect it should be instead:
function convertPlural($count, $w1, $w2, $w3, $w4, $w5) {
return $count <= 1 ? $w1 : $w2;
}
Version: unspecified
Severity: normal
URL: http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/languages/classes/LanguageFr.php