summaryrefslogtreecommitdiff
path: root/languages/LanguageGsw.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-12-15 18:02:47 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-12-15 18:02:47 +0100
commit396b28f3d881f5debd888ba9bb9b47c2d478a76f (patch)
tree10d6e1a721ee4ef69def34a57f02d7eb3fc9e31e /languages/LanguageGsw.php
parent0be4d3ccf6c4fe98a72704f9463ecdea2ee5e615 (diff)
update to Mediawiki 1.13.3; some cleanups
Diffstat (limited to 'languages/LanguageGsw.php')
-rw-r--r--languages/LanguageGsw.php115
1 files changed, 0 insertions, 115 deletions
diff --git a/languages/LanguageGsw.php b/languages/LanguageGsw.php
deleted file mode 100644
index 72dd713b..00000000
--- a/languages/LanguageGsw.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-/** Alemannic (Alemannisch)
- *
- * @package MediaWiki
- * @subpackage Language
- */
-
-/*
-<Melancholie> for the moment it would be the best if LanguageAls.php would be
- the same like LanguageDe.php. That would help us a lot at als.
-<Melancholie> at the moment all is in English
-<TimStarling> ok
-<Melancholie> great
-<TimStarling> I'll make a stub language file that fetches everything from de
-<Melancholie> cool
-*/
-
-include_once( "LanguageDe.php" );
-
-if (!$wgCachedMessageArrays) {
- require_once('MessagesGsw.php');
-}
-
-class LanguageGsw extends LanguageDe {
- private $mMessagesGsw = null;
-
- function __construct() {
- parent::__construct();
-
- global $wgAllMessagesGsw;
- $this->mMessagesGsw =& $wgAllMessagesGsw;
-
- }
-
- function getMessage( $key ) {
- if( isset( $this->mMessagesGsw[$key] ) ) {
- return $this->mMessagesGsw[$key];
- } else {
- return parent::getMessage( $key );
- }
- }
-
- function getAllMessages() {
- return $this->mMessagesGsw;
- }
-
- function getFallbackLanguage() {
- return 'de';
- }
-
- function linkTrail() {
- return '/^([äöüßa-z]+)(.*)$/sDu';
- }
-
- # 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;
- }
-
-}
-
-?>