mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/12656] Use lang keys for all CLI strings
PHPBB3-12656
This commit is contained in:
@@ -30,18 +30,18 @@ class increment extends command
|
||||
->addArgument(
|
||||
'key',
|
||||
InputArgument::REQUIRED,
|
||||
"The configuration option's name"
|
||||
$this->user->lang('CLI_CONFIG_OPTION_NAME')
|
||||
)
|
||||
->addArgument(
|
||||
'increment',
|
||||
InputArgument::REQUIRED,
|
||||
'Amount to increment by'
|
||||
$this->user->lang('CLI_CONFIG_INCREMENT_BY')
|
||||
)
|
||||
->addOption(
|
||||
'dynamic',
|
||||
'd',
|
||||
InputOption::VALUE_NONE,
|
||||
'Set this option if the configuration option changes too frequently to be efficiently cached.'
|
||||
$this->user-lang('CLI_CONFIG_CANNOT_CACHED')
|
||||
)
|
||||
;
|
||||
}
|
||||
@@ -65,6 +65,6 @@ class increment extends command
|
||||
|
||||
$this->config->increment($key, $increment, $use_cache);
|
||||
|
||||
$output->writeln("<info>Successfully incremented config $key</info>");
|
||||
$output->writeln('<info>' . $this->user->lang('CLI_CONFIG_INCREMENT_SUCCESS', $key) . '</info>');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user