summaryrefslogtreecommitdiff
path: root/languages/LanguageLi.php
blob: 2e7fe8c55e1db937ef1fcad3a55bb6402a2dd4b3 (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
<?php
/** Limburgian (Limburgs)
  *
  * @package MediaWiki
  * @subpackage Language
  */

require_once( 'LanguageUtf8.php' );

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

class LanguageLi extends LanguageUtf8 {
	private $mMessagesLi, $mNamespaceNamesLi = null;

	private $mQuickbarSettingsLi = array(
		'Oetgesjakeld', 'Links vas', 'Rechts vas', 'Links zwevend'
	);
	
	private $mSkinNamesLi = array(
		'standard' => 'Standaard',
		'nostalgia' => 'Nostalgie',
		'cologneblue' => 'Keuls blauw',
	);

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

		global $wgAllMessagesLi;
		$this->mMessagesLi =& $wgAllMessagesLi;

		global $wgMetaNamespace;
		$this->mNamespaceNamesLi = array(
			NS_MEDIA          => 'Media',
			NS_SPECIAL        => 'Speciaal',
			NS_MAIN           => '',
			NS_TALK           => 'Euverlik',
			NS_USER           => 'Gebroeker',
			NS_USER_TALK      => 'Euverlik_gebroeker',
			NS_PROJECT        => $wgMetaNamespace,
			NS_PROJECT_TALK   => 'Euverlik_' . $wgMetaNamespace,
			NS_IMAGE          => 'Aafbeilding',
			NS_IMAGE_TALK     => 'Euverlik_afbeelding',
			NS_MEDIAWIKI      => 'MediaWiki',
			NS_MEDIAWIKI_TALK => 'Euverlik_MediaWiki',
			NS_TEMPLATE       => 'Sjabloon',
			NS_TEMPLATE_TALK  => 'Euverlik_sjabloon',
			NS_HELP           => 'Help',
			NS_HELP_TALK      => 'Euverlik_help',
			NS_CATEGORY       => 'Kategorie',
			NS_CATEGORY_TALK  => 'Euverlik_kategorie'
		);
	}

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

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

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

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

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

	function timeBeforeDate( ) {
		return false;
	}

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

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

}
?>