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
|
<?php
/** Danish (Dansk)
*
* @package MediaWiki
* @subpackage Language
*/
/** */
require_once( 'LanguageUtf8.php' );
/* private */ $wgNamespaceNamesDa = array(
NS_MEDIA => 'Media',
NS_SPECIAL => 'Speciel',
NS_MAIN => '',
NS_TALK => 'Diskussion',
NS_USER => 'Bruger',
NS_USER_TALK => 'Bruger_diskussion',
NS_PROJECT => $wgMetaNamespace,
NS_PROJECT_TALK => $wgMetaNamespace.'_diskussion',
NS_IMAGE => 'Billede',
NS_IMAGE_TALK => 'Billede_diskussion',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_diskussion',
NS_TEMPLATE => 'Skabelon',
NS_TEMPLATE_TALK => 'Skabelon_diskussion',
NS_HELP => 'Hjælp',
NS_HELP_TALK => 'Hjælp_diskussion',
NS_CATEGORY => 'Kategori',
NS_CATEGORY_TALK => 'Kategori_diskussion'
) + $wgNamespaceNamesEn;
/* private */ $wgQuickbarSettingsDa = array(
'Ingen', 'Fast venstre', 'Fast højre', 'Flydende venstre'
);
/* private */ $wgSkinNamesDa = array(
'standard' => 'Klassisk',
'nostalgia' => 'Nostalgi',
'cologneblue' => 'Cologne-blå',
) + $wgSkinNamesEn;
/* private */ $wgDateFormatsDa = array();
/* private */ $wgBookstoreListDa = array(
"Bibliotek.dk" => "http://bibliotek.dk/vis.php?base=dfa&origin=kommando&field1=ccl&term1=is=$1&element=L&start=1&step=10",
"Bogguide.dk" => "http://www.bogguide.dk/find_boeger_bog.asp?ISBN=$1",
) + $wgBookstoreListEn;
if (!$wgCachedMessageArrays) {
require_once('MessagesDa.php');
}
/** @package MediaWiki */
class LanguageDa extends LanguageUtf8 {
function getBookstoreList () {
global $wgBookstoreListDa ;
return $wgBookstoreListDa ;
}
function getNamespaces() {
global $wgNamespaceNamesDa;
return $wgNamespaceNamesDa;
}
function getQuickbarSettings() {
global $wgQuickbarSettingsDa;
return $wgQuickbarSettingsDa;
}
function getSkinNames() {
global $wgSkinNamesDa;
return $wgSkinNamesDa;
}
function getDateFormats() {
global $wgDateFormatsDa;
return $wgDateFormatsDa;
}
function date( $ts, $adj = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = (0 + substr( $ts, 6, 2 )) . ". " .
$this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
substr( $ts, 0, 4 );
return $d;
}
function timeanddate( $ts, $adj = false ) {
return $this->date( $ts, $adj ) . " kl. " . $this->time( $ts, $adj );
}
function getMessage( $key ) {
global $wgAllMessagesDa;
if( isset( $wgAllMessagesDa[$key] ) ) {
return $wgAllMessagesDa[$key];
} else {
return parent::getMessage( $key );
}
}
function separatorTransformTable() {
return array(',' => '.', '.' => ',' );
}
}
?>
|