Introduce optional (off by default) language selector bar for user login and registra...
[lhc/web/wiklou.git] / languages / LanguageDe.php
1 <?php
2 /** German (Deutsch)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 *
7 * @bug 4563
8 */
9
10 /** */
11 require_once( 'LanguageUtf8.php' );
12
13 /* private */ $wgNamespaceNamesDe = array(
14 NS_MEDIA => 'Media',
15 NS_SPECIAL => 'Spezial',
16 NS_MAIN => '',
17 NS_TALK => 'Diskussion',
18 NS_USER => 'Benutzer',
19 NS_USER_TALK => 'Benutzer_Diskussion',
20 NS_PROJECT => $wgMetaNamespace,
21 NS_PROJECT_TALK => $wgMetaNamespace . '_Diskussion',
22 NS_IMAGE => 'Bild',
23 NS_IMAGE_TALK => 'Bild_Diskussion',
24 NS_MEDIAWIKI => 'MediaWiki',
25 NS_MEDIAWIKI_TALK => 'MediaWiki_Diskussion',
26 NS_TEMPLATE => 'Vorlage',
27 NS_TEMPLATE_TALK => 'Vorlage_Diskussion',
28 NS_HELP => 'Hilfe',
29 NS_HELP_TALK => 'Hilfe_Diskussion',
30 NS_CATEGORY => 'Kategorie',
31 NS_CATEGORY_TALK => 'Kategorie_Diskussion'
32 ) + $wgNamespaceNamesEn;
33
34 /* private */ $wgQuickbarSettingsDe = array(
35 'Keine', 'Links, fest', 'Rechts, fest', 'Links, schwebend'
36 );
37
38 /* private */ $wgSkinNamesDe = array(
39 'standard' => 'Klassik',
40 'nostalgia' => 'Nostalgie',
41 'cologneblue' => 'Kölnisch Blau',
42 'smarty' => 'Paddington',
43 'montparnasse' => 'Montparnasse',
44 'davinci' => 'DaVinci',
45 'mono' => 'Mono',
46 'monobook' => 'MonoBook',
47 'myskin' => 'MySkin',
48 'chick' => 'Küken'
49 );
50
51
52 /* private */ $wgBookstoreListDe = array(
53 'Verzeichnis lieferbarer Bücher' => 'http://www.buchhandel.de/vlb/vlb.cgi?type=voll&isbn=$1',
54 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1',
55 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1',
56 'buch.de' => 'http://www.buch.de/de.buch.shop/shop/1/home/schnellsuche/buch/?fqbi=$1',
57 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1',
58 );
59
60 if (!$wgCachedMessageArrays) {
61 require_once('MessagesDe.php');
62 }
63
64 /** @package MediaWiki */
65 class LanguageDe extends LanguageUtf8 {
66
67 function getBookstoreList() {
68 global $wgBookstoreListDe ;
69 return $wgBookstoreListDe ;
70 }
71
72 function getNamespaces() {
73 global $wgNamespaceNamesDe;
74 return $wgNamespaceNamesDe;
75 }
76
77 function getQuickbarSettings() {
78 global $wgQuickbarSettingsDe;
79 return $wgQuickbarSettingsDe;
80 }
81
82 function getSkinNames() {
83 global $wgSkinNamesDe;
84 return $wgSkinNamesDe;
85 }
86
87 function formatMonth( $month, $format ) {
88 return $this->getMonthAbbreviation( $month );
89 }
90
91 function formatDay( $day, $format ) {
92 return parent::formatDay( $day, $format ) . '.';
93 }
94
95 function getMessage( $key ) {
96 global $wgAllMessagesDe;
97 if( isset( $wgAllMessagesDe[$key] ) ) {
98 return $wgAllMessagesDe[$key];
99 } else {
100 return parent::getMessage( $key );
101 }
102 }
103
104 function separatorTransformTable() {
105 return array(',' => '.', '.' => ',' );
106 }
107
108 function linkTrail() {
109 return '/^([äöüßa-z]+)(.*)$/sDu';
110 }
111
112
113 }
114
115 ?>