Index: trunk/extensions/ParserFun/ParserFun.i18n.magic.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | * @author Daniel Werner |
19 | 19 | */ |
20 | 20 | $magicWords['en'] = array( |
21 | | - 'parse' => array( false, 'parse' ), |
| 21 | + 'parse' => array( 0, 'parse' ), |
22 | 22 | ExtParserFun::MAG_THIS => array( 1, 'THIS' ), |
23 | 23 | ); |
24 | 24 | |
— | — | @@ -25,13 +25,13 @@ |
26 | 26 | * @author Daniel Werner |
27 | 27 | */ |
28 | 28 | $messages['qqq'] = array( |
29 | | - 'parse' => array( 1, 'Keyword to put in front of a variable like "{{THIS:PAGENAME}}". This will output the pagename of the page where it is defined on instead of the page actually being parsed. "THIS" refers to that page.' ), |
| 29 | + 'parse' => array( 0, 'Do not translate this! This is the magic word for the "#parse" function' ), |
| 30 | + ExtParserFun::MAG_THIS => array( 1, 'Keyword to put in front of a variable like "{{THIS:PAGENAME}}". This will output the pagename of the page where it is defined on instead of the page actually being parsed. "THIS" refers to that page.' ), |
30 | 31 | ); |
31 | 32 | |
32 | 33 | /** German (Deutsch) |
33 | 34 | * @author Daniel Werner |
34 | 35 | */ |
35 | 36 | $magicWords['de'] = array( |
36 | | - 'parse' => array( false, 'parse' ), |
37 | 37 | ExtParserFun::MAG_THIS => array( 1, 'DIESER', 'DIESE', 'DIESES' ), |
38 | 38 | ); |
Index: trunk/extensions/ParserFun/ParserFun.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | global $egParserFunDisabledFunctions; |
91 | 91 | if( ! in_array( self::MAG_THIS, $egParserFunDisabledFunctions ) ) { |
92 | 92 | // only register function if not disabled by configuration |
93 | | - $parser->setFunctionHook( self::MAG_THIS, array( __CLASS__, 'this_' ), SFH_NO_HASH | SFH_OBJECT_ARGS ); |
| 93 | + $parser->setFunctionHook( self::MAG_THIS, array( __CLASS__, 'pfObj_this' ), SFH_NO_HASH | SFH_OBJECT_ARGS ); |
94 | 94 | } |
95 | 95 | return true; |
96 | 96 | } |
— | — | @@ -113,7 +113,7 @@ |
114 | 114 | /** |
115 | 115 | * Magic word 'THIS:' to return certain information about the page the word actually is defined on |
116 | 116 | */ |
117 | | - static function this_( Parser &$parser, PPFrame $frame = null, $args = null ) { |
| 117 | + static function pfObj_this( Parser &$parser, PPFrame $frame = null, $args = null ) { |
118 | 118 | // if MW version is too old or something is wrong: |
119 | 119 | if( $frame === null || $frame->title === null ) { |
120 | 120 | return ''; |
— | — | @@ -246,7 +246,7 @@ |
247 | 247 | switch( $magicWordId ) { |
248 | 248 | /** THIS **/ |
249 | 249 | case self::MAG_THIS: |
250 | | - $ret = self::this_( $parser, $frame, null ); |
| 250 | + $ret = self::pfObj_this( $parser, $frame, null ); |
251 | 251 | break; |
252 | 252 | } |
253 | 253 | return true; |