summaryrefslogtreecommitdiff
path: root/languages/LanguageNds.php
blob: e55f5858ea537fdcadd33a2c7b4f4f6b2fc58f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
/** Low Saxon (Plattdüütsch)
 *
 * @package MediaWiki
 * @subpackage Language
 */

require_once( 'LanguageUtf8.php' );

if (!$wgCachedMessageArrays) {
	require_once('MessagesNds.php');
}

class LanguageNds extends LanguageUtf8 {
	private $mMessagesNds, $mNamespaceNamesNds = null;

	private $mQuickbarSettingsNds = array(
		'Keen', 'Links, fast', 'Rechts, fast', 'Links, sweven'
	);
	
	private $mMagicWordsNds = array(
	#   ID                                 CASE  SYNONYMS
		MAG_REDIRECT             => array( 0, '#redirect',                   '#wiederleiden'          ),
		MAG_NOTOC                => array( 0, '__NOTOC__',                   '__KEENINHOLTVERTEKEN__' ),
		MAG_FORCETOC             => array( 0, '__FORCETOC__',                '__WIESINHOLTVERTEKEN__' ),
		MAG_TOC                  => array( 0, '__TOC__',                     '__INHOLTVERTEKEN__'     ),
		MAG_NOEDITSECTION        => array( 0, '__NOEDITSECTION__',           '__KEENÄNNERNLINK__'     ),
		MAG_START                => array( 0, '__START__'                                             ),
		MAG_CURRENTMONTH         => array( 1, 'CURRENTMONTH',                'AKTMAAND'               ),
		MAG_CURRENTMONTHNAME     => array( 1, 'CURRENTMONTHNAME',            'AKTMAANDNAAM'           ),
		MAG_CURRENTDAY           => array( 1, 'CURRENTDAY',                  'AKTDAG'                 ),
		MAG_CURRENTDAYNAME       => array( 1, 'CURRENTDAYNAME',              'AKTDAGNAAM'             ),
		MAG_CURRENTYEAR          => array( 1, 'CURRENTYEAR',                 'AKTJOHR'                ),
		MAG_CURRENTTIME          => array( 1, 'CURRENTTIME',                 'AKTTIED'                ),
		MAG_NUMBEROFARTICLES     => array( 1, 'NUMBEROFARTICLES',            'ARTIKELTALL'            ),
		MAG_CURRENTMONTHNAMEGEN  => array( 1, 'CURRENTMONTHNAMEGEN',         'AKTMAANDNAAMGEN'        ),
		MAG_PAGENAME             => array( 1, 'PAGENAME',                    'SIETNAAM'               ),
		MAG_PAGENAMEE            => array( 1, 'PAGENAMEE',                   'SIETNAAME'              ),
		MAG_NAMESPACE            => array( 1, 'NAMESPACE',                   'NAAMRUUM'               ),
		MAG_SUBST                => array( 0, 'SUBST:'                                                ),
		MAG_MSGNW                => array( 0, 'MSGNW:'                                                ),
		MAG_END                  => array( 0, '__END__',                     '__ENN__'                ),
		MAG_IMG_THUMBNAIL        => array( 1, 'thumbnail', 'thumb',          'duum'                   ),
		MAG_IMG_RIGHT            => array( 1, 'right',                       'rechts'                 ),
		MAG_IMG_LEFT             => array( 1, 'left',                        'links'                  ),
		MAG_IMG_NONE             => array( 1, 'none',                        'keen'                   ),
		MAG_IMG_WIDTH            => array( 1, '$1px',                        '$1px'                   ),
		MAG_IMG_CENTER           => array( 1, 'center', 'centre',            'merrn'                  ),
		MAG_IMG_FRAMED           => array( 1, 'framed', 'enframed', 'frame', 'rahmt'                  ),
		MAG_INT                  => array( 0, 'INT:'                                                  ),
		MAG_SITENAME             => array( 1, 'SITENAME',                    'STEEDNAAM'              ),
		MAG_NS                   => array( 0, 'NS:',                         'NR:'                    ),
		MAG_LOCALURL             => array( 0, 'LOCALURL:',                   'STEEDURL:'              ),
		MAG_LOCALURLE            => array( 0, 'LOCALURLE:',                  'STEEDURLE:'             ),
		MAG_SERVER               => array( 0, 'SERVER',                      'SERVER'                 ),
		MAG_GRAMMAR              => array( 0, 'GRAMMAR:',                    'GRAMMATIK:'             )
	);
	
