summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageSl.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageSl.php')
-rw-r--r--languages/classes/LanguageSl.php27
1 files changed, 3 insertions, 24 deletions
diff --git a/languages/classes/LanguageSl.php b/languages/classes/LanguageSl.php
index c075e515..06c75c95 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];
- }
}