mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 05:20:56 +02:00
Merge pull request #2899 from Skouat/ticket/13003
[ticket/13003] Add missing language keys * Skouat/ticket/13003: [ticket/13003] Add missing language keys
This commit is contained in:
@@ -73,6 +73,9 @@ $lang = array_merge($lang, array(
|
|||||||
'CLI_EXTENSION_PURGE_FAILURE' => 'Could not purge extension %s',
|
'CLI_EXTENSION_PURGE_FAILURE' => 'Could not purge extension %s',
|
||||||
'CLI_EXTENSION_PURGE_SUCCESS' => 'Successfully purged extension %s',
|
'CLI_EXTENSION_PURGE_SUCCESS' => 'Successfully purged extension %s',
|
||||||
'CLI_EXTENSION_NOT_FOUND' => 'No extensions were found.',
|
'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.',
|
'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());
|
$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('');
|
$output->writeln('');
|
||||||
|
|
||||||
$disabled = array_keys($this->manager->all_disabled());
|
$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('');
|
$output->writeln('');
|
||||||
|
|
||||||
$purged = array_diff($all, $enabled, $disabled);
|
$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)
|
protected function print_extension_list(OutputInterface $output, $type, array $extensions)
|
||||||
{
|
{
|
||||||
$output->writeln("<info>$type:</info>");
|
$output->writeln("<info>$type</info>");
|
||||||
|
|
||||||
foreach ($extensions as $extension)
|
foreach ($extensions as $extension)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user