Adding omitted __()

This commit is contained in:
mark_story 2010-10-10 16:19:34 -04:00
parent ef027f6d0e
commit 1fec75e6ee
3 changed files with 6 additions and 4 deletions

View file

@ -72,10 +72,10 @@ class ConsoleInputArgument {
}
$optional = '';
if (!$this->isRequired()) {
$optional = ' <comment>(optional)</comment>';
$optional = __(' <comment>(optional)</comment>');
}
if (!empty($this->_choices)) {
$optional .= sprintf(' <comment>(choices: %s)</comment>', implode('|', $this->_choices));
$optional .= sprintf(__(' <comment>(choices: %s)</comment>'), implode('|', $this->_choices));
}
return sprintf('%s%s%s', $name, $this->_help, $optional);
}

View file

@ -76,7 +76,7 @@ class ConsoleInputOption {
$default = sprintf(__(' <comment>(default: %s)</comment>'), $this->_default);
}
if (!empty($this->_choices)) {
$default .= sprintf(' <comment>(choices: %s)</comment>', implode('|', $this->_choices));
$default .= sprintf(__(' <comment>(choices: %s)</comment>'), implode('|', $this->_choices));
}
if (!empty($this->_short)) {
$short = ', -' . $this->_short;

View file

@ -110,7 +110,9 @@ class I18nShell extends Shell {
public function getOptionParser() {
$parser = parent::getOptionParser();
return $parser->description(__('I18n Shell initializes i18n database table for your application and generates .pot files(s) with translations.'))
->addSubcommand('initdb', array('help' => __('Initialize the i18n table.')))
->addSubcommand('initdb', array(
'help' => __('Initialize the i18n table.')
))
->addSubcommand('extract', array(
'help' => __('Extract the po translations from your application'),
'parser' => $this->Extract->getOptionParser()