summaryrefslogtreecommitdiff
path: root/languages/LanguageIt.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
commit183851b06bd6c52f3cae5375f433da720d410447 (patch)
treea477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageIt.php
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageIt.php')
-rw-r--r--languages/LanguageIt.php84
1 files changed, 84 insertions, 0 deletions
diff --git a/languages/LanguageIt.php b/languages/LanguageIt.php
new file mode 100644
index 00000000..b0554c15
--- /dev/null
+++ b/languages/LanguageIt.php
@@ -0,0 +1,84 @@
+<?php
+/** Italian (Italiano)
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ */
+
+require_once( 'LanguageUtf8.php' );
+
+if (!$wgCachedMessageArrays) {
+ require_once('MessagesIt.php');
+}
+
+class LanguageIt extends LanguageUtf8 {
+ private $mMessagesIt, $mNamespaceNamesIt = null;
+
+ private $mQuickbarSettingsIt = array(
+ 'Nessuno', 'Fisso a sinistra', 'Fisso a destra', 'Fluttuante a sinistra'
+ );
+
+ function __construct() {
+ parent::__construct();
+
+ global $wgAllMessagesIt;
+ $this->mMessagesIt =& $wgAllMessagesIt;
+
+ global $wgMetaNamespace;
+ $this->mNamespaceNamesIt = array(
+ NS_MEDIA => 'Media',
+ NS_SPECIAL => 'Speciale',
+ NS_MAIN => '',
+ NS_TALK => 'Discussione',
+ NS_USER => 'Utente',
+ NS_USER_TALK => 'Discussioni_utente',
+ NS_PROJECT => $wgMetaNamespace,
+ NS_PROJECT_TALK => 'Discussioni_' . $wgMetaNamespace,
+ NS_IMAGE => 'Immagine',
+ NS_IMAGE_TALK => 'Discussioni_immagine',
+ NS_MEDIAWIKI => 'MediaWiki',
+ NS_MEDIAWIKI_TALK => 'Discussioni_MediaWiki',
+ NS_TEMPLATE => 'Template',
+ NS_TEMPLATE_TALK => 'Discussioni_template',
+ NS_HELP => 'Aiuto',
+ NS_HELP_TALK => 'Discussioni_aiuto',
+ NS_CATEGORY => 'Categoria',
+ NS_CATEGORY_TALK => 'Discussioni_categoria'
+ );
+
+ }
+
+ function getNamespaces() {
+ return $this->mNamespaceNamesIt + parent::getNamespaces();
+ }
+
+ function getQuickbarSettings() {
+ return $this->mQuickbarSettingsIt;
+ }
+
+ function getMessage( $key ) {
+ if( isset( $this->mMessagesIt[$key] ) ) {
+ return $this->mMessagesIt[$key];
+ } else {
+ return parent::getMessage( $key );
+ }
+ }
+
+ function getAllMessages() {
+ return $this->mMessagesIt;
+ }
+
+ function formatMonth( $month, $format ) {
+ return $this->getMonthAbbreviation( $month );
+ }
+
+ /**
+ * Italian numeric format is 201.511,17
+ */
+ function separatorTransformTable() {
+ return array(',' => '.', '.' => ',' );
+ }
+
+}
+
+?>