8 require_once( "LanguageUtf8.php" );
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesSq.php');
14 class LanguageSq
extends LanguageUtf8
{
15 private $mMessagesSq, $mNamespaceNamesSq = null;
17 private $mQuickbarSettingsSq = array(
18 'Asnjë', 'Lidhur majtas', 'Lidhur djathtas', 'Pezull majtas', 'Pezull djathtas'
21 private $mSkinNamesSq = array(
22 'standard' => "Standarte",
23 'nostalgia' => "Nostalgjike",
24 'cologneblue' => "Kolonjë Blu"
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'
33 function __construct() {
34 parent
::__construct();
36 global $wgAllMessagesSq;
37 $this->mMessagesSq
=& $wgAllMessagesSq;
39 global $wgMetaNamespace;
40 $this->mNamespaceNamesSq
= array(
42 NS_SPECIAL
=> "Speciale",
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",
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",
56 NS_HELP_TALK
=> 'Ndihmë_diskutim'
60 function getNamespaces() {
61 return $this->mNamespaceNamesSq + parent
::getNamespaces();
64 function getQuickbarSettings() {
65 return $this->mQuickbarSettingsSq
;
68 function getSkinNames() {
69 return $this->mSkinNamesSq + parent
::getSkinNames();
72 function getDateFormats() {
73 return $this->mDateFormatsSq
;
76 function getMessage( $key ) {
77 if( isset( $this->mMessagesSq
[$key] ) ) {
78 return $this->mMessagesSq
[$key];
80 return parent
::getMessage( $key );
84 function getAllMessages() {
85 return $this->mMessagesSq
;
88 function getNsIndex( $text ) {
89 foreach ( $this->mNamespaceNamesSq
as $i => $n ) {
90 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
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
;
98 function timeDateSeparator( $format ) {
103 function timeBeforeDate( $format ) {
107 function separatorTransformTable() {
108 return array(',' => '.', '.' => ',' );