r14692 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14691‎ | r14692 | r14693 >
Date:22:16, 9 June 2006
Author:nikerabbit
Status:old
Tags:
Comment:
* Restructured
Modified paths:
  • /trunk/phase3/languages/LanguageIa.php (modified) (history)
  • /trunk/phase3/languages/MessagesIa.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageIa.php
@@ -1,71 +1,81 @@
22 <?php
3 -/**
4 - * @package MediaWiki
5 - * @subpackage Language
6 - */
 3+/** Interlingua (Interlingua)
 4+ *
 5+ * @package MediaWiki
 6+ * @subpackage Language
 7+ */
78
8 -/* private */ $wgNamespaceNamesIa = array(
9 - NS_MEDIA => "Media",
10 - NS_SPECIAL => "Special",
11 - NS_MAIN => "",
12 - NS_TALK => "Discussion",
13 - NS_USER => "Usator",
14 - NS_USER_TALK => "Discussion_Usator",
15 - NS_PROJECT => $wgMetaNamespace,
16 - NS_PROJECT_TALK => "Discussion_". $wgMetaNamespace,
17 - NS_IMAGE => "Imagine",
18 - NS_IMAGE_TALK => "Discussion_Imagine",
19 - NS_MEDIAWIKI => "MediaWiki",
20 - NS_MEDIAWIKI_TALK => "Discussion_MediaWiki",
21 - NS_TEMPLATE => "Patrono",
22 - NS_TEMPLATE_TALK => "Discussion_Patrono",
23 - NS_HELP => 'Adjuta',
24 - NS_HELP_TALK => 'Discussion_Adjuta',
25 - NS_CATEGORY => 'Categoria',
26 - NS_CATEGORY_TALK => 'Discussion_Categoria'
27 -) + $wgNamespaceNamesEn;
 9+require_once( 'LanguageUtf8.php' );
2810
29 -/* private */ $wgQuickbarSettingsIa = array(
30 - "Nulle", "Fixe a sinistra", "Fixe a dextera", "Flottante a sinistra"
31 -);
32 -
33 -/* private */ $wgSkinNamesIa = array(
34 - 'cologneblue' => "Blau Colonia",
35 -) + $wgSkinNamesEn;
36 -
37 -
3811 if (!$wgCachedMessageArrays) {
3912 require_once('MessagesIa.php');
4013 }
4114
42 -require_once( "LanguageUtf8.php" );
43 -
4415 class LanguageIa extends LanguageUtf8 {
 16+ private $mMessagesIa, $mNamespaceNamesIa = null;
4517
 18+ private $mQuickbarSettingsIa = array(
 19+ 'Nulle', 'Fixe a sinistra', 'Fixe a dextera', 'Flottante a sinistra'
 20+ );
 21+
 22+ private $mSkinNamesIa = array(
 23+ 'cologneblue' => 'Blau Colonia',
 24+ );
 25+
 26+
 27+ function LanguageIa() {
 28+ LanguageUtf8::LanguageUtf8();
 29+
 30+ global $wgAllMessagesIa;
 31+ $this->mMessagesIa =& $wgAllMessagesIa;
 32+
 33+ global $wgMetaNamespace;
 34+ $this->mNamespaceNamesIa = array(
 35+ NS_MEDIA => 'Media',
 36+ NS_SPECIAL => 'Special',
 37+ NS_MAIN => '',
 38+ NS_TALK => 'Discussion',
 39+ NS_USER => 'Usator',
 40+ NS_USER_TALK => 'Discussion_Usator',
 41+ NS_PROJECT => $wgMetaNamespace,
 42+ NS_PROJECT_TALK => 'Discussion_'. $wgMetaNamespace,
 43+ NS_IMAGE => 'Imagine',
 44+ NS_IMAGE_TALK => 'Discussion_Imagine',
 45+ NS_MEDIAWIKI => 'MediaWiki',
 46+ NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki',
 47+ NS_TEMPLATE => 'Patrono',
 48+ NS_TEMPLATE_TALK => 'Discussion_Patrono',
 49+ NS_HELP => 'Adjuta',
 50+ NS_HELP_TALK => 'Discussion_Adjuta',
 51+ NS_CATEGORY => 'Categoria',
 52+ NS_CATEGORY_TALK => 'Discussion_Categoria'
 53+ );
 54+
 55+ }
 56+
4657 function getNamespaces() {
47 - global $wgNamespaceNamesIa;
48 - return $wgNamespaceNamesIa;
 58+ return $this->mNamespaceNamesIa + parent::getNamespaces();
4959 }
5060
5161 function getQuickbarSettings() {
52 - global $wgQuickbarSettingsIa;
53 - return $wgQuickbarSettingsIa;
 62+ return $this->mQuickbarSettingsIa;
5463 }
5564
5665 function getSkinNames() {
57 - global $wgSkinNamesIa;
58 - return $wgSkinNamesIa;
 66+ return $this->mSkinNamesIa + parent::getSkinNames();
5967 }
6068
6169 function getMessage( $key ) {
62 - global $wgAllMessagesIa;
63 - if( isset( $wgAllMessagesIa[$key] ) ) {
64 - return $wgAllMessagesIa[$key];
 70+ if( isset( $this->mMessagesIa[$key] ) ) {
 71+ return $this->mMessagesIa[$key];
6572 } else {
6673 return parent::getMessage( $key );
6774 }
6875 }
6976
 77+ function getAllMessages() {
 78+ return $this->mMessagesIa;
 79+ }
7080
7181 }
7282
Index: trunk/phase3/languages/MessagesIa.php
@@ -1,8 +1,8 @@
22 <?php
33
 4+global $wgAllMessagesIa;
 5+$wgAllMessagesIa = array(
46
5 -/* private */ $wgAllMessagesIa = array(
6 -
77 # User Toggles
88 #
99

Status & tagging log