Skip to content

Commit

Permalink
MDL-53260 upgrade: Option to display CLI upgrade messages in English
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavkav authored and junpataleta committed Mar 21, 2016
1 parent fed66ad commit 14aaa2d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion admin/cli/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,21 @@
array(
'non-interactive' => false,
'allow-unstable' => false,
'help' => false
'help' => false,
'lang' => 'en'
),
array(
'h' => 'help'
)
);

global $SESSION;
if ($options['lang']) {
$SESSION->lang = $options['lang'];
} else {
$SESSION->lang = 'en';
}

$interactive = empty($options['non-interactive']);

if ($unrecognized) {
Expand All @@ -74,6 +82,7 @@
--non-interactive No interactive questions or confirmations
--allow-unstable Upgrade even if the version is not marked as stable yet,
required in non-interactive mode.
--lang=CODE Set preferred language for CLI output, during upgrade process (default:en).
-h, --help Print out this help
Example:
Expand Down

0 comments on commit 14aaa2d

Please sign in to comment.