r19031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19030‎ | r19031 | r19032 >
Date:20:10, 9 January 2007
Author:leon
Status:old
Tags:
Comment:
* Made the PLURAL: parser function return singular on -1 per default.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1298,7 +1298,7 @@
12991299 * @return string
13001300 */
13011301 function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
1302 - return $count == '1' ? $w1 : $w2;
 1302+ return ( $count == '1' || $count == '-1' ) ? $w1 : $w2;
13031303 }
13041304
13051305 /**
Index: trunk/phase3/RELEASE-NOTES
@@ -32,6 +32,7 @@
3333 progress in the extension repository.
3434 * Running maintenance/parserTests.php with '--record' option, will now automaticly
3535 tries to create its database tables.
 36+* Made the PLURAL: parser function return singular on -1 per default.
3637
3738 == Languages updated ==
3839