7 #--------------------------------------------------------------------------
8 # Internationalisation code
9 #--------------------------------------------------------------------------
11 class LanguageCs
extends Language
{
12 # Grammatical transformations, needed for inflected languages
13 # Invoked by putting {{grammar:case|word}} in a message
14 function convertGrammar( $word, $case ) {
15 global $wgGrammarForms;
16 if ( isset($wgGrammarForms['cs'][$case][$word]) ) {
17 return $wgGrammarForms['cs'][$case][$word];
19 # allowed values for $case:
20 # 1sg, 2sg, ..., 7sg -- nominative, genitive, ... (in singular)
57 return 'Wikislovníku';
59 return 'Wikislovníkem';
72 return 'Wikicitátech';
81 function convertPlural( $count, $forms ) {
82 if ( !count($forms) ) { return ''; }
83 $forms = $this->preConvertPlural( $forms, 3 );
86 case 1: return $forms[0];
89 case 4: return $forms[1];
90 default: return $forms[2];