blob: 537c142ddbeee0f4e7833bd2de915d45c97afaf0 (
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, $w4, $w5) {
$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;
}
}
}
}
?>
|