r67960 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67959‎ | r67960 | r67961 >
Date:20:23, 13 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Array indexes start from zero
Modified paths:
  • /trunk/phase3/languages/classes/LanguageSe.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageSe.php
@@ -11,11 +11,11 @@
1212 $forms = $this->preConvertPlural( $forms, 3 );
1313
1414 if ( $count == 1 ) {
 15+ $index = 0;
 16+ } elseif( $count == 2 ) {
1517 $index = 1;
16 - } elseif( $count == 2 ) {
 18+ } else {
1719 $index = 2;
18 - } else {
19 - $index = 3;
2020 }
2121 return $forms[$index];
2222 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r67976MFT r67960: Fix plural function for setstarling02:15, 14 June 2010

Status & tagging log