blob: 72f56b8cc84248688f838a123b76434eb843cd39 (
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
28
|
<?php
/**
* @package MediaWiki
* @subpackage Language
*/
#--------------------------------------------------------------------------
# Internationalisation code
#--------------------------------------------------------------------------
class LanguageSr_ec 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;
}
}
}
}
?>
|