Remove ":" for 'youremail' and 'yourrealname' in includes/templates/Userlogin.php
[lhc/web/wiklou.git] / languages / LanguageCs.php
1 <?php
2 /** Czech (česky)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 #--------------------------------------------------------------------------
9 # Internationalisation code
10 #--------------------------------------------------------------------------
11
12 class LanguageCs extends Language {
13 # Grammatical transformations, needed for inflected languages
14 # Invoked by putting {{grammar:case|word}} in a message
15 function convertGrammar( $word, $case ) {
16 global $wgGrammarForms;
17 if ( isset($wgGrammarForms['cs'][$case][$word]) ) {
18 return $wgGrammarForms['cs'][$case][$word];
19 }
20 # allowed values for $case:
21 # 1sg, 2sg, ..., 7sg -- nominative, genitive, ... (in singular)
22 switch ( $word ) {
23 case 'Wikipedia':
24 case 'Wikipedie':
25 switch ( $case ) {
26 case '3sg':
27 case '4sg':
28 case '6sg':
29 return 'Wikipedii';
30 case '7sg':
31 return 'Wikipedií';
32 default:
33 return 'Wikipedie';
34 }
35
36 case 'Wiktionary':
37 case 'Wikcionář':
38 switch ( $case ) {
39 case '2sg':
40 return 'Wikcionáře';
41 case '3sg':
42 case '5sg';
43 case '6sg';
44 return 'Wikcionáři';
45 case '7sg':
46 return 'Wikcionářem';
47 default:
48 return 'Wikcionář';
49 }
50
51 case 'Wikiquote':
52 case 'Wikicitáty':
53 switch ( $case ) {
54 case '2sg':
55 return 'Wikicitátů';
56 case '3sg':
57 return 'Wikicitátům';
58 case '6sg';
59 return 'Wikicitátech';
60 default:
61 return 'Wikicitáty';
62 }
63 }
64 # unknown
65 return $word;
66 }
67
68 # Plural form transformations, needed for some languages.
69 # Invoked by {{plural:count|wordform1|wordform2|wordform3}}
70 function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
71 switch ( $count ) {
72 case 1:
73 return $wordform1;
74
75 case 2:
76 case 3:
77 case 4:
78 return $wordform2;
79
80 default:
81 return $wordform3;
82 };
83 }
84 }
85
86 ?>