mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12656] Use lang keys for all CLI strings
PHPBB3-12656
This commit is contained in:
@@ -26,7 +26,7 @@ class disable extends command
|
||||
->addArgument(
|
||||
'extension-name',
|
||||
InputArgument::REQUIRED,
|
||||
'Name of the extension'
|
||||
$this->user->lang('CLI_EXTENSION_NAME')
|
||||
)
|
||||
;
|
||||
}
|
||||
@@ -39,13 +39,13 @@ class disable extends command
|
||||
|
||||
if ($this->manager->is_enabled($name))
|
||||
{
|
||||
$output->writeln("<error>Could not disable extension $name</error>");
|
||||
$output->writeln('<error>' . $this->user->lang('CLI_EXTENSION_DISABLE_FAILURE', $name) . '</error>');
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_DISABLE', time(), array($name));
|
||||
$output->writeln("<info>Successfully disabled extension $name</info>");
|
||||
$output->writeln('<info>' . $this->user->lang('CLI_EXTENSION_DISABLE_SUCCESS', $name) . '</info>');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user