X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/languages/classes/LanguageBs.php diff --git a/languages/classes/LanguageBs.php b/languages/classes/LanguageBs.php index 6432109d..de9c7dce 100644 --- a/languages/classes/LanguageBs.php +++ b/languages/classes/LanguageBs.php @@ -1,34 +1,42 @@ preConvertPlural( $forms, 3 ); - - // FIXME: CLDR defines 4 plural forms instead of 3. Plural for decimals is missing. - // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html - if ( $count > 10 && floor( ( $count % 100 ) / 10 ) == 1 ) { - return $forms[2]; - } else { - switch ( $count % 10 ) { - case 1: return $forms[0]; - case 2: - case 3: - case 4: return $forms[1]; - default: return $forms[2]; - } - } - } - - # Convert from the nominative form of a noun to some other case - # Invoked with {{GRAMMAR:case|word}} /** + * Convert from the nominative form of a noun to some other case + * Invoked with {{GRAMMAR:case|word}} + * * Cases: genitiv, dativ, akuzativ, vokativ, instrumental, lokativ + * + * @param string $word + * @param string $case + * + * @return string */ function convertGrammar( $word, $case ) { global $wgGrammarForms; @@ -44,6 +52,8 @@ class LanguageBs extends Language { break; } - return $word; # this will return the original value for 'nominativ' (nominative) and all undefined case values + # this will return the original value for 'nominativ' (nominative) + # and all undefined case values. + return $word; } }