diff options
Diffstat (limited to 'languages/classes/LanguageHsb.php')
-rw-r--r-- | languages/classes/LanguageHsb.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/languages/classes/LanguageHsb.php b/languages/classes/LanguageHsb.php index 7cbc17de..68df96be 100644 --- a/languages/classes/LanguageHsb.php +++ b/languages/classes/LanguageHsb.php @@ -100,17 +100,16 @@ class LanguageHsb extends Language { return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values } - function convertPlural( $count, $singular, $dual, $plural, $pluralgen, $w5 ) { + function convertPlural( $count, $forms ) { + if ( !count($forms) ) { return ''; } + $forms = $this->preConvertPlural( $forms, 4 ); + switch ( abs( $count ) % 100 ) { - case 1: - return $singular; - case 2: - return $dual; + case 1: return $forms[0]; // singular + case 2: return $forms[1]; // dual case 3: - case 4: - return $plural; - default: - return $pluralgen; + case 4: return $forms[2]; // plural + default: return $forms[3]; // pluralgen } } } |