r113002 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113001‎ | r113002 | r113003 >
Date:06:28, 5 March 2012
Author:santhosh
Status:resolved
Tags:
Comment:
Add a message in Special:MessageGroupStats if the group has priority languages.
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialMessageGroupStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialMessageGroupStats.php
@@ -52,7 +52,12 @@
5353
5454 /// Overwritten from SpecialLanguageStats
5555 protected function outputIntroduction() {
56 - return '';
 56+ global $wgRequest, $wgOut;
 57+ $group = $wgRequest->getVal( 'group' );
 58+ $priorityLangs = TranslateMetadata::get( $group, 'prioritylangs' );
 59+ if( $priorityLangs ){
 60+ $wgOut->addHTML( wfMsg('tpt-priority-languages', $priorityLangs ) );
 61+ }
5762 }
5863
5964 /// Overwriten from SpecialLanguageStats

Follow-up revisions

RevisionCommit summaryAuthorDate
r113003The message used in r113002santhosh06:56, 5 March 2012
r113004Ping r113002 - addWikiMsg is your friendnikerabbit08:34, 5 March 2012

Status & tagging log