summaryrefslogtreecommitdiff
path: root/languages/LanguageSc.php
blob: 8a7c9c01b37b549e633fc975612d3aa80ce4a9c4 (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
<?php
/**
  * @package MediaWiki
  * @subpackage Language
  */

require_once( "LanguageUtf8.php" );

/* private */ $wgNamespaceNamesSc = array(
	NS_SPECIAL         => 'Speciale',
	NS_MAIN            => '',
	NS_TALK            => 'Contièndha',
	NS_USER            => 'Utente',
	NS_USER_TALK       => 'Utente_discussioni',
	NS_PROJECT         => $wgMetaNamespace,
	NS_PROJECT_TALK    => $wgMetaNamespace . '_discussioni',
	NS_IMAGE           => 'Immàgini',
	NS_IMAGE_TALK      => 'Immàgini_contièndha'
) + $wgNamespaceNamesEn;

/* private */ $wgQuickbarSettingsSc = array(
	"Nessuno", "Fisso a sinistra", "Fisso a destra", "Fluttuante a sinistra"
);

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

class LanguageSc extends LanguageUtf8 {

	function getNamespaces() {
		global $wgNamespaceNamesSc;
		return $wgNamespaceNamesSc;
	}

	function getQuickbarSettings() {
		global $wgQuickbarSettingsSc;
		return $wgQuickbarSettingsSc;
	}

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

	function getMessage( $key ) {
		global $wgAllMessagesSc;
		if(array_key_exists($key, $wgAllMessagesSc))
			return $wgAllMessagesSc[$key];
		else
			return parent::getMessage($key);
	}

}

?>