From 086ae52d12011746a75f5588e877347bc0457352 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 21 Mar 2008 11:49:34 +0100 Subject: Update auf MediaWiki 1.12.0 --- languages/classes/LanguageHr.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'languages/classes/LanguageHr.php') 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]; } } } -- cgit v1.2.3-54-g00ecf