From: Tim Düsterhus Date: Thu, 2 Jul 2020 10:36:43 +0000 (+0200) Subject: Add missing language items for parallel workers X-Git-Tag: 5.3.0_Alpha_1~161^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bda20442ffb6888123c91ebd5186b618d50a530d;p=GitHub%2FWoltLab%2FWCF.git Add missing language items for parallel workers --- diff --git a/wcfsetup/install/files/lib/system/CLIWCF.class.php b/wcfsetup/install/files/lib/system/CLIWCF.class.php index 6a22658fca..6178e57279 100644 --- a/wcfsetup/install/files/lib/system/CLIWCF.class.php +++ b/wcfsetup/install/files/lib/system/CLIWCF.class.php @@ -133,7 +133,7 @@ class CLIWCF extends WCF { 'disableUpdateCheck' => WCF::getLanguage()->get('wcf.cli.help.disableUpdateCheck'), 'exitOnFail' => WCF::getLanguage()->get('wcf.cli.help.exitOnFail'), 'packageID=i' => WCF::getLanguage()->get('wcf.cli.help.packageID'), - 'sessionID=s' => 'sessionid', + 'sessionID=s' => WCF::getLanguage()->get('wcf.cli.help.sessionID'), ]); self::getArgvParser()->setOptions([ ArgvParser::CONFIG_CUMULATIVE_FLAGS => true, diff --git a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php index b1bdab7657..8a2b18e5b3 100644 --- a/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/WorkerCLICommand.class.php @@ -35,8 +35,8 @@ class WorkerCLICommand implements IArgumentedCLICommand { $this->argv = new ArgvParser([ 'l|list' => CLIWCF::getLanguage()->get('wcf.cli.worker.list'), 'setParameter=s' => CLIWCF::getLanguage()->get('wcf.cli.worker.setParameter'), - 'threads=i' => 'threads', - 'threadId=i' => 'threadId', + 'threads=i' => CLIWCF::getLanguage()->get('wcf.cli.worker.threads'), + 'threadId=i' => CLIWCF::getLanguage()->get('wcf.cli.worker.threadId'), ]); $this->argv->setOptions([ ArgvParser::CONFIG_FREEFORM_FLAGS => true, @@ -64,7 +64,7 @@ class WorkerCLICommand implements IArgumentedCLICommand { if ($this->argv->threadId !== null) { $threadId = $this->argv->threadId; if ($this->argv->threadId >= $this->argv->threads) { - CLIWCF::getReader()->println("Invalid threadId"); + CLIWCF::getReader()->println(CLIWCF::getLanguage()->get('wcf.cli.worker.threadId.invalid')); return; } } @@ -129,7 +129,7 @@ class WorkerCLICommand implements IArgumentedCLICommand { // is the controller process invoked by the Administrator. if ($threads > 1 && $threadId === null) { if (PHP_EOL === "\r\n") { - CLIWCF::getReader()->println('The --threads option is not available on Windows.'); + CLIWCF::getReader()->println(CLIWCF::getLanguage()->get('wcf.cli.worker.threads.windows')); return; } $this->spawnController($worker, $threads); @@ -198,7 +198,7 @@ class WorkerCLICommand implements IArgumentedCLICommand { $arguments[] = '--sessionID='.CLIWCF::getSession()->sessionID; $commandLine = PHP_BINARY.' '.implode(' ', array_map('escapeshellarg', $arguments)); - CLIWCF::getReader()->println('Using "'.$commandLine.'" as the worker command line.'); + Log::debug('Using "'.$commandLine.'" as the worker command line.'); // Reuse the environment. // - Specify TERM=dumb to prevent the worker from messing around with our terminal. diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index dec2ee8189..ac46d052ee 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -3365,8 +3365,13 @@ Fehler sind beispielsweise: - Befehle, welche ihre Aktion nicht erfolgreich ausführen konnten - Systemfehler]]> + + + + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index fcf6a70e28..e4c785415a 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -3288,8 +3288,13 @@ Errors are: - Failing commands - Core errors]]> + + + + +