	private $mSkinNamesNds = array(
		'standard'      => 'Klassik',
		'nostalgia'     => 'Nostalgie',
		'cologneblue'   => 'Kölsch Blau',
		'smarty'        => 'Paddington',
		'chick'         => 'Küken'
	);
	
	
	private $mBookstoreListNds = array(
		'Verteken vun leverbore Böker'  => 'http://www.buchhandel.de/sixcms/list.php?page=buchhandel_profisuche_frameset&suchfeld=isbn&suchwert=$1=0&y=0',
		'abebooks.de'                   => 'http://www.abebooks.de/servlet/BookSearchPL?ph=2&isbn=$1',
		'Amazon.de'                     => 'http://www.amazon.de/exec/obidos/ISBN=$1',
		'Lehmanns Fachbuchhandlung'     => 'http://www.lob.de/cgi-bin/work/suche?flag=new&stich1=$1',
	);
	
	function __construct() {
		parent::__construct();

		global $wgAllMessagesNds;
		$this->mMessagesNds =& $wgAllMessagesNds;

		global $wgMetaNamespace;
		$this->mNamespaceNamesNds = array(
			NS_MEDIA            => 'Media',
			NS_SPECIAL          => 'Spezial',
			NS_MAIN             => '',
			NS_TALK             => 'Diskuschoon',
			NS_USER             => 'Bruker',
			NS_USER_TALK        => 'Bruker_Diskuschoon',
			NS_PROJECT          => $wgMetaNamespace,
			NS_PROJECT_TALK     => $wgMetaNamespace . '_Diskuschoon',
			NS_IMAGE            => 'Bild',
			NS_IMAGE_TALK       => 'Bild_Diskuschoon',
			NS_MEDIAWIKI        => 'MediaWiki',
			NS_MEDIAWIKI_TALK   => 'MediaWiki_Diskuschoon',
			NS_TEMPLATE         => 'Vörlaag',
			NS_TEMPLATE_TALK    => 'Vörlaag_Diskuschoon',
			NS_HELP             => 'Hülp',
			NS_HELP_TALK        => 'Hülp_Diskuschoon',
			NS_CATEGORY         => 'Kategorie',
			NS_CATEGORY_TALK    => 'Kategorie_Diskuschoon'
		);

	}

	function getBookstoreList() {
		return $this->mBookstoreListNds;
	}

	function getNamespaces() {
		return $this->mNamespaceNamesNds + parent::getNamespaces();
	}

	function getQuickbarSettings() {
		return $this->mQuickbarSettingsNds;
	}

	function getSkinNames() {
		return $this->mSkinNamesNds + parent::getSkinNames();
	}

	function &getMagicWords()  {
		$t = $this->mMagicWordsNds + parent::getMagicWords();
		return $t;
	}

	function getMessage( $key ) {
		if( isset( $this->mMessagesNds[$key] ) ) {
			return $this->mMessagesNds[$key];
		} else {
			return parent::getMessage( $key );
		}
	}

	function getAllMessages() {
		return $this->mMessagesNds;
	}

	function formatMonth( $month, $format ) {
		return $this->getMonthAbbreviation( $month );
	}

	function formatDay( $day, $format ) {
		return parent::formatDay( $day, $format ) . '.';
	}

	function separatorTransformTable() {
		return array(',' => '.', '.' => ',' );
	}

	function linkTrail() {
		return '/^([äöüßa-z]+)(.*)$/sDu';
	}

}
?>