plain(); } public function getDescription( IContextSource $context = null ) { $msg = wfMessage( 'translate-dynagroup-additions-desc' ); $msg = self::addContext( $msg, $context ); return $msg->plain(); } protected function getQueryConditions() { global $wgTranslateMessageNamespaces; $db = wfGetDB( DB_REPLICA ); $conds = [ 'rc_title ' . $db->buildLike( $db->anyString(), '/en' ), 'rc_namespace' => $wgTranslateMessageNamespaces, 'rc_type != ' . RC_LOG, 'rc_id > ' . $this->getRCCutoff(), ]; if ( class_exists( ActorMigration::class ) ) { $conds[] = ActorMigration::newMigration() ->getWhere( $db, 'rc_user', FuzzyBot::getUser() )['conds']; } else { $conds['rc_user'] = FuzzyBot::getUser()->getId(); } return $conds; } /** * Filters out messages that should not be displayed here * as they are not displayed in other places. * * @param MessageHandle $handle * @return bool */ protected function matchingMessage( MessageHandle $handle ) { return MessageGroups::isTranslatableMessage( $handle ); } }