blob: ce4e05786944fb7ba0ba12d78555759fee553aae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php
/** Alemannic (Alemannisch)
*
* @package MediaWiki
* @subpackage Language
*/
class LanguageGsw extends Language {
# Convert from the nominative form of a noun to some other case
# Invoked with result
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
if ( isset($wgGrammarForms['gsw'][$case][$word]) ) {
return $wgGrammarForms['gsw'][$case][$word];
}
switch ( $case ) {
case 'dativ':
if ( $word == 'Wikipedia' ) {
$word = 'vo de Wikipedia';
} elseif ( $word == 'Wikinorchrichte' ) {
$word = 'vo de Wikinochrichte';
} elseif ( $word == 'Wiktionaire' ) {
$word = 'vom Wiktionaire';
} elseif ( $word == 'Wikibuecher' ) {
$word = 'vo de Wikibuecher';
} elseif ( $word == 'Wikisprüch' ) {
$word = 'vo de Wikisprüch';
} elseif ( $word == 'Wikiquälle' ) {
$word = 'vo de Wikiquälle';
}
break;
case 'akkusativ':
if ( $word == 'Wikipedia' ) {
$word = 'd Wikipedia';
} elseif ( $word == 'Wikinorchrichte' ) {
$word = 'd Wikinochrichte';
} elseif ( $word == 'Wiktionaire' ) {
$word = 's Wiktionaire';
} elseif ( $word == 'Wikibuecher' ) {
$word = 'd Wikibuecher';
} elseif ( $word == 'Wikisprüch' ) {
$word = 'd Wikisprüch';
} elseif ( $word == 'Wikiquälle' ) {
$word = 'd Wikiquälle';
}
break;
case 'nominativ':
if ( $word == 'Wikipedia' ) {
$word = 'd Wikipedia';
} elseif ( $word == 'Wikinorchrichte' ) {
$word = 'd Wikinochrichte';
} elseif ( $word == 'Wiktionaire' ) {
$word = 's Wiktionaire';
} elseif ( $word == 'Wikibuecher' ) {
$word = 'd Wikibuecher';
} elseif ( $word == 'Wikisprüch' ) {
$word = 'd Wikisprüch';
} elseif ( $word == 'Wikiquälle' ) {
$word = 'd Wikiquälle';
}
break;
}
return $word;
}
}
?>
|