16 public function __construct( array $params ) {
17 parent::__construct(
'UpdateTranslatorActivity', $params );
18 $this->removeDuplicates =
true;
21 public static function newJobForLanguage(
string $language ):
self {
22 return new self( [
'language' => $language ] );
25 public function run() {
26 $activity = Services::getInstance()->getTranslatorActivity();
29 $activity->updateLanguage( $this->getParams()[
'language'] );
31 $this->logInfo( $e->getMessage() );