r108493 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/phase3/resources/mediawiki.language/languages/se.js
@@ -3,15 +3,15 @@
44 */
55
66 mediaWiki.language.convertPlural = function( count, forms ) {
7 - if ( count == 0 ) {
8 - return '';
 7+ if ( !forms || forms.length === 0 ) {
 8+ return '';
99 }
1010 forms = mediaWiki.language.preConvertPlural( forms, 3 );
1111 if ( count == 1 ) {
12 - return forms[1];
 12+ return forms[0];
1313 }
1414 if ( count == 2 ) {
15 - return forms[2];
 15+ return forms[1];
1616 }
17 - return ''
 17+ return forms[2];
1818 };

Status & tagging log