mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12656] Use lang keys for CLI command descriptions
PHPBB3-12656
This commit is contained in:
2
phpBB/phpbb/console/command/cache/purge.php
vendored
2
phpBB/phpbb/console/command/cache/purge.php
vendored
@@ -59,7 +59,7 @@ class purge extends \phpbb\console\command\command
|
||||
{
|
||||
$this
|
||||
->setName('cache:purge')
|
||||
->setDescription('Purge the cache.')
|
||||
->setDescription($this->user->lang('PURGE_CACHE'))
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ class delete extends command
|
||||
{
|
||||
$this
|
||||
->setName('config:delete')
|
||||
->setDescription('Deletes a configuration option')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_DELETE_CONFIG'))
|
||||
->addArgument(
|
||||
'key',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -26,7 +26,7 @@ class get extends command
|
||||
{
|
||||
$this
|
||||
->setName('config:get')
|
||||
->setDescription("Gets a configuration option's value")
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_GET_CONFIG'))
|
||||
->addArgument(
|
||||
'key',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -26,7 +26,7 @@ class increment extends command
|
||||
{
|
||||
$this
|
||||
->setName('config:increment')
|
||||
->setDescription("Increments a configuration option's value")
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_INCREMENT_CONFIG'))
|
||||
->addArgument(
|
||||
'key',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -26,7 +26,7 @@ class set extends command
|
||||
{
|
||||
$this
|
||||
->setName('config:set')
|
||||
->setDescription("Sets a configuration option's value")
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_SET_CONFIG'))
|
||||
->addArgument(
|
||||
'key',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -26,7 +26,7 @@ class set_atomic extends command
|
||||
{
|
||||
$this
|
||||
->setName('config:set-atomic')
|
||||
->setDescription("Sets a configuration option's value only if the old matches the current value.")
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_SET_ATOMIC_CONFIG'))
|
||||
->addArgument(
|
||||
'key',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -47,7 +47,7 @@ class migrate extends \phpbb\console\command\command
|
||||
{
|
||||
$this
|
||||
->setName('db:migrate')
|
||||
->setDescription('Updates the database by applying migrations.')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_DB_MIGRATE'))
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,7 @@ class migration_tips extends \phpbb\console\command\command
|
||||
{
|
||||
$this
|
||||
->setName('dev:migration-tips')
|
||||
->setDescription('Finds migrations that are not depended on.')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_FIND_MIGRATIONS'))
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ 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,
|
||||
|
@@ -22,7 +22,7 @@ class enable extends command
|
||||
{
|
||||
$this
|
||||
->setName('extension:enable')
|
||||
->setDescription('Enables the specified extension.')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_ENABLE_EXTENSION'))
|
||||
->addArgument(
|
||||
'extension-name',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -22,7 +22,7 @@ class purge extends command
|
||||
{
|
||||
$this
|
||||
->setName('extension:purge')
|
||||
->setDescription('Purges the specified extension.')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_PURGE_EXTENSION'))
|
||||
->addArgument(
|
||||
'extension-name',
|
||||
InputArgument::REQUIRED,
|
||||
|
@@ -21,7 +21,7 @@ class show extends command
|
||||
{
|
||||
$this
|
||||
->setName('extension:show')
|
||||
->setDescription('Lists all extensions in the database and on the filesystem.')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_LIST_EXTENSIONS'))
|
||||
;
|
||||
}
|
||||
|
||||
|
@@ -31,7 +31,7 @@ class recalculate_email_hash extends \phpbb\console\command\command
|
||||
{
|
||||
$this
|
||||
->setName('fixup:recalculate-email-hash')
|
||||
->setDescription('Recalculates the user_email_hash column of the users table.')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_RECALCULATE_EMAIL_HASH'))
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user