r108494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108493‎ | r108494 | r108495 >
Date:05:13, 10 January 2012
Author:santhosh
Status:ok
Tags:
Comment:
Make the plural rules for Southern Sami consistant with the rules in LanguageSma.php
Modified paths:
  • /trunk/phase3/resources/mediawiki.language/languages/sma.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.language/languages/sma.js
@@ -3,12 +3,15 @@
44 */
55
66 mediaWiki.language.convertPlural = function( count, forms ) {
7 - forms = mediaWiki.language.preConvertPlural( forms, 4 );
 7+ if ( !forms || forms.length === 0 ) {
 8+ return '';
 9+ }
 10+ forms = mediaWiki.language.preConvertPlural( forms, 3 );
811 if ( count == 1 ) {
9 - return forms[1];
 12+ return forms[0];
1013 }
1114 if ( count == 2 ) {
12 - return forms[2];
 15+ return forms[1];
1316 }
14 - return forms[3];
 17+ return forms[2];
1518 };

Status & tagging log