3ec5734fb9dda7aea0df4b1c8f337db67e49a5ee
[lhc/web/wiklou.git] / languages / LanguageSq.php
1 <?php
2 /** Albanian (Shqip)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 require_once( "LanguageUtf8.php" );
9
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesSq.php');
12 }
13
14 class LanguageSq extends LanguageUtf8 {
15 private $mMessagesSq, $mNamespaceNamesSq = null;
16
17 private $mQuickbarSettingsSq = array(
18 'Asnjë', 'Lidhur majtas', 'Lidhur djathtas', 'Pezull majtas', 'Pezull djathtas'
19 );
20
21 private $mSkinNamesSq = array(
22 'standard' => "Standarte",
23 'nostalgia' => "Nostalgjike",
24 'cologneblue' => "Kolonjë Blu"
25 );
26
27 private $mDateFormatsSq = array(
28 MW_DATE_DEFAULT => 'No preference',
29 MW_DATE_DMY => '16:12, 15 January 2001',
30 MW_DATE_ISO => '2001-01-15 16:12:34'
31 );
32
33 function __construct() {
34 parent::__construct();
35
36 global $wgAllMessagesSq;
37 $this->mMessagesSq =& $wgAllMessagesSq;
38
39 global $wgMetaNamespace;
40 $this->mNamespaceNamesSq = array(
41 NS_MEDIA => "Media",
42 NS_SPECIAL => "Speciale",
43 NS_MAIN => "",
44 NS_TALK => "Diskutim",
45 NS_USER => "Përdoruesi",
46 NS_USER_TALK => "Përdoruesi_diskutim",
47 NS_PROJECT => $wgMetaNamespace,
48 NS_PROJECT_TALK => $wgMetaNamespace . "_diskutim",
49 NS_IMAGE => "Figura",
50 NS_IMAGE_TALK => "Figura_diskutim",
51 NS_MEDIAWIKI => "MediaWiki",
52 NS_MEDIAWIKI_TALK => "MediaWiki_diskutim",
53 NS_TEMPLATE => "Stampa",
54 NS_TEMPLATE_TALK => "Stampa_diskutim",
55 NS_HELP => 'Ndihmë',
56 NS_HELP_TALK => 'Ndihmë_diskutim'
57 );
58 }
59
60 function getNamespaces() {
61 return $this->mNamespaceNamesSq + parent::getNamespaces();
62 }
63
64 function getQuickbarSettings() {
65 return $this->mQuickbarSettingsSq;
66 }
67
68 function getSkinNames() {
69 return $this->mSkinNamesSq + parent::getSkinNames();
70 }
71
72 function getDateFormats() {
73 return $this->mDateFormatsSq;
74 }
75
76 function getMessage( $key ) {
77 if( isset( $this->mMessagesSq[$key] ) ) {
78 return $this->mMessagesSq[$key];
79 } else {
80 return parent::getMessage( $key );
81 }
82 }
83
84 function getAllMessages() {
85 return $this->mMessagesSq;
86 }
87
88 function getNsIndex( $text ) {
89 foreach ( $this->mNamespaceNamesSq as $i => $n ) {
90 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
91 }
92 # Compatbility with alt names:
93 if( 0 == strcasecmp( "Perdoruesi", $text ) ) return NS_USER;
94 if( 0 == strcasecmp( "Perdoruesi_diskutim", $text ) ) return NS_USER_TALK;
95 return false;
96 }
97
98 function timeDateSeparator( $format ) {
99 return ' ';
100 }
101
102
103 function timeBeforeDate( $format ) {
104 return false;
105 }
106
107 function separatorTransformTable() {
108 return array(',' => '.', '.' => ',' );
109 }
110
111 }
112 ?>