Index: trunk/extensions/NumberOfWikis/NumberOfWikis.i18n.magic.php |
— | — | @@ -10,40 +10,40 @@ |
11 | 11 | |
12 | 12 | /** English (English) */ |
13 | 13 | $magicWords['en'] = array( |
14 | | - 'numberofwikis' => array( 0, 'NUMBEROFWIKIS' ), |
| 14 | + 'NUMBEROFWIKIS' => array( 0, 'NUMBEROFWIKIS' ), |
15 | 15 | ); |
16 | 16 | |
17 | 17 | /** German (Deutsch) */ |
18 | 18 | $magicWords['de'] = array( |
19 | | - 'numberofwikis' => array( 0, 'ANZAHLDERWIKIS' ), |
| 19 | + 'NUMBEROFWIKIS' => array( 0, 'ANZAHLDERWIKIS' ), |
20 | 20 | ); |
21 | 21 | |
22 | 22 | /** Finnish (Suomi) */ |
23 | 23 | $magicWords['fi'] = array( |
24 | | - 'numberofwikis' => array( 0, 'WIKIENLUKUMÄÄRÄ' ), |
| 24 | + 'NUMBEROFWIKIS' => array( 0, 'WIKIENLUKUMÄÄRÄ' ), |
25 | 25 | ); |
26 | 26 | |
27 | 27 | /** French (Français) */ |
28 | 28 | $magicWords['fr'] = array( |
29 | | - 'numberofwikis' => array( 0, 'NOMBREWIKIS' ), |
| 29 | + 'NUMBEROFWIKIS' => array( 0, 'NOMBREWIKIS' ), |
30 | 30 | ); |
31 | 31 | |
32 | 32 | /** Dutch (Nederlands) */ |
33 | 33 | $magicWords['nl'] = array( |
34 | | - 'numberofwikis' => array( 0, 'AANTALWIKIS' ), |
| 34 | + 'NUMBEROFWIKIS' => array( 0, 'AANTALWIKIS' ), |
35 | 35 | ); |
36 | 36 | |
37 | 37 | /** Polish (Polski) */ |
38 | 38 | $magicWords['pl'] = array( |
39 | | - 'numberofwikis' => array( 0, 'LICZBAWIKI' ), |
| 39 | + 'NUMBEROFWIKIS' => array( 0, 'LICZBAWIKI' ), |
40 | 40 | ); |
41 | 41 | |
42 | 42 | /** Portuguese (Português) */ |
43 | 43 | $magicWords['pt'] = array( |
44 | | - 'numberofwikis' => array( 0, 'NUMERODEWIKIS' ), |
| 44 | + 'NUMBEROFWIKIS' => array( 0, 'NUMERODEWIKIS' ), |
45 | 45 | ); |
46 | 46 | |
47 | 47 | /** Swedish (Svenska) */ |
48 | 48 | $magicWords['sv'] = array( |
49 | | - 'numberofwikis' => array( 0, 'ANTALWIKIS' ), |
| 49 | + 'NUMBEROFWIKIS' => array( 0, 'ANTALWIKIS' ), |
50 | 50 | ); |
Index: trunk/extensions/NumberOfWikis/NumberOfWikis.php |
— | — | @@ -17,24 +17,15 @@ |
18 | 18 | // Extension credits that will show up on Special:Version |
19 | 19 | $wgExtensionCredits['variable'][] = array( |
20 | 20 | 'name' => 'Number of wikis', |
21 | | - 'version' => '0.2', |
| 21 | + 'version' => '0.3', |
22 | 22 | 'author' => 'Jack Phoenix', |
23 | 23 | 'description' => 'Adds <nowiki>{{NUMBEROFWIKIS}}</nowiki> magic word to show the number of wikis on ShoutWiki', |
24 | 24 | ); |
25 | 25 | |
26 | 26 | // Translations for {{NUMBEROFWIKIS}} |
27 | 27 | $dir = dirname( __FILE__ ) . '/'; |
28 | | -$wgExtensionMessagesFiles['NumberOfWikis'] = $dir . 'NumberOfWikis.i18n.magic.php'; |
| 28 | +$wgExtensionMessagesFiles['NumberOfWikisMagic'] = $dir . 'NumberOfWikis.i18n.magic.php'; |
29 | 29 | |
30 | | -$wgHooks['LanguageGetMagic'][] = 'wfNumberOfWikisMagicWord'; |
31 | | -function wfNumberOfWikisMagicWord( &$magicWords, $langID ) { |
32 | | - // tell MediaWiki that {{NUMBEROFWIKIS}} and all case variants found in |
33 | | - // wiki text should be mapped to magic ID 'NUMBEROFWIKIS' |
34 | | - // (0 means case-insensitive) |
35 | | - $magicWords['NUMBEROFWIKIS'] = array( 0, 'NUMBEROFWIKIS' ); |
36 | | - return true; |
37 | | -} |
38 | | - |
39 | 30 | $wgHooks['ParserGetVariableValueSwitch'][] = 'wfNumberOfWikisAssignValue'; |
40 | 31 | function wfNumberOfWikisAssignValue( &$parser, &$cache, &$magicWordId, &$ret ) { |
41 | 32 | global $wgMemc; |
— | — | @@ -76,4 +67,4 @@ |
77 | 68 | function wfNumberOfWikisVariableIds( &$variableIds ) { |
78 | 69 | $variableIds[] = 'NUMBEROFWIKIS'; |
79 | 70 | return true; |
80 | | -} |
\ No newline at end of file |
| 71 | +} |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.i18n.magic.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalization file for extension. |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$magicWords = array(); |
| 11 | + |
| 12 | +/** English (English) */ |
| 13 | +$magicWords['en'] = array( |
| 14 | + 'ISONLINE' => array( 1, 'ISONLINE' ), |
| 15 | +); |
Property changes on: trunk/extensions/OnlineStatusBar/OnlineStatusBar.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | |
27 | 27 | $dir = dirname( __FILE__ ); |
28 | 28 | $wgExtensionMessagesFiles['OnlineStatusBar'] = "$dir/OnlineStatusBar.i18n.php"; |
| 29 | +$wgExtensionMessagesFiles['OnlineStatusBarMagic'] = "$dir/OnlineStatusBar.i18n.magic.php"; |
29 | 30 | |
30 | 31 | $wgResourceModules['ext.OnlineStatusBar'] = array ( |
31 | 32 | 'skinStyles' => array ( |
— | — | @@ -63,7 +64,6 @@ |
64 | 65 | define( 'ONLINESTATUSBAR_CK_DELAYED', 1 ); |
65 | 66 | define( 'ONLINESTATUSBAR_CK_AWAY', 2 ); |
66 | 67 | |
67 | | - |
68 | 68 | // Configuration |
69 | 69 | // Those values can be overriden in LocalSettings, do not change it here |
70 | 70 | // default for anonymous and uknown users |
— | — | @@ -99,14 +99,12 @@ |
100 | 100 | 'offline' => 'statusred.png', |
101 | 101 | ); |
102 | 102 | |
103 | | - |
104 | 103 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'OnlineStatusBarHooks::ckSchema'; |
105 | 104 | $wgHooks['UserLogout'][] = 'OnlineStatusBarHooks::logout'; |
106 | 105 | $wgHooks['ArticleViewHeader'][] = 'OnlineStatusBarHooks::renderBar'; |
107 | 106 | $wgHooks['UserLoginComplete'][] = 'OnlineStatusBarHooks::updateStatus'; |
108 | 107 | $wgHooks['GetPreferences'][] = 'OnlineStatusBarHooks::preferencesHook'; |
109 | 108 | $wgHooks['UserGetDefaultOptions'][] = 'OnlineStatusBarHooks::setDefaultOptions'; |
110 | | -$wgHooks['LanguageGetMagic'][] = 'OnlineStatusBarHooks::magicWordVar'; |
111 | 109 | $wgHooks['BeforePageDisplay'][] = 'OnlineStatusBarHooks::stylePage'; |
112 | 110 | $wgHooks['MagicWordwgVariableIDs'][] = 'OnlineStatusBarHooks::magicWordSet'; |
113 | 111 | $wgHooks['ParserGetVariableValueSwitch'][] = 'OnlineStatusBarHooks::parserGetVariable'; |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.hooks.php |
— | — | @@ -138,16 +138,6 @@ |
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | | - * @param $magicWords array |
143 | | - * @param $ln string (language) |
144 | | - * @return bool |
145 | | - */ |
146 | | - public static function magicWordVar( array &$magicWords, $ln ) { |
147 | | - $magicWords['ISONLINE'] = array( 1, 'ISONLINE' ); |
148 | | - return true; |
149 | | - } |
150 | | - |
151 | | - /** |
152 | 142 | * @param $out OutputPage |
153 | 143 | * @param $skin Skin |
154 | 144 | * @return bool |
Index: trunk/extensions/PAMELA/PAMELA.i18n.magic.php |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalization file for extension. |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$magicWords = array(); |
| 11 | + |
| 12 | +/** English (English) */ |
| 13 | +$magicWords['en'] = array( |
| 14 | + 'listpeople' => array( 0, 'listpeople' ), |
| 15 | + 'openwidget' => array( 0, 'openwidget' ), |
| 16 | + 'personstatus' => array( 0, 'personstatus' ), |
| 17 | +); |
Property changes on: trunk/extensions/PAMELA/PAMELA.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 18 | + native |
Added: svn:keywords |
2 | 19 | + Id |
Index: trunk/extensions/PAMELA/PAMELA.php |
— | — | @@ -104,14 +104,12 @@ |
105 | 105 | |
106 | 106 | # Required for #listpeople. |
107 | 107 | $wgHooks['ParserFirstCallInit'][] = 'PAMELAListPeople::staticInit'; |
108 | | -$wgHooks['LanguageGetMagic'][] = 'PAMELAListPeople::staticMagic'; |
109 | 108 | # Required for #personstatus. |
110 | 109 | $wgHooks['ParserFirstCallInit'][] = 'PAMELAPersonStatus::staticInit'; |
111 | | -$wgHooks['LanguageGetMagic'][] = 'PAMELAPersonStatus::staticMagic'; |
112 | 110 | # Required for #openwidget. |
113 | 111 | $wgHooks['ParserFirstCallInit'][] = 'PAMELAOpenWidget::staticInit'; |
114 | | -$wgHooks['LanguageGetMagic'][] = 'PAMELAOpenWidget::staticMagic'; |
115 | 112 | |
116 | 113 | $wgExtensionMessagesFiles['PAMELA'] = dirname( __FILE__ ) . '/PAMELA.i18n.php'; |
| 114 | +$wgExtensionMessagesFiles['PAMELAMagic'] = dirname( __FILE__ ) . '/PAMELA.i18n.magic.php'; |
117 | 115 | |
118 | 116 | require_once 'PAMELA.settings.php'; |
Index: trunk/extensions/PAMELA/includes/PAMELA_PersonStatus.php |
— | — | @@ -12,19 +12,9 @@ |
13 | 13 | * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
14 | 14 | */ |
15 | 15 | class PAMELAPersonStatus extends ParserHook { |
16 | | - |
17 | 16 | /** |
18 | 17 | * No LSB in pre-5.3 PHP *sigh*. |
19 | 18 | * This is to be refactored as soon as php >=5.3 becomes acceptable. |
20 | | - */ |
21 | | - public static function staticMagic( array &$magicWords, $langCode ) { |
22 | | - $instance = new self; |
23 | | - return $instance->magic( $magicWords, $langCode ); |
24 | | - } |
25 | | - |
26 | | - /** |
27 | | - * No LSB in pre-5.3 PHP *sigh*. |
28 | | - * This is to be refactored as soon as php >=5.3 becomes acceptable. |
29 | 19 | */ |
30 | 20 | public static function staticInit( Parser &$parser ) { |
31 | 21 | $instance = new self; |
Index: trunk/extensions/PAMELA/includes/PAMELA_ListPeople.php |
— | — | @@ -12,19 +12,9 @@ |
13 | 13 | * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
14 | 14 | */ |
15 | 15 | class PAMELAListPeople extends ParserHook { |
16 | | - |
17 | 16 | /** |
18 | 17 | * No LSB in pre-5.3 PHP *sigh*. |
19 | 18 | * This is to be refactored as soon as php >=5.3 becomes acceptable. |
20 | | - */ |
21 | | - public static function staticMagic( array &$magicWords, $langCode ) { |
22 | | - $instance = new self; |
23 | | - return $instance->magic( $magicWords, $langCode ); |
24 | | - } |
25 | | - |
26 | | - /** |
27 | | - * No LSB in pre-5.3 PHP *sigh*. |
28 | | - * This is to be refactored as soon as php >=5.3 becomes acceptable. |
29 | 19 | */ |
30 | 20 | public static function staticInit( Parser &$parser ) { |
31 | 21 | $instance = new self; |
Index: trunk/extensions/PAMELA/includes/PAMELA_OpenWidget.php |
— | — | @@ -12,19 +12,9 @@ |
13 | 13 | * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
14 | 14 | */ |
15 | 15 | class PAMELAOpenWidget extends ParserHook { |
16 | | - |
17 | 16 | /** |
18 | 17 | * No LSB in pre-5.3 PHP *sigh*. |
19 | 18 | * This is to be refactored as soon as php >=5.3 becomes acceptable. |
20 | | - */ |
21 | | - public static function staticMagic( array &$magicWords, $langCode ) { |
22 | | - $instance = new self; |
23 | | - return $instance->magic( $magicWords, $langCode ); |
24 | | - } |
25 | | - |
26 | | - /** |
27 | | - * No LSB in pre-5.3 PHP *sigh*. |
28 | | - * This is to be refactored as soon as php >=5.3 becomes acceptable. |
29 | 19 | */ |
30 | 20 | public static function staticInit( Parser &$parser ) { |
31 | 21 | $instance = new self; |