Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2747,8 +2747,9 @@ |
2748 | 2748 | if ( !$found && $argc >= 2 ) { |
2749 | 2749 | $mwPluralForm =& MagicWord::get( MAG_PLURAL ); |
2750 | 2750 | 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]); |
2753 | 2754 | $found = true; |
2754 | 2755 | } |
2755 | 2756 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -460,6 +460,7 @@ |
461 | 461 | * Added AutoLoader.php, which loads classes without need of require_once() |
462 | 462 | * (bug 5981) Add plural function Slovenian (sl) |
463 | 463 | * (bug 5945) Introduce {{CONTENTLANGUAGE}} magic word |
| 464 | +* {{PLURAL}} can now take up to five forms |
464 | 465 | |
465 | 466 | == Compatibility == |
466 | 467 | |