mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13003] Add missing language keys
PHPBB3-13003
This commit is contained in:
parent
a7a05ca75c
commit
923a818e37
2 changed files with 7 additions and 4 deletions
|
@ -73,6 +73,9 @@ $lang = array_merge($lang, array(
|
|||
'CLI_EXTENSION_PURGE_FAILURE' => 'Could not purge extension %s',
|
||||
'CLI_EXTENSION_PURGE_SUCCESS' => 'Successfully purged extension %s',
|
||||
'CLI_EXTENSION_NOT_FOUND' => 'No extensions were found.',
|
||||
'CLI_EXTENSIONS_AVAILABLE' => 'Available',
|
||||
'CLI_EXTENSIONS_DISABLED' => 'Disabled',
|
||||
'CLI_EXTENSIONS_ENABLED' => 'Enabled',
|
||||
|
||||
'CLI_FIXUP_RECALCULATE_EMAIL_HASH_SUCCESS' => 'Successfully recalculated all email hashes.',
|
||||
));
|
||||
|
|
|
@ -37,22 +37,22 @@ class show extends command
|
|||
}
|
||||
|
||||
$enabled = array_keys($this->manager->all_enabled());
|
||||
$this->print_extension_list($output, 'Enabled', $enabled);
|
||||
$this->print_extension_list($output, $this->user->lang('CLI_EXTENSIONS_ENABLED') . $this->user->lang('COLON'), $enabled);
|
||||
|
||||
$output->writeln('');
|
||||
|
||||
$disabled = array_keys($this->manager->all_disabled());
|
||||
$this->print_extension_list($output, 'Disabled', $disabled);
|
||||
$this->print_extension_list($output, $this->user->lang('CLI_EXTENSIONS_DISABLED') . $this->user->lang('COLON'), $disabled);
|
||||
|
||||
$output->writeln('');
|
||||
|
||||
$purged = array_diff($all, $enabled, $disabled);
|
||||
$this->print_extension_list($output, 'Available', $purged);
|
||||
$this->print_extension_list($output, $this->user->lang('CLI_EXTENSIONS_AVAILABLE') . $this->user->lang('COLON'), $purged);
|
||||
}
|
||||
|
||||
protected function print_extension_list(OutputInterface $output, $type, array $extensions)
|
||||
{
|
||||
$output->writeln("<info>$type:</info>");
|
||||
$output->writeln("<info>$type</info>");
|
||||
|
||||
foreach ($extensions as $extension)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue