r112574 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112573‎ | r112574 | r112575 >
Date:04:28, 28 February 2012
Author:santhosh
Status:resolved
Tags:i18nreview 
Comment:
If priority languages are defined for a group, do not show other languages in stats pages. Change the blacklist logic accordingly.
Modified paths:
  • /trunk/extensions/Translate/utils/StatsTable.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/StatsTable.php
@@ -299,6 +299,13 @@
300300 }
301301 }
302302
 303+ $filterLangs = TranslateMetadata::get( $groupId , 'prioritylangs' );
 304+ if ( strlen( $filterLangs ) > 0 ) {
 305+ $filter = array_flip( explode( ',', $filterLangs ) );
 306+ if ( count( $filter ) > 0 && !isset( $filter[$code] ) ) {
 307+ $blacklisted = true;
 308+ }
 309+ }
303310 return $blacklisted;
304311 }
305312

Sign-offs

UserFlagDate
Amire80tested19:53, 29 February 2012

Follow-up revisions

RevisionCommit summaryAuthorDate
r112588Fix statistics tables for aggregate group numbers....nikerabbit11:55, 28 February 2012

Status & tagging log