[ticket/11150] Translate Enabling/disabling extension

PHPBB3-11150
This commit is contained in:
Tristan Darricau 2015-09-16 14:02:36 +02:00 committed by Tristan Darricau
parent ab60adb60c
commit a5a678c0d8
No known key found for this signature in database
GPG key ID: 817043C2E29DB881

View file

@ -97,7 +97,7 @@ class extension_manager extends manager
{ {
if ($this->enable_on_install) if ($this->enable_on_install)
{ {
$io->writeError('ENABLING_EXTENSIONS', true, 1); $io->writeError(['ENABLING_EXTENSIONS', [], 1], true);
foreach ($packages as $package) foreach ($packages as $package)
{ {
try try
@ -121,7 +121,7 @@ class extension_manager extends manager
*/ */
protected function pre_update(array $packages, IOInterface $io = null) protected function pre_update(array $packages, IOInterface $io = null)
{ {
$io->writeError('DISABLING_EXTENSIONS', true, 1); $io->writeError(['DISABLING_EXTENSIONS', [], 1], true, 1);
$this->enabled_extensions = []; $this->enabled_extensions = [];
foreach ($packages as $package) foreach ($packages as $package)
{ {
@ -149,7 +149,7 @@ class extension_manager extends manager
*/ */
protected function post_update(array $packages, IOInterface $io = null) protected function post_update(array $packages, IOInterface $io = null)
{ {
$io->writeError('ENABLING_EXTENSIONS', true, 1); $io->writeError(['ENABLING_EXTENSIONS', [], 1], true, 1);
foreach ($this->enabled_extensions as $package) foreach ($this->enabled_extensions as $package)
{ {
try try
@ -190,7 +190,7 @@ class extension_manager extends manager
{ {
if ($this->purge_on_remove) if ($this->purge_on_remove)
{ {
$io->writeError('DISABLING_EXTENSIONS', true, 1); $io->writeError(['DISABLING_EXTENSIONS', [], 1], true, 1);
} }
foreach ($packages as $package) foreach ($packages as $package)