14use MediaWiki\Maintenance\Maintenance;
17if ( getenv(
'MW_INSTALL_PATH' ) !==
false ) {
18 $IP = getenv(
'MW_INSTALL_PATH' );
21 $IP =
"$dir/../../..";
23require_once
"$IP/maintenance/Maintenance.php";
26 public function __construct() {
27 parent::__construct();
28 $this->addDescription(
'Creates or updates a message index.' );
29 $this->requireExtension(
'Translate' );
32 public function execute() {
33 MessageGroups::singleton()->recache();
34 Services::getInstance()->getMessageIndex()->rebuild();
38$maintClass = CreateMessageIndex::class;
39require_once RUN_MAINTENANCE_IF_MAIN;