aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/config/set_atomic.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2014-07-23 01:23:44 +0530
committerDhruv <dhruv.goel92@gmail.com>2014-07-23 01:23:44 +0530
commitc81438e1f85633dd770fcddd8e332b278338732f (patch)
tree87e588947878a0f3c036b91cbe7b15e594cfe913 /phpBB/phpbb/console/command/config/set_atomic.php
parent4092b63be39453f9a7ce4f985217099ab10aae90 (diff)
downloadforums-c81438e1f85633dd770fcddd8e332b278338732f.tar
forums-c81438e1f85633dd770fcddd8e332b278338732f.tar.gz
forums-c81438e1f85633dd770fcddd8e332b278338732f.tar.bz2
forums-c81438e1f85633dd770fcddd8e332b278338732f.tar.xz
forums-c81438e1f85633dd770fcddd8e332b278338732f.zip
[ticket/12656] Use lang keys for all CLI strings
PHPBB3-12656
Diffstat (limited to 'phpBB/phpbb/console/command/config/set_atomic.php')
-rw-r--r--phpBB/phpbb/console/command/config/set_atomic.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/phpbb/console/command/config/set_atomic.php b/phpBB/phpbb/console/command/config/set_atomic.php
index 31460d5137..e8c69a0885 100644
--- a/phpBB/phpbb/console/command/config/set_atomic.php
+++ b/phpBB/phpbb/console/command/config/set_atomic.php
@@ -30,23 +30,23 @@ class set_atomic extends command
->addArgument(
'key',
InputArgument::REQUIRED,
- "The configuration option's name"
+ $this->user->lang('CLI_CONFIG_OPTION_NAME')
)
->addArgument(
'old',
InputArgument::REQUIRED,
- 'Current configuration value, use 0 and 1 to specify boolean values'
+ $this->user->lang('CLI_CONFIG_CURRENT')
)
->addArgument(
'new',
InputArgument::REQUIRED,
- 'New configuration value, use 0 and 1 to specify boolean values'
+ $this->user->lang('CLI_CONFIG_NEW')
)
->addOption(
'dynamic',
'd',
InputOption::VALUE_NONE,
- 'Set this option if the configuration option changes too frequently to be efficiently cached.'
+ $this->user->lang('CLI_CONFIG_CANNOT_CACHED')
)
;
}
@@ -72,12 +72,12 @@ class set_atomic extends command
if ($this->config->set_atomic($key, $old_value, $new_value, $use_cache))
{
- $output->writeln("<info>Successfully set config $key</info>");
+ $output->writeln('<info>' . $this->user->lang('CLI_CONFIG_SET_SUCCESS', $key) . '</info>');
return 0;
}
else
{
- $output->writeln("<error>Could not set config $key</error>");
+ $output->writeln('<error>' . $this->user->lang('CLI_CONFIG_SET_FAILURE', $key) . '</error>');
return 1;
}
}