Skip to content
Permalink
Browse files

Adding omitted __()

  • Loading branch information...
markstory committed Oct 10, 2010
1 parent ef027f6 commit 1fec75e6ee39e34117dfa88a8e9abf5d0d8ff018
Showing with 6 additions and 4 deletions.
  1. +2 −2 cake/console/console_input_argument.php
  2. +1 −1 cake/console/console_input_option.php
  3. +3 −1 cake/console/libs/i18n.php
@@ -72,10 +72,10 @@ public function help($width = 0) {
}
$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);
}
@@ -76,7 +76,7 @@ public function help($width = 0) {
$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;
@@ -110,7 +110,9 @@ public function initdb() {
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()

0 comments on commit 1fec75e

Please sign in to comment.
You can’t perform that action at this time.