https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112997
Revision: 112997 Author: santhosh Date: 2012-03-05 04:37:16 +0000 (Mon, 05 Mar 2012) Log Message: ----------- Added warning or error classes to the priority language messages. Modified Paths: -------------- trunk/extensions/Translate/specials/SpecialTranslate.php Modified: trunk/extensions/Translate/specials/SpecialTranslate.php =================================================================== --- trunk/extensions/Translate/specials/SpecialTranslate.php 2012-03-05 01:47:30 UTC (rev 112996) +++ trunk/extensions/Translate/specials/SpecialTranslate.php 2012-03-05 04:37:16 UTC (rev 112997) @@ -151,9 +151,9 @@ if ( $priorityForce === 'on' ) { // Hide table $this->paging['count'] = 0; - $description .= wfMessage( 'tpt-discouraged-language-force', $priorityReason )->parseAsBlock(); + $description .= Html::RawElement( 'div', array( 'class' => 'error' ), wfMessage( 'tpt-discouraged-language-force', $priorityReason )->parseAsBlock() ); } else { - $description .= wfMessage( 'tpt-discouraged-language', $priorityReason )->parseAsBlock(); + $description .= Html::RawElement( 'div', array( 'class' => 'warning' ), wfMessage( 'tpt-discouraged-language', $priorityReason )->parseAsBlock() ); } } if ( $description ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs