Index: trunk/phase3/languages/LanguageIa.php |
— | — | @@ -1,71 +1,81 @@ |
2 | 2 | <?php |
3 | | -/** |
4 | | - * @package MediaWiki |
5 | | - * @subpackage Language |
6 | | - */ |
| 3 | +/** Interlingua (Interlingua) |
| 4 | + * |
| 5 | + * @package MediaWiki |
| 6 | + * @subpackage Language |
| 7 | + */ |
7 | 8 | |
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' ); |
28 | 10 | |
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 | | - |
38 | 11 | if (!$wgCachedMessageArrays) { |
39 | 12 | require_once('MessagesIa.php'); |
40 | 13 | } |
41 | 14 | |
42 | | -require_once( "LanguageUtf8.php" ); |
43 | | - |
44 | 15 | class LanguageIa extends LanguageUtf8 { |
| 16 | + private $mMessagesIa, $mNamespaceNamesIa = null; |
45 | 17 | |
| 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 | + |
46 | 57 | function getNamespaces() { |
47 | | - global $wgNamespaceNamesIa; |
48 | | - return $wgNamespaceNamesIa; |
| 58 | + return $this->mNamespaceNamesIa + parent::getNamespaces(); |
49 | 59 | } |
50 | 60 | |
51 | 61 | function getQuickbarSettings() { |
52 | | - global $wgQuickbarSettingsIa; |
53 | | - return $wgQuickbarSettingsIa; |
| 62 | + return $this->mQuickbarSettingsIa; |
54 | 63 | } |
55 | 64 | |
56 | 65 | function getSkinNames() { |
57 | | - global $wgSkinNamesIa; |
58 | | - return $wgSkinNamesIa; |
| 66 | + return $this->mSkinNamesIa + parent::getSkinNames(); |
59 | 67 | } |
60 | 68 | |
61 | 69 | 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]; |
65 | 72 | } else { |
66 | 73 | return parent::getMessage( $key ); |
67 | 74 | } |
68 | 75 | } |
69 | 76 | |
| 77 | + function getAllMessages() { |
| 78 | + return $this->mMessagesIa; |
| 79 | + } |
70 | 80 | |
71 | 81 | } |
72 | 82 | |
Index: trunk/phase3/languages/MessagesIa.php |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +global $wgAllMessagesIa; |
| 5 | +$wgAllMessagesIa = array( |
4 | 6 | |
5 | | -/* private */ $wgAllMessagesIa = array( |
6 | | - |
7 | 7 | # User Toggles |
8 | 8 | # |
9 | 9 | |