More profiling sections
[mediawiki.git] / languages / LanguageGsw.php
blob72dd713bbdb31187ae89079b3af479f71e86820c
1 <?php
2 /** Alemannic (Alemannisch)
4 * @package MediaWiki
5 * @subpackage Language
6 */
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
18 include_once( "LanguageDe.php" );
20 if (!$wgCachedMessageArrays) {
21 require_once('MessagesGsw.php');
24 class LanguageGsw extends LanguageDe {
25 private $mMessagesGsw = null;
27 function __construct() {
28 parent::__construct();
30 global $wgAllMessagesGsw;
31 $this->mMessagesGsw =& $wgAllMessagesGsw;
35 function getMessage( $key ) {
36 if( isset( $this->mMessagesGsw[$key] ) ) {
37 return $this->mMessagesGsw[$key];
38 } else {
39 return parent::getMessage( $key );
43 function getAllMessages() {
44 return $this->mMessagesGsw;
47 function getFallbackLanguage() {
48 return 'de';
51 function linkTrail() {
52 return '/^([äöüßa-z]+)(.*)$/sDu';
55 # Convert from the nominative form of a noun to some other case
56 # Invoked with result
58 function convertGrammar( $word, $case ) {
59 global $wgGrammarForms;
60 if ( isset($wgGrammarForms['gsw'][$case][$word]) ) {
61 return $wgGrammarForms['gsw'][$case][$word];
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';
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';
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';
108 break;
110 return $word;