summaryrefslogtreecommitdiff
path: root/languages/LanguageFo.php
blob: 6df7bd7340fd39590b0e6a98292fcffd8f663302 (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
<?php
/** Faroese (Føroyskt)
  *
  * @package MediaWiki
  * @subpackage Language
  */

require_once( 'LanguageUtf8.php');

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

class LanguageFo extends LanguageUtf8 {
	private $mMessagesFo, $mNamespaceNamesFo = null;
	
	private $mQuickbarSettingsFo = array(
		'Eingin', 'Fast vinstru', 'Fast høgru', 'Flótandi vinstru'
	);
	
	private $mSkinNamesFo = array(
		'Standardur', 'Nostalgiskur', 'Cologne-bláur', 'Paddington', 'Montparnasse'
	);
	
	private $mBookstoreListFo = array(
		'Bokasolan.fo' => 'http://www.bokasolan.fo/vleitari.asp?haattur=bok.alfa&Heiti=&Hovindur=&Forlag=&innbinding=Oell&bolkur=Allir&prisur=Allir&Aarstal=Oell&mal=Oell&status=Oell&ISBN=$1',
	);

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

		global $wgAllMessagesFo;
		$this->mMessagesFo =& $wgAllMessagesFo;

		global $wgMetaNamespace;
		$this->mNamespaceNamesFo = array(
			NS_MEDIA            => 'Miðil',
			NS_SPECIAL          => 'Serstakur',
			NS_MAIN             => '',
			NS_TALK             => 'Kjak',
			NS_USER             => 'Brúkari',
			NS_USER_TALK        => 'Brúkari_kjak',
			NS_PROJECT          => $wgMetaNamespace,
			NS_PROJECT_TALK     => $wgMetaNamespace . '_kjak',
			NS_IMAGE            => 'Mynd',
			NS_IMAGE_TALK       => 'Mynd_kjak',
			NS_MEDIAWIKI        => 'MidiaWiki',
			NS_MEDIAWIKI_TALK   => 'MidiaWiki_kjak',
			NS_TEMPLATE         => 'Fyrimynd',
			NS_TEMPLATE_TALK    => 'Fyrimynd_kjak',
			NS_HELP             => 'Hjálp',
			NS_HELP_TALK        => 'Hjálp_kjak',
			NS_CATEGORY         => 'Bólkur',
			NS_CATEGORY_TALK    => 'Bólkur_kjak'
		);

	}

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

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

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

	function getBookstoreList() {
		return $this->mBookstoreListFo + parent::getBookstoreList();
	}

	function getDateFormats() {
		return false;
	}

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

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

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

	function timeBeforeDate() {
		return false;
	}

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

	function formatDay( $day, $format ) {
		return $this->formatNum( 0 + $day, true ) . '.';
	}

}

?>