blob: 7ebd0d40fa2d8d4575fae2c622e41aadcd315b44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* @file
* @author Niklas Laxström
* @license GPL-2.0-or-later
*/
namespace MediaWiki\Extension\Translate\Statistics;
use Maintenance;
use MediaWiki\Extension\Translate\Services;
/** @since 2020.04 */
class UpdateTranslatorActivityMaintenanceScript extends Maintenance {
public function __construct() {
parent::__construct();
$this->addDescription( 'Updates cached translator activity statistics' );
$this->requireExtension( 'Translate' );
}
public function execute() {
Services::getInstance()->getTranslatorActivity()->updateAllLanguages();
$this->output( "Done.\n" );
}
}
|