diff options
Diffstat (limited to 'phpBB/phpbb/console/command/extension/disable.php')
| -rw-r--r-- | phpBB/phpbb/console/command/extension/disable.php | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/phpBB/phpbb/console/command/extension/disable.php b/phpBB/phpbb/console/command/extension/disable.php index 5f0e74b984..1eee16cbd9 100644 --- a/phpBB/phpbb/console/command/extension/disable.php +++ b/phpBB/phpbb/console/command/extension/disable.php @@ -22,11 +22,11 @@ class disable extends command  	{  		$this  			->setName('extension:disable') -			->setDescription('Disables the specified extension.') +			->setDescription($this->user->lang('CLI_DESCRIPTION_DISABLE_EXTENSION'))  			->addArgument(  				'extension-name',  				InputArgument::REQUIRED, -				'Name of the extension' +				$this->user->lang('CLI_EXTENSION_NAME')  			)  		;  	} @@ -37,15 +37,15 @@ class disable extends command  		$this->manager->disable($name);  		$this->manager->load_extensions(); -		if ($this->manager->enabled($name)) +		if ($this->manager->is_enabled($name))  		{ -			$output->writeln("<error>Could not disable extension $name</error>"); +			$output->writeln('<error>' . $this->user->lang('CLI_EXTENSION_DISABLE_FAILURE', $name) . '</error>');  			return 1;  		}  		else  		{  			$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_DISABLE', time(), array($name)); -			$output->writeln("<info>Successfully disabled extension $name</info>"); +			$output->writeln('<info>' . $this->user->lang('CLI_EXTENSION_DISABLE_SUCCESS', $name) . '</info>');  			return 0;  		}  	} | 
