Index: trunk/extensions/Interlanguage/Interlanguage.i18n.php |
— | — | @@ -6,8 +6,6 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -require_once( dirname(__FILE__) . '/Interlanguage.i18n.magic.php' ); |
11 | | - |
12 | 10 | $messages = array(); |
13 | 11 | |
14 | 12 | $messages['en'] = array( |
Index: trunk/extensions/Interlanguage/Interlanguage.php |
— | — | @@ -62,4 +62,4 @@ |
63 | 63 | $parser->setFunctionHook( 'interlanguage', array( $wgInterlanguageExtension, 'interlanguage' ), SFH_NO_HASH ); |
64 | 64 | } |
65 | 65 | return true; |
66 | | -} |
\ No newline at end of file |
| 66 | +} |
Index: trunk/extensions/SemanticCompoundQueries/SemanticCompoundQueries.i18n.php |
— | — | @@ -6,9 +6,6 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -// FIXME: Can be enabled when new-style magic words are used (introduced in r52503) |
11 | | -// require_once( dirname( __FILE__ ) . '/SemanticCompoundQueries.i18n.magic.php' ); |
12 | | - |
13 | 10 | $messages = array(); |
14 | 11 | |
15 | 12 | /** English |
Index: trunk/extensions/SemanticCompoundQueries/SemanticCompoundQueries.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | |
19 | 19 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
20 | 20 | |
21 | | -define( 'SCQ_VERSION', '0.3.1' ); |
| 21 | +define( 'SCQ_VERSION', '0.3.2' ); |
22 | 22 | |
23 | 23 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array( |
24 | 24 | 'path' => __FILE__, |
— | — | @@ -29,10 +29,9 @@ |
30 | 30 | ); |
31 | 31 | |
32 | 32 | $wgExtensionMessagesFiles['SemanticCompoundQueries'] = dirname( __FILE__ ) . '/SemanticCompoundQueries.i18n.php'; |
| 33 | +$wgExtensionMessagesFiles['SemanticCompoundQueriesMagic'] = dirname( __FILE__ ) . '/SemanticCompoundQueries.i18n.magic.php'; |
33 | 34 | |
34 | 35 | $wgHooks['ParserFirstCallInit'][] = 'scqgRegisterParser'; |
35 | | -// FIXME: Can be removed when new-style magic words are used (introduced in r52503) |
36 | | -$wgHooks['LanguageGetMagic'][] = 'scqgLanguageGetMagic'; |
37 | 36 | |
38 | 37 | $wgAutoloadClasses['SCQQueryProcessor'] = dirname( __FILE__ ) . '/SCQ_QueryProcessor.php'; |
39 | 38 | $wgAutoloadClasses['SCQQueryResult'] = dirname( __FILE__ ) . '/SCQ_QueryResult.php'; |
— | — | @@ -41,12 +40,3 @@ |
42 | 41 | $parser->setFunctionHook( 'compound_query', array( 'SCQQueryProcessor', 'doCompoundQuery' ) ); |
43 | 42 | return true; // always return true, in order not to stop MW's hook processing! |
44 | 43 | } |
45 | | - |
46 | | -// FIXME: Can be removed when new-style magic words are used (introduced in r52503) |
47 | | -function scqgLanguageGetMagic( &$magicWords, $langCode = 'en' ) { |
48 | | - switch ( $langCode ) { |
49 | | - default: |
50 | | - $magicWords['compound_query'] = array ( 0, 'compound_query' ); |
51 | | - } |
52 | | - return true; |
53 | | -} |
Index: trunk/extensions/MathStatFunctions/MathStatFunctions.i18n.php |
— | — | @@ -6,8 +6,6 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -require_once( dirname( __FILE__ ) . '/MathStatFunctions.i18n.magic.php' ); |
11 | | - |
12 | 10 | $messages = array(); |
13 | 11 | |
14 | 12 | $messages['en'] = array( |
Index: trunk/extensions/MathStatFunctions/MathStatFunctions.php |
— | — | @@ -14,6 +14,8 @@ |
15 | 15 | ); |
16 | 16 | |
17 | 17 | $wgExtensionMessagesFiles['MathStatFunctions'] = dirname( __FILE__ ) . '/MathStatFunctions.i18n.php'; |
| 18 | +$wgExtensionMessagesFiles['MathStatFunctionsMagic'] = dirname( __FILE__ ) . '/MathStatFunctions.i18n.magic.php'; |
| 19 | + |
18 | 20 | $wgHooks['ParserFirstCallInit'][] = 'wfSetupMathStatFunctions'; |
19 | 21 | |
20 | 22 | $wgExtMathStatFunctions = null; |
— | — | @@ -28,7 +30,6 @@ |
29 | 31 | } |
30 | 32 | |
31 | 33 | class ExtMathStatFunctions { |
32 | | - |
33 | 34 | public function __construct() { |
34 | 35 | if ( !class_exists( 'ExtParserFunctions' ) ) |
35 | 36 | throw new ParserFunctionsNotFoundException; |
Index: trunk/extensions/ReplaceSet/ReplaceSet.i18n.php |
— | — | @@ -22,8 +22,6 @@ |
23 | 23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 | 24 | */ |
25 | 25 | |
26 | | -require_once( dirname(__FILE__) . '/ReplaceSet.i18n.magic.php' ); |
27 | | - |
28 | 26 | $messages = array(); |
29 | 27 | |
30 | 28 | $messages['en'] = array( |
Index: trunk/extensions/ReplaceSet/ReplaceSet.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | $wgExtensionCredits['parserhook'][] = array ( |
29 | 29 | 'name' => 'ReplaceSet', |
30 | 30 | 'url' => 'http://mediawiki.org/wiki/Extension:ReplaceSet', |
31 | | - 'version' => '1.1', |
| 31 | + 'version' => '1.2', |
32 | 32 | 'author' => "[http://mediawiki.org/wiki/User:Dantman Daniel Friesen]", |
33 | 33 | 'descriptionmsg' => 'replaceset-desc', |
34 | 34 | ); |
— | — | @@ -37,6 +37,7 @@ |
38 | 38 | $dir = dirname( __FILE__ ) . '/'; |
39 | 39 | $wgAutoloadClasses['ReplaceSet'] = $dir . 'ReplaceSet.class.php'; |
40 | 40 | $wgExtensionMessagesFiles['ReplaceSet'] = $dir . 'ReplaceSet.i18n.php'; |
| 41 | +$wgExtensionMessagesFiles['ReplaceSetMagic'] = $dir . 'ReplaceSet.i18n.magic.php'; |
41 | 42 | |
42 | 43 | function efReplaceSetRegisterParser( &$parser ) { |
43 | 44 | $parser->setFunctionHook( 'replaceset', array( 'ReplaceSet', 'parserFunction' ) ); |
Index: trunk/extensions/MediaFunctions/MediaFunctions.i18n.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | * @version 1.2 |
10 | 10 | */ |
11 | 11 | |
12 | | -require_once( dirname( __FILE__ ) . '/MediaFunctions.i18n.magic.php' ); |
13 | | - |
14 | 12 | $messages = array(); |
15 | 13 | |
16 | 14 | /* English |
Index: trunk/extensions/MediaFunctions/MediaFunctions.php |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | |
23 | 23 | $dir = dirname( __FILE__ ) . '/'; |
24 | 24 | $wgExtensionMessagesFiles['MediaFunctions'] = $dir . 'MediaFunctions.i18n.php'; |
| 25 | +$wgExtensionMessagesFiles['MediaFunctionsMagic'] = $dir . 'MediaFunctions.i18n.magic.php'; |
25 | 26 | $wgAutoloadClasses['MediaFunctions'] = $dir . 'MediaFunctions.class.php'; |
26 | 27 | $wgHooks['ParserFirstCallInit'][] = 'efMediaFunctionsSetup'; |
27 | 28 | |
Index: trunk/extensions/Plotters/Plotters.i18n.php |
— | — | @@ -9,8 +9,6 @@ |
10 | 10 | * @license GNU General Public Licence 2.0 or later |
11 | 11 | */ |
12 | 12 | |
13 | | -require_once( dirname(__FILE__) . '/Plotters.i18n.magic.php' ); |
14 | | - |
15 | 13 | $messages = array(); |
16 | 14 | |
17 | 15 | /** English |
Index: trunk/extensions/Plotters/Plotters.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | $wgExtensionCredits['other'][] = array( |
29 | 29 | 'path' => __FILE__, |
30 | 30 | 'name' => 'Plotter parser extension', |
31 | | - 'version' => '0.6c', |
| 31 | + 'version' => '0.6d', |
32 | 32 | 'author' => 'Ryan Lane', |
33 | 33 | 'descriptionmsg' => 'plotters-desc', |
34 | 34 | 'url' => 'https://www.mediawiki.org/wiki/Extension:Plotters', |
— | — | @@ -35,14 +35,12 @@ |
36 | 36 | |
37 | 37 | $wgHooks['ParserFirstCallInit'][] = 'efPlottersSetHooks'; |
38 | 38 | $wgHooks['OutputPageParserOutput'][] = 'PlottersParserOutput'; |
39 | | -if( version_compare( $wgVersion, '1.16alpha', '<' ) ) { |
40 | | - $wgHooks['LanguageGetMagic'][] = 'PlottersLanguageGetMagic'; |
41 | | -} |
42 | 39 | $wgHooks['ArticleSaveComplete'][] = 'wfPlottersArticleSaveComplete'; |
43 | 40 | |
44 | 41 | $dir = dirname( __FILE__ ) . '/'; |
45 | 42 | $wgExtensionMessagesFiles['Plotters'] = $dir . 'Plotters.i18n.php'; |
46 | 43 | $wgExtensionMessagesFiles['PlottersAlias'] = $dir . 'Plotters.alias.php'; |
| 44 | +$wgExtensionMessagesFiles['PlottersMagic'] = $dir . 'Plotters.magic.php'; |
47 | 45 | $wgAutoloadClasses['Plotters'] = $dir . 'PlottersClass.php'; |
48 | 46 | $wgAutoloadClasses['PlottersParser'] = $dir . 'PlottersParser.php'; |
49 | 47 | $wgAutoloadClasses['SpecialPlotters'] = $dir . 'SpecialPlotters.php'; |
— | — | @@ -247,13 +245,3 @@ |
248 | 246 | } |
249 | 247 | return true; |
250 | 248 | } |
251 | | - |
252 | | -// FIXME: doesn't this make using this method and the hook above useless? |
253 | | -/** |
254 | | - * We ignore langCode - parser function names can be translated but |
255 | | - * we are not using this feature |
256 | | - */ |
257 | | -function PlottersLanguageGetMagic( $magicWords, $langCode ) { |
258 | | - $magicWords['plot'] = array( 0, 'plot' ); |
259 | | - return true; |
260 | | -} |
Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds.i18n.php |
— | — | @@ -5,8 +5,6 @@ |
6 | 6 | * @file |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | | -// FIXME: enable after 1.16 branching. This extension has not been branched yet. |
10 | | -// require_once( dirname(__FILE__) . '/WikiArticleFeeds.i18n.magic.php' ); |
11 | 9 | |
12 | 10 | $messages = array(); |
13 | 11 | |
Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds.php |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | # Confirm MW environment |
103 | 103 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
104 | 104 | |
105 | | -define( 'WIKIARTICLEFEEDS_VERSION', '0.6.6' ); |
| 105 | +define( 'WIKIARTICLEFEEDS_VERSION', '0.6.7' ); |
106 | 106 | |
107 | 107 | # Bring in supporting classes |
108 | 108 | require_once( "$IP/includes/Feed.php" ); |
— | — | @@ -119,12 +119,12 @@ |
120 | 120 | |
121 | 121 | $dir = dirname( __FILE__ ) . '/'; |
122 | 122 | $wgExtensionMessagesFiles['WikiArticleFeeds'] = $dir . 'WikiArticleFeeds.i18n.php'; |
| 123 | +$wgExtensionMessagesFiles['WikiArticleFeedsMagic'] = $dir . 'WikiArticleFeeds.i18n.magic.php'; |
123 | 124 | |
124 | 125 | /** |
125 | 126 | * Wrapper class for consolidating all WAF related parser methods |
126 | 127 | */ |
127 | 128 | class WikiArticleFeedsParser { |
128 | | - |
129 | 129 | function feedStart( $text, $params = array() ) { |
130 | 130 | return '<!-- FEED_START -->'; |
131 | 131 | } |
— | — | @@ -147,12 +147,6 @@ |
148 | 148 | return ( !empty( $tags ) ? '<pre>@ITEMTAGS@' . base64_encode( serialize( implode( ',', $tags ) ) ) . '@ITEMTAGS@</pre>':'' ); |
149 | 149 | } |
150 | 150 | |
151 | | - // FIXME: remove after 1.16 branching. This extension has not been branched yet. |
152 | | - function itemTagsMagic( &$magicWords, $langCode = null ) { |
153 | | - $magicWords['itemtags'] = array( 0, 'itemtags' ); |
154 | | - return true; |
155 | | - } |
156 | | - |
157 | 151 | function itemTagsPlaceholderCorrections( $parser, &$text ) { |
158 | 152 | $text = preg_replace( |
159 | 153 | '|<pre>@ITEMTAGS@([0-9a-zA-Z\\+\\/]+=*)@ITEMTAGS@</pre>|', |
— | — | @@ -165,8 +159,6 @@ |
166 | 160 | |
167 | 161 | # Create global instance |
168 | 162 | $wgWikiArticleFeedsParser = new WikiArticleFeedsParser(); |
169 | | -// FIXME: update after 1.16 branching for new style magic words. This extension has not been branched yet. |
170 | | -$wgHooks['LanguageGetMagic'][] = array( $wgWikiArticleFeedsParser, 'itemTagsMagic' ); |
171 | 163 | $wgHooks['ParserBeforeTidy'][] = array( $wgWikiArticleFeedsParser, 'itemTagsPlaceholderCorrections' ); |
172 | 164 | |
173 | 165 | # Add Extension Functions |
— | — | @@ -570,4 +562,3 @@ |
571 | 563 | # Feed footer |
572 | 564 | $feed->outFooter(); |
573 | 565 | } |
574 | | - |
Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php |
— | — | @@ -8,9 +8,6 @@ |
9 | 9 | * @ingroup SemanticInternalObjects |
10 | 10 | */ |
11 | 11 | |
12 | | -// FIXME: Can be enabled when new style magic words are used (introduced in r52503) |
13 | | -// require_once( dirname( __FILE__ ) . '/SemanticInternalObjects.i18n.magic.php' ); |
14 | | - |
15 | 12 | $messages = array(); |
16 | 13 | |
17 | 14 | /** English |
Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | |
11 | 11 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
12 | 12 | |
13 | | -define( 'SIO_VERSION', '0.6.7' ); |
| 13 | +define( 'SIO_VERSION', '0.6.8' ); |
14 | 14 | |
15 | 15 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array( |
16 | 16 | 'path' => __FILE__, |
— | — | @@ -33,6 +33,7 @@ |
34 | 34 | |
35 | 35 | $siogIP = dirname( __FILE__ ); |
36 | 36 | $wgExtensionMessagesFiles['SemanticInternalObjects'] = $siogIP . '/SemanticInternalObjects.i18n.php'; |
| 37 | +$wgExtensionMessagesFiles['SemanticInternalObjectsMagic'] = $siogIP . '/SemanticInternalObjects.i18n.magic.php'; |
37 | 38 | $wgAutoloadClasses['SIOHandler'] = $siogIP . '/SemanticInternalObjects_body.php'; |
38 | 39 | $wgAutoloadClasses['SIOSQLStore'] = $siogIP . '/SemanticInternalObjects_body.php'; |
39 | 40 | if ( class_exists( 'SMWDIWikiPage' ) ) { |
— | — | @@ -52,7 +53,7 @@ |
53 | 54 | function siofLanguageGetMagic( &$magicWords, $langCode = 'en' ) { |
54 | 55 | switch ( $langCode ) { |
55 | 56 | default: |
56 | | - $magicWords['set_internal'] = array ( 0, 'set_internal' ); |
| 57 | + // Not in i18n file, so remains for now... |
57 | 58 | $magicWords['set_internal_recurring_event'] = array ( 0, 'set_internal_recurring_event' ); |
58 | 59 | } |
59 | 60 | return true; |
Index: trunk/extensions/Icon/Icon.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | $wgExtensionCredits['other'][] = array( |
14 | 14 | 'path' => __FILE__, |
15 | 15 | 'name' => 'Icon', |
16 | | - 'version' => '1.6.1', |
| 16 | + 'version' => '1.6.2', |
17 | 17 | 'author' => 'Tim Laqua', |
18 | 18 | 'descriptionmsg' => 'icon-desc', |
19 | 19 | 'url' => 'https://www.mediawiki.org/wiki/Extension:Icon', |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | $wgHooks['ParserFirstCallInit'][] = 'efIcon_Setup'; |
23 | 23 | $dir = dirname(__FILE__) . '/'; |
24 | 24 | $wgExtensionMessagesFiles['Icon'] = $dir . 'Icon.i18n.php'; |
| 25 | +$wgExtensionMessagesFiles['IconMagic'] = $dir . 'Icon.i18n.magic.php'; |
25 | 26 | |
26 | 27 | function efIcon_Setup( &$parser ) { |
27 | 28 | # Set a function hook associating the "example" magic word with our function |
Index: trunk/extensions/Icon/Icon.i18n.php |
— | — | @@ -7,8 +7,6 @@ |
8 | 8 | * @ingroup Extensions |
9 | 9 | */ |
10 | 10 | |
11 | | -require_once( dirname(__FILE__) . '/Icon.i18n.magic.php' ); |
12 | | - |
13 | 11 | $messages = array(); |
14 | 12 | |
15 | 13 | $messages['en'] = array( |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -8,9 +8,6 @@ |
9 | 9 | * @ingroup SMWLanguage |
10 | 10 | */ |
11 | 11 | |
12 | | -// FIXME: Can be enabled when new style magic words are used (introduced in r52503) |
13 | | -// require_once( dirname( __FILE__ ) . '/SMW_Magic.php' ); |
14 | | - |
15 | 12 | $messages = array(); |
16 | 13 | |
17 | 14 | /** English |
Index: trunk/extensions/SemanticResultFormats/SemanticResultFormats.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | die( '<b>Error:</b> This version of Semantic Result Formats requires Semantic MediaWiki 1.7 or above; use Semantic Result Formats 1.6.1 for older versions of SMW.' ); |
36 | 36 | } |
37 | 37 | |
38 | | -define( 'SRF_VERSION', '1.7' ); |
| 38 | +define( 'SRF_VERSION', '1.7.1' ); |
39 | 39 | |
40 | 40 | // Require the settings file. |
41 | 41 | require dirname( __FILE__ ) . '/SRF_Settings.php'; |
— | — | @@ -47,6 +47,7 @@ |
48 | 48 | $wgExtensionFunctions[] = 'srffInitFormats'; |
49 | 49 | |
50 | 50 | $wgExtensionMessagesFiles['SemanticResultFormats'] = dirname( __FILE__ ) . '/SRF_Messages.php'; |
| 51 | +$wgExtensionMessagesFiles['SemanticResultFormatsMagic'] = dirname( __FILE__ ) . '/SRF_Magic.php'; |
51 | 52 | |
52 | 53 | // FIXME: hardcoded path |
53 | 54 | $srfgScriptPath = $wgScriptPath . '/extensions/SemanticResultFormats'; |
— | — | @@ -100,9 +101,6 @@ |
101 | 102 | $wgHooks['AdminLinks'][] = 'SRFHooks::addToAdminLinks'; |
102 | 103 | $wgHooks['ParserFirstCallInit'][] = 'SRFParserFunctions::registerFunctions'; |
103 | 104 | |
104 | | -// FIXME: Can be removed when new style magic words are used (introduced in r52503) |
105 | | -$wgHooks['LanguageGetMagic'][] = 'SRFParserFunctions::languageGetMagic'; |
106 | | - |
107 | 105 | /** |
108 | 106 | * Autoload the query printer classes and associate them with their formats in the $smwgResultFormats array. |
109 | 107 | * |
Index: trunk/extensions/SemanticResultFormats/SRF_ParserFunctions.php |
— | — | @@ -23,16 +23,6 @@ |
24 | 24 | return true; |
25 | 25 | } |
26 | 26 | |
27 | | - // FIXME: Can be removed when new style magic words are used (introduced in r52503) |
28 | | - static function languageGetMagic( &$magicWords, $langCode = "en" ) { |
29 | | - switch ( $langCode ) { |
30 | | - default: |
31 | | - $magicWords['calendarstartdate'] = array ( 0, 'calendarstartdate' ); |
32 | | - $magicWords['calendarenddate'] = array ( 0, 'calendarenddate' ); |
33 | | - } |
34 | | - return true; |
35 | | - } |
36 | | - |
37 | 27 | static function runCalendarStartDate( &$parser, $calendar_type = 'month', $calendar_start_day = null, $calendar_days = 7, $default_year = null, $default_month = null, $default_day = null ) { |
38 | 28 | if ( $calendar_type == '' ) $calendar_type = 'month'; |
39 | 29 | list( $lower_date, $upper_date, $query_date ) = |
Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php |
— | — | @@ -6,9 +6,6 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -// FIXME: Can be enabled when new style magic words are used (introduced in r52503) |
11 | | -// require_once( dirname( __FILE__ ) . '/SRF_Magic.php' ); |
12 | | - |
13 | 10 | $messages = array(); |
14 | 11 | |
15 | 12 | /** English |
Index: trunk/extensions/Negref/Negref.i18n.php |
— | — | @@ -6,8 +6,6 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -require_once( dirname(__FILE__) . '/Negref.i18n.magic.php' ); |
11 | | - |
12 | 10 | $messages = array(); |
13 | 11 | |
14 | 12 | /** English |
Index: trunk/extensions/Negref/Negref.php |
— | — | @@ -34,6 +34,7 @@ |
35 | 35 | |
36 | 36 | $dir = dirname( __FILE__ ) . '/'; |
37 | 37 | $wgExtensionMessagesFiles['NegRef'] = $dir . 'Negref.i18n.php'; |
| 38 | +$wgExtensionMessagesFiles['NegRefMagic'] = $dir . 'Negref.i18n.magic.php'; |
38 | 39 | $wgHooks['ParserFirstCallInit'][] = 'efNegrefRegisterParser'; |
39 | 40 | |
40 | 41 | function efNegrefRegisterParser( &$parser ) { |