summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageHr.php
blob: b1f6b0fcb543e8456f93b7da5fff603567abf2b4 (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
<?php
/** Croatian (hrvatski)
  *
  * @package MediaWiki
  * @subpackage Language
  */

class LanguageHr extends Language {
	function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
		$count = str_replace ('.', '', $count);
		if ($count > 10 && floor(($count % 100) / 10) == 1) {
			return $wordform3;
		} else {
			switch ($count % 10) {
				case 1: return $wordform1;
				case 2:
				case 3:
				case 4: return $wordform2;
				default: return $wordform3;
			}
		}
	}

}

?>