Index: trunk/extensions/DataTransclusion/DataTransclusion.i18n.magic.php |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalisation file for extension DataTransclusion. |
| 5 | + * |
| 6 | + * @addtogroup Extensions |
| 7 | + * @author Daniel Kinzler for Wikimedia Deutschland |
| 8 | + * @copyright © 2010 Wikimedia Deutschland (author: Daniel Kinzler) |
| 9 | + * @license GNU General Public Licence 2.0 or later |
| 10 | + */ |
| 11 | + |
| 12 | +$magicWords = array(); |
| 13 | + |
| 14 | +$magicWords['en'] = array( |
| 15 | + 'record' => array( 0, 'record' ), |
| 16 | +); |
| 17 | + |
Index: trunk/extensions/DataTransclusion/DataTransclusion.php |
— | — | @@ -24,6 +24,7 @@ |
25 | 25 | |
26 | 26 | $dir = dirname(__FILE__) . '/'; |
27 | 27 | $wgExtensionMessagesFiles['DataTransclusion'] = $dir . 'DataTransclusion.i18n.php'; |
| 28 | +$wgExtensionMessagesFiles['DataTransclusion'] = $dir . 'DataTransclusion.i18n.magic.php'; |
28 | 29 | |
29 | 30 | $wgAutoloadClasses['DataTransclusionRenderer'] = $dir. 'DataTransclusionRenderer.php'; |
30 | 31 | $wgAutoloadClasses['DataTransclusionHandler'] = $dir. 'DataTransclusionHandler.php'; |
— | — | @@ -38,6 +39,6 @@ |
39 | 40 | |
40 | 41 | function efDataTransclusionSetHooks( $parser ) { |
41 | 42 | $parser->setHook( 'record' , 'DataTransclusionHandler::handleRecordTag' ); |
42 | | - $parser->setFunctionHook( 'record' , 'DataTransclusionHandler::handleRecordFunction' ); #FIXME: this doesn't work. |
| 43 | + $parser->setFunctionHook( 'record' , 'DataTransclusionHandler::handleRecordFunction' ); |
43 | 44 | return true; |
44 | 45 | } |