r91444 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91443‎ | r91444 | r91445 >
Date:08:30, 5 July 2011
Author:jan
Status:ok
Tags:
Comment:
follow-up r91439: Change option "parse" to "parsemag" (MediaWiki option in this context)
Modified paths:
  • /trunk/tools/ToolserverI18N/TsIntuition.php (modified) (history)

Diff [purge]

Index: trunk/tools/ToolserverI18N/TsIntuition.php
@@ -359,7 +359,8 @@
360360 * - lang: overrides the currently selected language
361361 * - variables: numerical array to do variable replacements ($1> var[0], $2> var[1], etc.)
362362 * - raw-variables: boolean to determine whether the variables should be escaped as well
363 - * - parse: boolean to determine whether the message sould be parsed (PLURAL, etc.)
 363+ * - parsemag: boolean to determine whether the message sould be tranformed
 364+ * using magic phrases (PLURAL, etc.)
364365 * - escape: Optionally the return can be escaped. By default this takes place after variable
365366 * replacement. Set 'raw-variables' to true if you just want the raw message
366367 * to be escaped and have escaped the variables already.
@@ -382,7 +383,7 @@
383384 'variables' => array(),
384385 'raw-variables' => false,
385386 'escape' => 'plain',
386 - 'parse' => false,
 387+ 'parsemag' => false,
387388 );
388389
389390 // If $options was a domain string, convert it now.
@@ -439,7 +440,7 @@
440441 }
441442
442443 // Some parsing work
443 - if ( $options['parse'] === true ) {
 444+ if ( $options['parsemag'] === true ) {
444445 $msg = $this->getMessagesFunctions()->parse( $msg, $lang );
445446 }
446447

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91439Add PLURAL-supportjan06:08, 5 July 2011

Status & tagging log