Localisation updates for core messages from translatewiki.net (2009-04-08 17:57 UTC)
[lhc/web/wiklou.git] / languages / classes / LanguageMt.php
1 <?php
2
3 /** Maltese (Malti)
4 *
5 * @ingroup Language
6 *
7 * @author Niklas Laxström
8 */
9
10 class LanguageMt extends Language {
11 function convertPlural( $count, $forms ) {
12 if ( !count($forms) ) { return ''; }
13
14 $forms = $this->preConvertPlural( $forms, 4 );
15
16 if ( $count === 1 ) $index = 0;
17 elseif ( $count === 0 || ( $count%100>1 && $count%100<11) ) $index = 1;
18 elseif ( $count%100>10 && $count%100<20 ) $index = 2;
19 else $index = 3;
20 return $forms[$index];
21 }
22 }