summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageGv.php
blob: 5683826d90e4ef8b192a36a8e41fe3b3b1a79762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

/** Manx (Gaelg)
 *
 * @ingroup Language
 *
 * @author Niklas Laxström
 */
class LanguageGv extends Language {

	function convertPlural( $count, $forms ) {
		if ( !count($forms) ) { return ''; }

		$forms = $this->preConvertPlural( $forms, 4 );

		if ($count > 0 && ($count % 20) === 0 ) {
			return $forms[0];
		} else {
			switch ($count % 10) {
				case 1: return $forms[1];
				case 2: return $forms[2];
				default: return $forms[3];
			}
		}
	}

}