From: Leon Weber Date: Tue, 9 Jan 2007 20:10:44 +0000 (+0000) Subject: * Made the PLURAL: parser function return singular on -1 per default. X-Git-Tag: 1.31.0-rc.0~54546 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=a90933fc0544218401b1ed05a2ef89ae49dd8647;p=lhc%2Fweb%2Fwiklou.git * Made the PLURAL: parser function return singular on -1 per default. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ad38eeab54..6a98f57d33 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -32,6 +32,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN progress in the extension repository. * Running maintenance/parserTests.php with '--record' option, will now automaticly tries to create its database tables. +* Made the PLURAL: parser function return singular on -1 per default. == Languages updated == diff --git a/languages/Language.php b/languages/Language.php index fd7786e5aa..7176391ba8 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1298,7 +1298,7 @@ class Language { * @return string */ function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) { - return $count == '1' ? $w1 : $w2; + return ( $count == '1' || $count == '-1' ) ? $w1 : $w2; } /**