]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15249 localization fixes
authorskodak <skodak>
Sun, 31 May 2009 12:04:51 +0000 (12:04 +0000)
committerskodak <skodak>
Sun, 31 May 2009 12:04:51 +0000 (12:04 +0000)
admin/cli/install.php
admin/cli/reset_password.php
admin/cli/upgrade.php

index b2f6cbcaa0abf460adbdd3c9c2ee9d951e53a75a..3c52838b912188b95ec5894e7a6f19b43f0968be 100644 (file)
@@ -178,7 +178,7 @@ if (file_exists($CFG->dirroot.'/install/lang/'.$lang)) {
 
 if ($unrecognized) {
     $unrecognized = implode("\n  ", $unrecognized);
-    cli_error('cliunknowoption', 'admin', $unrecognized);
+    cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
 }
 
 if ($options['help']) {
index ee1a5b71e9ab6507303964a2843095b0f0ff050d..749ef4de254f73902347b47ab9d8e6cf2f4e3f2c 100644 (file)
@@ -40,8 +40,8 @@ list($options, $unrecognized) = cli_get_params(array('help'=>false),
 $interactive = empty($options['non-interactive']);
 
 if ($unrecognized) {
-    $error = implode("\n  ", $unrecognized);
-    cli_error("Unrecognized options:\n  $error \n. Please use --help option."); // TODO: localize
+    $unrecognized = implode("\n  ", $unrecognized);
+    cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
 }
 
 if ($options['help']) {
index 7d1baadb1d9d2efe1ddbbf79e03528b30018a7d9..afb50bbbe86e666ca996bc57e9cd82c5752cde8c 100644 (file)
@@ -49,7 +49,7 @@ $interactive = empty($options['non-interactive']);
 
 if ($unrecognized) {
     $unrecognized = implode("\n  ", $unrecognized);
-    cli_error('cliunknowoption', 'admin', $unrecognized);
+    cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
 }
 
 if ($options['help']) {