summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageGv.php
blob: 6e25e21c8978ad9a9ffbeb686e507381a85639ae (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];
			}
		}
	}

}