r14667 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14666‎ | r14667 | r14668 >
Date:19:42, 8 June 2006
Author:nikerabbit
Status:old
Tags:
Comment:
* {{PLURAL}} can now take up to five forms. Needed for some languages
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2747,8 +2747,9 @@
27482748 if ( !$found && $argc >= 2 ) {
27492749 $mwPluralForm =& MagicWord::get( MAG_PLURAL );
27502750 if ( $mwPluralForm->matchStartAndRemove( $part1 ) ) {
2751 - if ($argc==2) {$args[2]=$args[1];}
2752 - $text = $linestart . $lang->convertPlural( $part1, $args[0], $args[1], $args[2]);
 2751+ while ( count($args) < 5 ) { $args[] = $args[count($args)-1]; }
 2752+ $text = $linestart . $lang->convertPlural( $part1, $args[0], $args[1],
 2753+ $args[2], $args[3], $args[4]);
27532754 $found = true;
27542755 }
27552756 }
Index: trunk/phase3/RELEASE-NOTES
@@ -460,6 +460,7 @@
461461 * Added AutoLoader.php, which loads classes without need of require_once()
462462 * (bug 5981) Add plural function Slovenian (sl)
463463 * (bug 5945) Introduce {{CONTENTLANGUAGE}} magic word
 464+* {{PLURAL}} can now take up to five forms
464465
465466 == Compatibility ==
466467

Status & tagging log