Handle urls as external-url args
[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&uuml;cher' => 'http://www.buchhandel.de/sixcms/list.php?page=buchhandel_profisuche_frameset&suchfeld=isbn&suchwert=$1&x=0&y=0',
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 'Lehmanns Fachbuchhandlung' => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1',
57 );
58
59 if (!$wgCachedMessageArrays) {
60 require_once('MessagesDe.php');
61 }
62
63 /** @package MediaWiki */
64 class LanguageDe extends LanguageUtf8 {
65
66 function getBookstoreList() {
67 global $wgBookstoreListDe ;
68 return $wgBookstoreListDe ;
69 }
70
71 function getNamespaces() {
72 global $wgNamespaceNamesDe;
73 return $wgNamespaceNamesDe;
74 }
75
76 function getQuickbarSettings() {
77 global $wgQuickbarSettingsDe;
78 return $wgQuickbarSettingsDe;
79 }
80
81 function getSkinNames() {
82 global $wgSkinNamesDe;
83 return $wgSkinNamesDe;
84 }
85
86 function formatMonth( $month, $format ) {
87 return $this->getMonthAbbreviation( $month );
88 }
89
90 function formatDay( $day, $format ) {
91 return parent::formatDay( $day, $format ) . '.';
92 }
93
94 function getMessage( $key ) {
95 global $wgAllMessagesDe;
96 if( isset( $wgAllMessagesDe[$key] ) ) {
97 return $wgAllMessagesDe[$key];
98 } else {
99 return parent::getMessage( $key );
100 }
101 }
102
103 function formatNum( $number, $year = false ) {
104 return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
105 }
106
107 }
108
109 ?>