From: Reedy Date: Thu, 11 Oct 2018 18:20:30 +0000 (+0100) Subject: Load installer i18n when running update.php X-Git-Tag: 1.34.0-rc.0~3813^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=a8408122fd7982ec1f6f380288c887298ba07045 Load installer i18n when running update.php Bug: T206765 Change-Id: Ie1c1a5dbf7c905eaca55777448e5aba00267ed31 --- diff --git a/maintenance/update.php b/maintenance/update.php index c780b6ae6b..2a1feb4603 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -85,7 +85,7 @@ class UpdateMediaWiki extends Maintenance { } function execute() { - global $wgVersion, $wgLang, $wgAllowSchemaUpdates; + global $wgVersion, $wgLang, $wgAllowSchemaUpdates, $wgMessagesDirs; if ( !$wgAllowSchemaUpdates && !( $this->hasOption( 'force' ) @@ -111,6 +111,9 @@ class UpdateMediaWiki extends Maintenance { } } + // T206765: We need to load the installer i18n files as some of errors come installer/updater code + $wgMessagesDirs['MediawikiInstaller'] = dirname( __DIR__ ) . '/includes/installer/i18n'; + $lang = Language::factory( 'en' ); // Set global language to ensure localised errors are in English (T22633) RequestContext::getMain()->setLanguage( $lang );