Rename "searchquery" to "searchsubtitle" in all remaining language files
[lhc/web/wiklou.git] / languages / LanguageIt.php
1 <?php
2 /** Italian (Italiano)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 require_once( 'LanguageUtf8.php' );
9
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesIt.php');
12 }
13
14 class LanguageIt extends LanguageUtf8 {
15 private $mMessagesIt, $mNamespaceNamesIt = null;
16
17 private $mQuickbarSettingsIt = array(
18 'Nessuno', 'Fisso a sinistra', 'Fisso a destra', 'Fluttuante a sinistra'
19 );
20
21 function __construct() {
22 parent::__construct();
23
24 global $wgAllMessagesIt;
25 $this->mMessagesIt =& $wgAllMessagesIt;
26
27 global $wgMetaNamespace;
28 $this->mNamespaceNamesIt = array(
29 NS_MEDIA => 'Media',
30 NS_SPECIAL => 'Speciale',
31 NS_MAIN => '',
32 NS_TALK => 'Discussione',
33 NS_USER => 'Utente',
34 NS_USER_TALK => 'Discussioni_utente',
35 NS_PROJECT => $wgMetaNamespace,
36 NS_PROJECT_TALK => 'Discussioni_' . $wgMetaNamespace,
37 NS_IMAGE => 'Immagine',
38 NS_IMAGE_TALK => 'Discussioni_immagine',
39 NS_MEDIAWIKI => 'MediaWiki',
40 NS_MEDIAWIKI_TALK => 'Discussioni_MediaWiki',
41 NS_TEMPLATE => 'Template',
42 NS_TEMPLATE_TALK => 'Discussioni_template',
43 NS_HELP => 'Aiuto',
44 NS_HELP_TALK => 'Discussioni_aiuto',
45 NS_CATEGORY => 'Categoria',
46 NS_CATEGORY_TALK => 'Discussioni_categoria'
47 );
48
49 }
50
51 function getNamespaces() {
52 return $this->mNamespaceNamesIt + parent::getNamespaces();
53 }
54
55 function getQuickbarSettings() {
56 return $this->mQuickbarSettingsIt;
57 }
58
59 function getMessage( $key ) {
60 if( isset( $this->mMessagesIt[$key] ) ) {
61 return $this->mMessagesIt[$key];
62 } else {
63 return parent::getMessage( $key );
64 }
65 }
66
67 function getAllMessages() {
68 return $this->mMessagesIt;
69 }
70
71 function formatMonth( $month, $format ) {
72 return $this->getMonthAbbreviation( $month );
73 }
74
75 /**
76 * Italian numeric format is 201.511,17
77 */
78 function separatorTransformTable() {
79 return array(',' => '.', '.' => ',' );
80 }
81
82 }
83
84 ?>