summaryrefslogtreecommitdiff
path: root/languages/LanguageDe.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
commit183851b06bd6c52f3cae5375f433da720d410447 (patch)
treea477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageDe.php
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageDe.php')
-rw-r--r--languages/LanguageDe.php115
1 files changed, 115 insertions, 0 deletions
diff --git a/languages/LanguageDe.php b/languages/LanguageDe.php
new file mode 100644
index 00000000..0af4ec39
--- /dev/null
+++ b/languages/LanguageDe.php
@@ -0,0 +1,115 @@
+<?php
+/** German (Deutsch)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ *
+ * @bug 4563
+ */
+
+/** */
+require_once( 'LanguageUtf8.php' );
+
+/* private */ $wgNamespaceNamesDe = array(
+ NS_MEDIA => 'Media',
+ NS_SPECIAL => 'Spezial',
+ NS_MAIN => '',
+ NS_TALK => 'Diskussion',
+ NS_USER => 'Benutzer',
+ NS_USER_TALK => 'Benutzer_Diskussion',
+ NS_PROJECT => $wgMetaNamespace,
+ NS_PROJECT_TALK => $wgMetaNamespace . '_Diskussion',
+ NS_IMAGE => 'Bild',
+ NS_IMAGE_TALK => 'Bild_Diskussion',
+ NS_MEDIAWIKI => 'MediaWiki',
+ NS_MEDIAWIKI_TALK => 'MediaWiki_Diskussion',
+ NS_TEMPLATE => 'Vorlage',
+ NS_TEMPLATE_TALK => 'Vorlage_Diskussion',
+ NS_HELP => 'Hilfe',
+ NS_HELP_TALK => 'Hilfe_Diskussion',
+ NS_CATEGORY => 'Kategorie',
+ NS_CATEGORY_TALK => 'Kategorie_Diskussion'
+) + $wgNamespaceNamesEn;
+
+/* private */ $wgQuickbarSettingsDe = array(
+ 'Keine', 'Links, fest', 'Rechts, fest', 'Links, schwebend'
+);
+
+/* private */ $wgSkinNamesDe = array(
+ 'standard' => 'Klassik',
+ 'nostalgia' => 'Nostalgie',
+ 'cologneblue' => 'Kölnisch Blau',
+ 'smarty' => 'Paddington',
+ 'montparnasse' => 'Montparnasse',
+ 'davinci' => 'DaVinci',
+ 'mono' => 'Mono',
+ 'monobook' => 'MonoBook',
+ 'myskin' => 'MySkin',
+ 'chick' => 'Küken'
+);
+
+
+/* private */ $wgBookstoreListDe = array(
+ 'Verzeichnis lieferbarer Bücher' => 'http://www.buchhandel.de/vlb/vlb.cgi?type=voll&isbn=$1',
+ 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1',
+ 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1',
+ 'buch.de' => 'http://www.buch.de/de.buch.shop/shop/1/home/schnellsuche/buch/?fqbi=$1',
+ 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1',
+);
+
+if (!$wgCachedMessageArrays) {
+ require_once('MessagesDe.php');
+}
+
+/** @package MediaWiki */
+class LanguageDe extends LanguageUtf8 {
+
+ function getBookstoreList() {
+ global $wgBookstoreListDe ;
+ return $wgBookstoreListDe ;
+ }
+
+ function getNamespaces() {
+ global $wgNamespaceNamesDe;
+ return $wgNamespaceNamesDe;
+ }
+
+ function getQuickbarSettings() {
+ global $wgQuickbarSettingsDe;
+ return $wgQuickbarSettingsDe;
+ }
+
+ function getSkinNames() {
+ global $wgSkinNamesDe;
+ return $wgSkinNamesDe;
+ }
+
+ function formatMonth( $month, $format ) {
+ return $this->getMonthAbbreviation( $month );
+ }
+
+ function formatDay( $day, $format ) {
+ return parent::formatDay( $day, $format ) . '.';
+ }
+
+ function getMessage( $key ) {
+ global $wgAllMessagesDe;
+ if( isset( $wgAllMessagesDe[$key] ) ) {
+ return $wgAllMessagesDe[$key];
+ } else {
+ return parent::getMessage( $key );
+ }
+ }
+
+ function separatorTransformTable() {
+ return array(',' => '.', '.' => ',' );
+ }
+
+ function linkTrail() {
+ return '/^([äöüßa-z]+)(.*)$/sDu';
+ }
+
+
+}
+
+?>