8a7c9c01b37b549e633fc975612d3aa80ce4a9c4
[lhc/web/wiklou.git] / languages / LanguageSc.php
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Language
5 */
6
7 require_once( "LanguageUtf8.php" );
8
9 /* private */ $wgNamespaceNamesSc = array(
10 NS_SPECIAL => 'Speciale',
11 NS_MAIN => '',
12 NS_TALK => 'Contièndha',
13 NS_USER => 'Utente',
14 NS_USER_TALK => 'Utente_discussioni',
15 NS_PROJECT => $wgMetaNamespace,
16 NS_PROJECT_TALK => $wgMetaNamespace . '_discussioni',
17 NS_IMAGE => 'Immàgini',
18 NS_IMAGE_TALK => 'Immàgini_contièndha'
19 ) + $wgNamespaceNamesEn;
20
21 /* private */ $wgQuickbarSettingsSc = array(
22 "Nessuno", "Fisso a sinistra", "Fisso a destra", "Fluttuante a sinistra"
23 );
24
25 if (!$wgCachedMessageArrays) {
26 require_once('MessagesSc.php');
27 }
28
29 class LanguageSc extends LanguageUtf8 {
30
31 function getNamespaces() {
32 global $wgNamespaceNamesSc;
33 return $wgNamespaceNamesSc;
34 }
35
36 function getQuickbarSettings() {
37 global $wgQuickbarSettingsSc;
38 return $wgQuickbarSettingsSc;
39 }
40
41 function formatMonth( $month, $format ) {
42 return $this->getMonthAbbreviation( $month );
43 }
44
45 function getMessage( $key ) {
46 global $wgAllMessagesSc;
47 if(array_key_exists($key, $wgAllMessagesSc))
48 return $wgAllMessagesSc[$key];
49 else
50 return parent::getMessage($key);
51 }
52
53 }
54
55 ?>