summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageMg.php
blob: 111dda3548f22895eb7e2ddc12e2a0bcbede5617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Malagasy (Malagasy)
 *
 * @ingroup Language
 */
class LanguageMg extends Language {
	/**
	 * Use singular form for zero
	 *
	 * @param $count int
	 * @param $forms array
	 *
	 * @return string
	 */
	function convertPlural( $count, $forms ) {
		if ( !count( $forms ) ) { return ''; }
		$forms = $this->preConvertPlural( $forms, 2 );

		return ( $count <= 1 ) ? $forms[0] : $forms[1];
	}
}