X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageSl.php;h=06c75c955cf466656c9ac4b689867c7abd234540;hb=fe7c34eebdeda926fc3d76bd8a7ec31e3fa59955;hp=c075e51542da4ff0bda8dd9f458737129de26a48;hpb=5e18423043c4e1646e1e500ce8852f6c99d06317;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageSl.php b/languages/classes/LanguageSl.php index c075e51542..06c75c955c 100644 --- a/languages/classes/LanguageSl.php +++ b/languages/classes/LanguageSl.php @@ -45,35 +45,14 @@ class LanguageSl extends Language { switch ( $case ) { case 'mestnik': # locative - $word = 'o ' . $word; break; + $word = 'o ' . $word; + break; case 'orodnik': # instrumental $word = 'z ' . $word; + break; } return $word; # this will return the original value for 'imenovalnik' (nominativ) and all undefined case values } - /** - * @param $count int - * @param $forms array - * - * @return string - */ - function convertPlural( $count, $forms ) { - if ( !count( $forms ) ) { return ''; } - $forms = $this->preConvertPlural( $forms, 5 ); - - if ( $count % 100 == 1 ) { - $index = 0; - } elseif ( $count % 100 == 2 ) { - $index = 1; - } elseif ( $count % 100 == 3 || $count % 100 == 4 ) { - $index = 2; - } elseif ( $count != 0 ) { - $index = 3; - } else { - $index = 4; - } - return $forms[$index]; - } }