r12508 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12507‎ | r12508 | r12509 >
Date:12:29, 8 January 2006
Author:hashar
Status:old
Tags:
Comment:
Bug #4251: Support for venitian
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/languages/LanguageVec.php (added) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES
@@ -413,8 +413,8 @@
414414 * (bug 4507) Adjust FULLPAGENAMEE escaping to standard form
415415 * Blocked users can no longer roll back, change the protection of, or delete/undelete pages
416416 * Protect against spoofing of X-Forwarded-For header
 417+* Support for venitian language
417418
418 -
419419 === Caveats ===
420420
421421 Some output, particularly involving user-supplied inline HTML, may not
Index: trunk/phase3/languages/LanguageVec.php
@@ -0,0 +1,56 @@
 2+<?php
 3+/** Venitian ( Vèneto )
 4+ *
 5+ * @package MediaWiki
 6+ * @subpackage Language
 7+ */
 8+
 9+require_once( 'LanguageIt.php' );
 10+
 11+/* private */ $wgNamespaceNamesVec = array(
 12+ NS_MEDIA => 'Media',
 13+ NS_SPECIAL => 'Speciale',
 14+ NS_MAIN => '',
 15+ NS_TALK => 'Discussion',
 16+ NS_USER => 'Utente',
 17+ NS_USER_TALK => 'Discussion_utente',
 18+ NS_PROJECT => $wgMetaNamespace,
 19+ NS_PROJECT_TALK => 'Discussion_'.$wgMetaNamespace,
 20+ NS_IMAGE => 'Imagine',
 21+ NS_IMAGE_TALK => 'Discussion_imagine',
 22+ NS_MEDIAWIKI => 'MediaWiki',
 23+ NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki',
 24+ NS_TEMPLATE => 'Template',
 25+ NS_TEMPLATE_TALK => 'Discussion_template',
 26+ NS_HELP => 'Aiuto',
 27+ NS_HELP_TALK => 'Discussion_aiuto',
 28+ NS_CATEGORY => 'Categoria',
 29+ NS_CATEGORY_TALK => 'Discussion_categoria'
 30+);
 31+
 32+/* private */ $wgQuickbarSettingsIt = array(
 33+ 'Nessun', 'Fisso a sinistra', 'Fisso a destra', 'Fluttuante a sinistra'
 34+);
 35+
 36+class LanguageVec extends LanguageIt {
 37+ #FIXME: inherit almost everything for now
 38+
 39+ function getNamespaces() {
 40+ global $wgNamespaceNamesVec;
 41+ return $wgNamespaceNamesVec;
 42+ }
 43+
 44+ function getQuickbarSettings() {
 45+ global $wgQuickbarSettingsVec;
 46+ return $wgQuickbarSettingsVec;
 47+ }
 48+
 49+ function getMessage( $key ) {
 50+ global $wgAllMessagesVec;
 51+ if(array_key_exists($key, $wgAllMessagesVec))
 52+ return $wgAllMessagesVec[$key];
 53+ else
 54+ return parent::getMessage($key);
 55+ }
 56+}
 57+?>
Property changes on: trunk/phase3/languages/LanguageVec.php
___________________________________________________________________
Added: svn:eol-style
158 + native
Added: svn:keywords
259 + Author Date Id Revision

Status & tagging log