summaryrefslogtreecommitdiff
path: root/languages/LanguageNl.php
blob: a7d59c2d3c3fc8e49a94cceb2d2cb08b8636cc05 (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
<?php
/** Dutch (Nederlands)
 *
 * @package MediaWiki
 * @subpackage Language
 */

require_once( 'LanguageUtf8.php' );

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

class LanguageNl extends LanguageUtf8 {
	private $mMessagesNl, $mNamespaceNamesNl = null;

	private $mQuickbarSettingsNl = array(
		'Uitgeschakeld', 'Links vast', 'Rechts vast', 'Links zwevend'
	);
	
	private $mSkinNamesNl = array(
		'standard' => 'Standaard',
		'nostalgia' => 'Nostalgie',
		'cologneblue' => 'Keuls blauw',
	);

	function __construct() {
		parent::__construct();

		global $wgAllMessagesNl;
		$this->mMessagesNl =& $wgAllMessagesNl;

		global $wgMetaNamespace;
		$this->mNamespaceNamesNl = array(
			NS_MEDIA          => 'Media',
			NS_SPECIAL        => 'Speciaal',
			NS_MAIN           => '',
			NS_TALK           => 'Overleg',
			NS_USER           => 'Gebruiker',
			NS_USER_TALK      => 'Overleg_gebruiker',
			NS_PROJECT        => $wgMetaNamespace,
			NS_PROJECT_TALK   => 'Overleg_' . $wgMetaNamespace,
			NS_IMAGE          => 'Afbeelding',
			NS_IMAGE_TALK     => 'Overleg_afbeelding',
			NS_MEDIAWIKI      => 'MediaWiki',
			NS_MEDIAWIKI_TALK => 'Overleg_MediaWiki',
			NS_TEMPLATE       => 'Sjabloon',
			NS_TEMPLATE_TALK  => 'Overleg_sjabloon',
			NS_HELP           => 'Help',
			NS_HELP_TALK      => 'Overleg_help',
			NS_CATEGORY       => 'Categorie',
			NS_CATEGORY_TALK  => 'Overleg_categorie'
		);
	}

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

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

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

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

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

	function timeBeforeDate( ) {
		return false;
	}

	function timeDateSeparator( $format ) {
		return ' ';
	}

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

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

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

}
?>