summaryrefslogtreecommitdiff
path: root/languages/LanguageSq.php
blob: 3ec5734fb9dda7aea0df4b1c8f337db67e49a5ee (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
110
111
112
<?php
/** Albanian (Shqip)
 *
 * @package MediaWiki
 * @subpackage Language
 */

require_once( "LanguageUtf8.php" );

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

class LanguageSq extends LanguageUtf8 {
	private $mMessagesSq, $mNamespaceNamesSq = null;

	private $mQuickbarSettingsSq = array(
		'Asnjë', 'Lidhur majtas', 'Lidhur djathtas', 'Pezull majtas', 'Pezull djathtas'
	);
	
	private $mSkinNamesSq = array(
		'standard' => "Standarte",
		'nostalgia' => "Nostalgjike",
		'cologneblue' => "Kolonjë Blu"
	);

	private $mDateFormatsSq = array(
		MW_DATE_DEFAULT => 'No preference',
		MW_DATE_DMY => '16:12, 15 January 2001',
		MW_DATE_ISO => '2001-01-15 16:12:34'
	);

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

		global $wgAllMessagesSq;
		$this->mMessagesSq =& $wgAllMessagesSq;

		global $wgMetaNamespace;
		$this->mNamespaceNamesSq = array(
			NS_MEDIA          => "Media",
			NS_SPECIAL        => "Speciale",
			NS_MAIN           => "",
			NS_TALK           => "Diskutim",
			NS_USER           => "Përdoruesi",
			NS_USER_TALK      => "Përdoruesi_diskutim",
			NS_PROJECT        => $wgMetaNamespace,
			NS_PROJECT_TALK   => $wgMetaNamespace . "_diskutim",
			NS_IMAGE          => "Figura",
			NS_IMAGE_TALK     => "Figura_diskutim",
			NS_MEDIAWIKI      => "MediaWiki",
			NS_MEDIAWIKI_TALK => "MediaWiki_diskutim",
			NS_TEMPLATE       => "Stampa",
			NS_TEMPLATE_TALK  => "Stampa_diskutim",
			NS_HELP           => 'Ndihmë',
			NS_HELP_TALK      => 'Ndihmë_diskutim'
		);
	}

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

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

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

	function getDateFormats() {
		return $this->mDateFormatsSq;
	}

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

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

	function getNsIndex( $text ) {
		foreach ( $this->mNamespaceNamesSq as $i => $n ) {
			if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
		}
		# Compatbility with alt names:
		if( 0 == strcasecmp( "Perdoruesi", $text ) ) return NS_USER;
		if( 0 == strcasecmp( "Perdoruesi_diskutim", $text ) ) return NS_USER_TALK;
		return false;
	}

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


	function timeBeforeDate( $format ) {
		return false;
	}

	function separatorTransformTable() {
		return array(',' => '.', '.' => ',' );
	}

}
?>