Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -101,6 +101,7 @@ |
102 | 102 | $smwgNamespace = $namespace; |
103 | 103 | } |
104 | 104 | $wgExtensionFunctions[] = 'smwfSetupExtension'; |
| 105 | + // FIXME: Can be removed when new style magic words are used (introduced in r52503) |
105 | 106 | $wgHooks['LanguageGetMagic'][] = 'smwfAddMagicWords'; // setup names for parser functions (needed here) |
106 | 107 | $wgExtensionMessagesFiles['SemanticMediaWiki'] = $smwgIP . '/languages/SMW_Messages.php'; // register messages (requires MW=>1.11) |
107 | 108 | |
— | — | @@ -403,6 +404,7 @@ |
404 | 405 | /***** language settings *****/ |
405 | 406 | /**********************************************/ |
406 | 407 | |
| 408 | + // FIXME: Can be removed when new style magic words are used (introduced in r52503) |
407 | 409 | /** |
408 | 410 | * Set up (possibly localised) names for SMW's parser functions. |
409 | 411 | */ |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -8,6 +8,9 @@ |
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 | + |
12 | 15 | $messages = array(); |
13 | 16 | |
14 | 17 | /** English |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Magic.php |
— | — | @@ -0,0 +1,15 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +$magicWords = array(); |
| 5 | + |
| 6 | +$magicWords['en'] = array( |
| 7 | + 'ask' => array( 0, 'ask' ); |
| 8 | + 'show' => array( 0, 'show' ); |
| 9 | + 'info' => array( 0, 'info' ); |
| 10 | + 'concept' => array( 0, 'concept' ); |
| 11 | + 'set' => array( 0, 'set' ); |
| 12 | + 'set_recurring_event' => array( 0, 'set_recurring_event' ); |
| 13 | + 'declare' => array( 0, 'declare' ); |
| 14 | + 'SMW_NOFACTBOX' => array( 0, '__NOFACTBOX__' ); |
| 15 | + 'SMW_SHOWFACTBOX' => array( 0, '__SHOWFACTBOX__' ); |
| 16 | +); |
Property changes on: trunk/extensions/SemanticMediaWiki/languages/SMW_Magic.php |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 17 | + native |
Name: svn:keywords |
2 | 18 | + Id |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -830,6 +830,7 @@ |
831 | 831 | Semantic MediaWiki |
832 | 832 | file = SemanticMediaWiki/languages/SMW_Messages.php |
833 | 833 | aliasfile = SemanticMediaWiki/languages/SMW_Aliases.php |
| 834 | +magicfile = SemanticMediaWiki/languages/SMW_Magic.php |
834 | 835 | descmsg = smw-desc |
835 | 836 | ignored = smw_ask_doculink, smw_service_online_maps, smw_uri_blacklist |
836 | 837 | optional = smw_rss_link, smw_decseparator, smw_kiloseparator |