Removed some redundant messages:
[lhc/web/wiklou.git] / languages / LanguageGsw.php
1 <?php
2 /** Alemannic (Alemannisch)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 /*
9 <Melancholie> for the moment it would be the best if LanguageAls.php would be
10 the same like LanguageDe.php. That would help us a lot at als.
11 <Melancholie> at the moment all is in English
12 <TimStarling> ok
13 <Melancholie> great
14 <TimStarling> I'll make a stub language file that fetches everything from de
15 <Melancholie> cool
16 */
17
18 include_once( "LanguageDe.php" );
19
20 if (!$wgCachedMessageArrays) {
21 require_once('MessagesGsw.php');
22 }
23
24 class LanguageGsw extends LanguageDe {
25 private $mMessagesGsw = null;
26
27 function __construct() {
28 parent::__construct();
29
30 global $wgAllMessagesGsw;
31 $this->mMessagesGsw =& $wgAllMessagesGsw;
32
33 }
34
35 function getMessage( $key ) {
36 if( isset( $this->mMessagesGsw[$key] ) ) {
37 return $this->mMessagesGsw[$key];
38 } else {
39 return parent::getMessage( $key );
40 }
41 }
42
43 function getAllMessages() {
44 return $this->mMessagesGsw;
45 }
46
47 function getFallbackLanguage() {
48 return 'de';
49 }
50
51 function linkTrail() {
52 return '/^([äöüßa-z]+)(.*)$/sDu';
53 }
54
55 # Convert from the nominative form of a noun to some other case
56 # Invoked with result
57
58 function convertGrammar( $word, $case ) {
59 global $wgGrammarForms;
60 if ( isset($wgGrammarForms['gsw'][$case][$word]) ) {
61 return $wgGrammarForms['gsw'][$case][$word];
62 }
63 switch ( $case ) {
64 case 'dativ':
65 if ( $word == 'Wikipedia' ) {
66 $word = 'vo de Wikipedia';
67 } elseif ( $word == 'Wikinorchrichte' ) {
68 $word = 'vo de Wikinochrichte';
69 } elseif ( $word == 'Wiktionaire' ) {
70 $word = 'vom Wiktionaire';
71 } elseif ( $word == 'Wikibuecher' ) {
72 $word = 'vo de Wikibuecher';
73 } elseif ( $word == 'Wikisprüch' ) {
74 $word = 'vo de Wikisprüch';
75 } elseif ( $word == 'Wikiquälle' ) {
76 $word = 'vo de Wikiquälle';
77 }
78 break;
79 case 'akkusativ':
80 if ( $word == 'Wikipedia' ) {
81 $word = 'd Wikipedia';
82 } elseif ( $word == 'Wikinorchrichte' ) {
83 $word = 'd Wikinochrichte';
84 } elseif ( $word == 'Wiktionaire' ) {
85 $word = 's Wiktionaire';
86 } elseif ( $word == 'Wikibuecher' ) {
87 $word = 'd Wikibuecher';
88 } elseif ( $word == 'Wikisprüch' ) {
89 $word = 'd Wikisprüch';
90 } elseif ( $word == 'Wikiquälle' ) {
91 $word = 'd Wikiquälle';
92 }
93 break;
94 case 'nominativ':
95 if ( $word == 'Wikipedia' ) {
96 $word = 'd Wikipedia';
97 } elseif ( $word == 'Wikinorchrichte' ) {
98 $word = 'd Wikinochrichte';
99 } elseif ( $word == 'Wiktionaire' ) {
100 $word = 's Wiktionaire';
101 } elseif ( $word == 'Wikibuecher' ) {
102 $word = 'd Wikibuecher';
103 } elseif ( $word == 'Wikisprüch' ) {
104 $word = 'd Wikisprüch';
105 } elseif ( $word == 'Wikiquälle' ) {
106 $word = 'd Wikiquälle';
107 }
108 break;
109 }
110 return $word;
111 }
112
113 }
114
115 ?>