r94964 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94963‎ | r94964 | r94965 >
Date:23:25, 18 August 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
use setMessage instead of setDescripion
Modified paths:
  • /trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
@@ -298,33 +298,33 @@
299299
300300 if ( defined( 'SMW_SUPPORTS_VALIDATOR' ) ) {
301301 $params['includesubject'] = new Parameter( 'includesubject', Parameter::TYPE_BOOLEAN );
302 - $params['includesubject']->setDescription( wfMsg( 'srf_paramdesc_includesubject' ) );
 302+ $params['includesubject']->setMessage( 'srf_paramdesc_includesubject' );
303303 $params['includesubject']->setDefault( false );
304304
305305 $params['increase'] = new Parameter( 'increase' );
306 - $params['increase']->setDescription( wfMsg( 'srf_paramdesc_increase' ) );
 306+ $params['increase']->setMessage( 'srf_paramdesc_increase' );
307307 $params['increase']->addCriteria( new CriterionInArray( 'linear', 'log' ) );
308308 $params['increase']->setDefault( 'log' );
309309
310310 $params['tagorder'] = new Parameter( 'tagorder' );
311 - $params['tagorder']->setDescription( wfMsg( 'srf_paramdesc_tagorder' ) );
 311+ $params['tagorder']->setMessage( 'srf_paramdesc_tagorder' );
312312 $params['tagorder']->addCriteria( new CriterionInArray( 'alphabetical', 'asc', 'desc', 'random', 'unchanged' ) );
313313 $params['tagorder']->setDefault( 'alphabetical' );
314314
315315 $params['mincount'] = new Parameter( 'mincount', Parameter::TYPE_INTEGER );
316 - $params['mincount']->setDescription( wfMsg( 'srf_paramdesc_mincount' ) );
 316+ $params['mincount']->setMessage( 'srf_paramdesc_mincount' );
317317 $params['mincount']->setDefault( 1 );
318318
319319 $params['maxtags'] = new Parameter( 'maxtags', Parameter::TYPE_INTEGER );
320 - $params['maxtags']->setDescription( wfMsg( 'srf_paramdesc_maxtags' ) );
 320+ $params['maxtags']->setMessage( 'srf_paramdesc_maxtags' );
321321 $params['maxtags']->setDefault( 1000 );
322322
323323 $params['minsize'] = new Parameter( 'minsize', Parameter::TYPE_INTEGER );
324 - $params['minsize']->setDescription( wfMsg( 'srf_paramdesc_minsize' ) );
 324+ $params['minsize']->setMessage( 'srf_paramdesc_minsize' );
325325 $params['minsize']->setDefault( 77 );
326326
327327 $params['maxsize'] = new Parameter( 'maxsize', Parameter::TYPE_INTEGER );
328 - $params['maxsize']->setDescription( wfMsg( 'srf_paramdesc_maxsize' ) );
 328+ $params['maxsize']->setMessage( 'srf_paramdesc_maxsize' );
329329 $params['maxsize']->setDefault( 242 );
330330 }
331331 else {

Status & tagging log