Index: trunk/phase3/resources/mediawiki.language/languages/sma.js |
— | — | @@ -3,12 +3,15 @@ |
4 | 4 | */ |
5 | 5 | |
6 | 6 | 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 ); |
8 | 11 | if ( count == 1 ) { |
9 | | - return forms[1]; |
| 12 | + return forms[0]; |
10 | 13 | } |
11 | 14 | if ( count == 2 ) { |
12 | | - return forms[2]; |
| 15 | + return forms[1]; |
13 | 16 | } |
14 | | - return forms[3]; |
| 17 | + return forms[2]; |
15 | 18 | }; |