summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageHr.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
commit086ae52d12011746a75f5588e877347bc0457352 (patch)
treee73263c7a29d0f94fafb874562610e16eb292ba8 /languages/classes/LanguageHr.php
parent749e7fb2bae7bbda855de3c9e319435b9f698ff7 (diff)
Update auf MediaWiki 1.12.0
Diffstat (limited to 'languages/classes/LanguageHr.php')
-rw-r--r--languages/classes/LanguageHr.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/languages/classes/LanguageHr.php b/languages/classes/LanguageHr.php
index 5a875a71..4a64f879 100644
--- a/languages/classes/LanguageHr.php
+++ b/languages/classes/LanguageHr.php
@@ -5,17 +5,20 @@
*/
class LanguageHr extends Language {
- function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
- $count = str_replace ('.', '', $count);
+
+ function convertPlural( $count, $forms ) {
+ if ( !count($forms) ) { return ''; }
+ $forms = $this->preConvertPlural( $forms, 3 );
+
if ($count > 10 && floor(($count % 100) / 10) == 1) {
- return $wordform3;
+ return $forms[2];
} else {
switch ($count % 10) {
- case 1: return $wordform1;
+ case 1: return $forms[0];
case 2:
case 3:
- case 4: return $wordform2;
- default: return $wordform3;
+ case 4: return $forms[1];
+ default: return $forms[2];
}
}
}