c69a81f13e9d6e89e2789e3a73b755ab4984f990
[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 'abebooks.de' => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1',
54 'amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1',
55 'buch.de' => 'http://www.buch.de/de.buch.shop/shop/1/home/schnellsuche/buch/?fqbi=$1',
56 'buchhandel.de' => 'http://www.buchhandel.de/vlb/vlb.cgi?type=voll&isbn=$1',
57 'Karlsruher Virtueller Katalog (KVK)' => 'http://www.ubka.uni-karlsruhe.de/kvk.html?SB=$1',
58 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1'
59 );
60
61 if (!$wgCachedMessageArrays) {
62 require_once('MessagesDe.php');
63 }
64
65 /** @package MediaWiki */
66 class LanguageDe extends LanguageUtf8 {
67
68 function getBookstoreList() {
69 global $wgBookstoreListDe ;
70 return $wgBookstoreListDe ;
71 }
72
73 function getNamespaces() {
74 global $wgNamespaceNamesDe;
75 return $wgNamespaceNamesDe;
76 }
77
78 function getQuickbarSettings() {
79 global $wgQuickbarSettingsDe;
80 return $wgQuickbarSettingsDe;
81 }
82
83 function getSkinNames() {
84 global $wgSkinNamesDe;
85 return $wgSkinNamesDe;
86 }
87
88 function formatMonth( $month, $format ) {
89 return $this->getMonthAbbreviation( $month );
90 }
91
92 function formatDay( $day, $format ) {
93 return parent::formatDay( $day, $format ) . '.';
94 }
95
96 function getMessage( $key ) {
97 global $wgAllMessagesDe;
98 if( isset( $wgAllMessagesDe[$key] ) ) {
99 return $wgAllMessagesDe[$key];
100 } else {
101 return parent::getMessage( $key );
102 }
103 }
104
105 function separatorTransformTable() {
106 return array(',' => '.', '.' => ',' );
107 }
108
109 function linkTrail() {
110 return '/^([äöüßa-z]+)(.*)$/sDu';
111 }
112
113
114 }
115
116 ?>