[MediaWiki-commits] [Gerrit] Update for upcoming translation rally - change (translatewiki)
jenkins-bot has submitted this change and it was merged. Change subject: Update for upcoming translation rally .. Update for upcoming translation rally Change-Id: I875acf870fd8f0ba8987975a6a9dbcb7916a8344 --- M SpecialRally.php 1 file changed, 39 insertions(+), 22 deletions(-) Approvals: Siebrand: Looks good to me, approved jenkins-bot: Verified diff --git a/SpecialRally.php b/SpecialRally.php index cbffe18..a7c3bb9 100644 --- a/SpecialRally.php +++ b/SpecialRally.php @@ -33,15 +33,18 @@ $this->outputHeader(); $allowedGroups = array( - 'core', // 8 - 'ext-0-all', // 8 - 'out-jquery-uls', // 1206 - 'out-kiwix', // 1244 - 'out-okawix-0-all', // 1220 - 'out-pywikipedia-0-all', // 1238 - 'out-wikiblame', // 1206 - 'out-wikimedia-mobile-0-all', // 1206 - 'tsint-0-all' // 1240 + 'core', + 'ext-0-wikimedia', + 'out-wikimedia-mobile-0-all', + 'wiki-betawiki', + 'out-kiwix', + 'out-huggle', + 'tsint-0-all', + 'out-jquery-uls', + 'wiki-twn-mainpage', + 'out-pywikipedia-0-all', + 'out-vicuna', + 'out-wikiblame', ); $allowedGroups = MessageGroups::expandWildcards( '*' ); @@ -50,6 +53,11 @@ foreach ( $allGroups as $groupId => $messageGroup ) { if ( in_array( $groupId, $allowedGroups ) ) { if( $messageGroup->isMeta() ) { + // @todo Ugly work around for MediaWikiTopMessageGroup::getGroups() + // not existing. + if( $messageGroup->getId() === 'core-0-mostused' ) + continue; + $groups = $messageGroup->getGroups(); foreach ( $groups as $gid => $groupDetails ) { $allowedGroups[] = $gid; @@ -64,11 +72,17 @@ $allowed = $currentUser->isAllowed( 'translate-manage' ); if ( $allowed && !$par ) { $products = array( - 'MediaWiki' => 0, - 'MediaWiki extensions' => 0, - 'Mobile' => 0, - 'Offline' => 0, - 'Other' => 0 + 'MediaWiki core' => 0, + 'MediaWiki extensions used by Wikimedia' => 0, + 'Wikimedia Mobile apps' => 0, + 'translatewiki.net' => 0, + 'jQuery.ULS' => 0, + 'Kiwix' => 0, + 'Huggle' => 0, + 'Intuition' => 0, + 'Pywikibot' => 0, + 'VicuñaUploader' => 0, + 'WikiBlame' => 0, ); $languages = array(); $userLangs = array(); @@ -81,11 +95,11 @@ 'page_latest' ); $conds = array( - "rc_timestamp >= 2014080610", - "rc_timestamp <= 20140810235959", + "rc_timestamp >= 2015051700", + "rc_timestamp <= 20150525235959", 'rc_new' => 1, 'rc_bot' => 0, - 'rc_namespace IN (8, 1206, 1212, 1220, 1224, 1238, 1240, 1244)', + 'rc_namespace IN ( 8, 1198, 1206, 1238, 1240, 1244, 1248, 1252 )', 'rc_cur_id = page_id' ); @@ -195,11 +209,11 @@
[MediaWiki-commits] [Gerrit] Update for upcoming translation rally - change (translatewiki)
Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/211430 Change subject: Update for upcoming translation rally .. Update for upcoming translation rally Change-Id: I875acf870fd8f0ba8987975a6a9dbcb7916a8344 --- M SpecialRally.php 1 file changed, 39 insertions(+), 22 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/translatewiki refs/changes/30/211430/1 diff --git a/SpecialRally.php b/SpecialRally.php index cbffe18..a7c3bb9 100644 --- a/SpecialRally.php +++ b/SpecialRally.php @@ -33,15 +33,18 @@ $this->outputHeader(); $allowedGroups = array( - 'core', // 8 - 'ext-0-all', // 8 - 'out-jquery-uls', // 1206 - 'out-kiwix', // 1244 - 'out-okawix-0-all', // 1220 - 'out-pywikipedia-0-all', // 1238 - 'out-wikiblame', // 1206 - 'out-wikimedia-mobile-0-all', // 1206 - 'tsint-0-all' // 1240 + 'core', + 'ext-0-wikimedia', + 'out-wikimedia-mobile-0-all', + 'wiki-betawiki', + 'out-kiwix', + 'out-huggle', + 'tsint-0-all', + 'out-jquery-uls', + 'wiki-twn-mainpage', + 'out-pywikipedia-0-all', + 'out-vicuna', + 'out-wikiblame', ); $allowedGroups = MessageGroups::expandWildcards( '*' ); @@ -50,6 +53,11 @@ foreach ( $allGroups as $groupId => $messageGroup ) { if ( in_array( $groupId, $allowedGroups ) ) { if( $messageGroup->isMeta() ) { + // @todo Ugly work around for MediaWikiTopMessageGroup::getGroups() + // not existing. + if( $messageGroup->getId() === 'core-0-mostused' ) + continue; + $groups = $messageGroup->getGroups(); foreach ( $groups as $gid => $groupDetails ) { $allowedGroups[] = $gid; @@ -64,11 +72,17 @@ $allowed = $currentUser->isAllowed( 'translate-manage' ); if ( $allowed && !$par ) { $products = array( - 'MediaWiki' => 0, - 'MediaWiki extensions' => 0, - 'Mobile' => 0, - 'Offline' => 0, - 'Other' => 0 + 'MediaWiki core' => 0, + 'MediaWiki extensions used by Wikimedia' => 0, + 'Wikimedia Mobile apps' => 0, + 'translatewiki.net' => 0, + 'jQuery.ULS' => 0, + 'Kiwix' => 0, + 'Huggle' => 0, + 'Intuition' => 0, + 'Pywikibot' => 0, + 'VicuñaUploader' => 0, + 'WikiBlame' => 0, ); $languages = array(); $userLangs = array(); @@ -81,11 +95,11 @@ 'page_latest' ); $conds = array( - "rc_timestamp >= 2014080610", - "rc_timestamp <= 20140810235959", + "rc_timestamp >= 2015051700", + "rc_timestamp <= 20150525235959", 'rc_new' => 1, 'rc_bot' => 0, - 'rc_namespace IN (8, 1206, 1212, 1220, 1224, 1238, 1240, 1244)', + 'rc_namespace IN ( 8, 1198, 1206, 1238, 1240, 1244, 1248, 1252 )', 'rc_cur_id = page_id' );