mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding omitted __()
This commit is contained in:
parent
ef027f6d0e
commit
1fec75e6ee
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue