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