summaryrefslogtreecommitdiff
path: root/languages/LanguageOc.php
blob: 7bbe2d967fe1342d9329eb55bea6eb97f4451558 (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
/** Occitan (Occitan)
 *
 * @package MediaWiki
 * @subpackage Language
 */

require_once( "LanguageUtf8.php" );

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

class LanguageOc extends LanguageUtf8 {
	private $mMessagesOc, $mNamespaceNamesOc;
	
	private $mQuickbarSettingsOc = array(
		'Cap', 'Esquèr', 'Drech', 'Flotejant a esquèr'
	);
	
	private $mSkinNamesOc = array(
		'standard' => 'Normal',
		'nostalgia' => 'Nostalgia',
		'cologneblue' => 'Còlonha Blau',
	);
	
	private $mBookstoreListOc = array(
		'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1'
	);

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

		global $wgAllMessagesOc;
		$this->mMessagesOc =& $wgAllMessagesOc;

		global $wgMetaNamespace;
		$this->mNamespaceNamesOc = array(
			NS_SPECIAL        => 'Especial',
			NS_MAIN           => '',
			NS_TALK           => 'Discutir',
			NS_USER           => 'Utilisator',
			NS_USER_TALK      => 'Discutida_Utilisator',
			NS_PROJECT        => $wgMetaNamespace,
			NS_PROJECT_TALK   => 'Discutida_'.$wgMetaNamespace,
			NS_IMAGE          => 'Imatge',
			NS_IMAGE_TALK     => 'Discutida_Imatge',
			NS_MEDIAWIKI      => 'Mediaòiqui',
			NS_MEDIAWIKI_TALK => 'Discutida_Mediaòiqui',
			NS_TEMPLATE       => 'Modèl',
			NS_TEMPLATE_TALK  => 'Discutida_Modèl',
			NS_HELP           => 'Ajuda',
			NS_HELP_TALK      => 'Discutida_Ajuda',
			NS_CATEGORY       => 'Categoria',
			NS_CATEGORY_TALK  => 'Discutida_Categoria',
		);
	}

	function getBookstoreList () {
		return $this->mBookstoreListOc;
	}

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

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

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

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

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

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

	function timeBeforeDate() {
		return false;
	}

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

}

?>