Bug #4251: Support for venitian
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 8 Jan 2006 12:29:18 +0000 (12:29 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 8 Jan 2006 12:29:18 +0000 (12:29 +0000)
RELEASE-NOTES
languages/LanguageVec.php [new file with mode: 0644]

index 9245c39..6d49e11 100644 (file)
@@ -413,7 +413,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * (bug 4507) Adjust FULLPAGENAMEE escaping to standard form
 * Blocked users can no longer roll back, change the protection of, or delete/undelete pages
 * Protect against spoofing of X-Forwarded-For header
-
+* Support for venitian language
 
 === Caveats ===
 
diff --git a/languages/LanguageVec.php b/languages/LanguageVec.php
new file mode 100644 (file)
index 0000000..f4c0102
--- /dev/null
@@ -0,0 +1,56 @@
+<?php
+/** Venitian ( Vèneto )
+  *
+  * @package MediaWiki
+  * @subpackage Language
+  */
+
+require_once( 'LanguageIt.php' );
+
+/* private */ $wgNamespaceNamesVec = array(
+       NS_MEDIA            => 'Media',
+       NS_SPECIAL          => 'Speciale',
+       NS_MAIN             => '',
+       NS_TALK             => 'Discussion',
+       NS_USER             => 'Utente',
+       NS_USER_TALK        => 'Discussion_utente',
+       NS_PROJECT          => $wgMetaNamespace,
+       NS_PROJECT_TALK     => 'Discussion_'.$wgMetaNamespace,
+       NS_IMAGE            => 'Imagine',
+       NS_IMAGE_TALK       => 'Discussion_imagine',
+       NS_MEDIAWIKI        => 'MediaWiki',
+       NS_MEDIAWIKI_TALK   => 'Discussion_MediaWiki',
+       NS_TEMPLATE         => 'Template',
+       NS_TEMPLATE_TALK    => 'Discussion_template',
+       NS_HELP             => 'Aiuto',
+       NS_HELP_TALK        => 'Discussion_aiuto',
+       NS_CATEGORY         => 'Categoria',
+       NS_CATEGORY_TALK    => 'Discussion_categoria'
+);
+
+/* private */ $wgQuickbarSettingsIt = array(
+       'Nessun', 'Fisso a sinistra', 'Fisso a destra', 'Fluttuante a sinistra'
+);
+
+class LanguageVec extends LanguageIt {
+       #FIXME: inherit almost everything for now
+
+       function getNamespaces() {
+               global $wgNamespaceNamesVec;
+               return $wgNamespaceNamesVec;
+       }
+
+       function getQuickbarSettings() {
+               global $wgQuickbarSettingsVec;
+               return $wgQuickbarSettingsVec;
+       }
+
+       function getMessage( $key ) {
+               global $wgAllMessagesVec;
+               if(array_key_exists($key, $wgAllMessagesVec))
+                       return $wgAllMessagesVec[$key];
+               else
+                       return parent::getMessage($key);
+       }
+}
+?>