1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12656] Use lang keys for all CLI strings

PHPBB3-12656
This commit is contained in:
Dhruv
2014-07-23 01:23:44 +05:30
parent 4092b63be3
commit c81438e1f8
11 changed files with 55 additions and 32 deletions

View File

@@ -26,7 +26,7 @@ class enable extends command
->addArgument(
'extension-name',
InputArgument::REQUIRED,
'Name of the extension'
$this->user->lang('CLI_EXTENSION_NAME')
)
;
}
@@ -40,12 +40,12 @@ class enable extends command
if ($this->manager->is_enabled($name))
{
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_ENABLE', time(), array($name));
$output->writeln("<info>Successfully enabled extension $name</info>");
$output->writeln('<error>' . $this->user->lang('CLI_EXTENSION_ENABLE_FAILURE', $name) . '</error>');
return 0;
}
else
{
$output->writeln("<error>Could not enable extension $name</error>");
$output->writeln('<info>' . $this->user->lang('CLI_EXTENSION_ENABLE_SUCCESS', $name) . '</info>');
return 1;
}
}