* Made the PLURAL: parser function return singular on -1 per default.
authorLeon Weber <leon@users.mediawiki.org>
Tue, 9 Jan 2007 20:10:44 +0000 (20:10 +0000)
committerLeon Weber <leon@users.mediawiki.org>
Tue, 9 Jan 2007 20:10:44 +0000 (20:10 +0000)
RELEASE-NOTES
languages/Language.php

index ad38eea..6a98f57 100644 (file)
@@ -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 ==
 
index fd7786e..7176391 100644 (file)
@@ -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;
        }
 
        /**