7 require_once("LanguageUtf8.php");
9 /* private */ $wgNamespaceNamesSq = array(
11 NS_SPECIAL
=> "Speciale",
13 NS_TALK
=> "Diskutim",
14 NS_USER
=> "Përdoruesi",
15 NS_USER_TALK
=> "Përdoruesi_diskutim",
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> $wgMetaNamespace . "_diskutim",
19 NS_IMAGE_TALK
=> "Figura_diskutim",
20 NS_MEDIAWIKI
=> "MediaWiki",
21 NS_MEDIAWIKI_TALK
=> "MediaWiki_diskutim",
22 NS_TEMPLATE
=> "Stampa",
23 NS_TEMPLATE_TALK
=> "Stampa_diskutim",
25 NS_HELP_TALK
=> 'Ndihmë_diskutim'
26 ) +
$wgNamespaceNamesEn;
28 /* private */ $wgQuickbarSettingsSq = array(
29 "Asgjë", "Lidhur majtas", "Lidhur djathtas", "Fluturo majtas"
32 /* private */ $wgSkinNamesSq = array(
33 'standard' => "Standarte",
34 'nostalgia' => "Nostalgjike",
35 'cologneblue' => "Kolonjë Blu"
39 /* private */ $wgDateFormatsSq = array(
43 if (!$wgCachedMessageArrays) {
44 require_once('MessagesSq.php');
47 class LanguageSq
extends LanguageUtf8
{
49 function getNamespaces() {
50 global $wgNamespaceNamesSq;
51 return $wgNamespaceNamesSq;
54 function getNsIndex( $text ) {
55 global $wgNamespaceNamesSq;
56 foreach ( $wgNamespaceNamesSq as $i => $n ) {
57 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
59 # Compatbility with alt names:
60 if( 0 == strcasecmp( "Perdoruesi", $text ) ) return 2;
61 if( 0 == strcasecmp( "Perdoruesi_diskutim", $text ) ) return 3;
65 function getQuickbarSettings() {
66 global $wgQuickbarSettingsSq;
67 return $wgQuickbarSettingsSq;
70 function getSkinNames() {
71 global $wgSkinNamesSq;
72 return $wgSkinNamesSq;
75 function getDateFormats() {
76 global $wgDateFormatsSq;
77 return $wgDateFormatsSq;
80 # localised date and time
81 function date( $ts, $adj = false ) {
82 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
84 $d = substr( $ts, 0, 4 ) . " " .
85 $this->getMonthName( substr( $ts, 4, 2 ) ) . " ".
86 (0 +
substr( $ts, 6, 2 ));
90 function time( $ts, $adj = false ) {
91 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
93 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
97 function timeanddate( $ts, $adj = false ) {
98 return $this->date( $ts, $adj ) . " " . $this->time( $ts, $adj );
101 function getMessage( $key ) {
102 global $wgAllMessagesSq;
103 if(array_key_exists($key, $wgAllMessagesSq))
104 return $wgAllMessagesSq[$key];
106 return parent
::getMessage($key);
109 function formatNum( $number ) {
110 global $wgTranslateNumerals;
111 return $wgTranslateNumerals ?
strtr($number, '.,', ',.' ) : $number;