From a90933fc0544218401b1ed05a2ef89ae49dd8647 Mon Sep 17 00:00:00 2001 From: Leon Weber Date: Tue, 9 Jan 2007 20:10:44 +0000 Subject: [PATCH] * Made the PLURAL: parser function return singular on -1 per default. --- RELEASE-NOTES | 1 + languages/Language.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; } /** -- 2.20.1