Got rid of about 20 regex calls in braceSubstitution() relating to function-like...
[lhc/web/wiklou.git] / languages / LanguageLi.php
1 <?php
2 /** Limburgian (Limburgs)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 require_once( 'LanguageUtf8.php' );
9
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesLi.php');
12 }
13
14 class LanguageLi extends LanguageUtf8 {
15 private $mMessagesLi, $mNamespaceNamesLi = null;
16
17 private $mQuickbarSettingsLi = array(
18 'Oetgesjakeld', 'Links vas', 'Rechts vas', 'Links zwevend'
19 );
20
21 private $mSkinNamesLi = array(
22 'standard' => 'Standaard',
23 'nostalgia' => 'Nostalgie',
24 'cologneblue' => 'Keuls blauw',
25 );
26
27 function __construct() {
28 parent::__construct();
29
30 global $wgAllMessagesLi;
31 $this->mMessagesLi =& $wgAllMessagesLi;
32
33 global $wgMetaNamespace;
34 $this->mNamespaceNamesLi = array(
35 NS_MEDIA => 'Media',
36 NS_SPECIAL => 'Speciaal',
37 NS_MAIN => '',
38 NS_TALK => 'Euverlik',
39 NS_USER => 'Gebroeker',
40 NS_USER_TALK => 'Euverlik_gebroeker',
41 NS_PROJECT => $wgMetaNamespace,
42 NS_PROJECT_TALK => 'Euverlik_' . $wgMetaNamespace,
43 NS_IMAGE => 'Aafbeilding',
44 NS_IMAGE_TALK => 'Euverlik_afbeelding',
45 NS_MEDIAWIKI => 'MediaWiki',
46 NS_MEDIAWIKI_TALK => 'Euverlik_MediaWiki',
47 NS_TEMPLATE => 'Sjabloon',
48 NS_TEMPLATE_TALK => 'Euverlik_sjabloon',
49 NS_HELP => 'Help',
50 NS_HELP_TALK => 'Euverlik_help',
51 NS_CATEGORY => 'Kategorie',
52 NS_CATEGORY_TALK => 'Euverlik_kategorie'
53 );
54 }
55
56 function getNamespaces() {
57 return $this->mNamespaceNamesLi + parent::getNamespaces();
58 }
59
60 function getQuickbarSettings() {
61 return $this->mQuickbarSettingsLi;
62 }
63
64 function getSkinNames() {
65 return $this->mSkinNamesLi + parent::getSkinNames();
66 }
67
68 function getMessage( $key ) {
69 if( isset( $this->mMessagesLi[$key] ) ) {
70 return $this->mMessagesLi[$key];
71 } else {
72 return parent::getMessage( $key );
73 }
74 }
75
76 function getAllMessages() {
77 return $this->mMessagesLi;
78 }
79
80 function timeBeforeDate( ) {
81 return false;
82 }
83
84 function timeDateSeparator( $format ) {
85 return ' ';
86 }
87
88 function formatMonth( $month, $format ) {
89 return $this->getMonthAbbreviation( $month );
90 }
91
92 }
93 ?>