ea8511280a0e39430d6176ea76a9692ad34db374
[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 $index = (n==1 ? 0 : n==0 or ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3);
17 return $forms[$index];
18 }
19 }