diff --git a/admin/cli/install.php b/admin/cli/install.php index a2e09cf2e9f..6d98a43d1af 100644 --- a/admin/cli/install.php +++ b/admin/cli/install.php @@ -572,11 +572,17 @@ if (!file_exists($configfile)) { cli_error('Can not create config file.'); } +// remember selected language +$installlang = $CFG->lang; // return back to original dir before executing setup.php which changes the dir again chdir($olddir); // We have config.php, it is a real php script from now on :-) require($configfile); +// use selected language +$CFG->lang = $installlang; +$SESSION->lang = $CFG->lang; + install_cli_database($options, $interactive); echo get_string('cliinstallfinished', 'install')."\n";