Skip to content
Permalink
Browse files

Re-formatting code and removing old help method.

  • Loading branch information...
markstory committed Oct 14, 2010
1 parent 03688bc commit 81d61a66c8ff8e01c57e712192dd1b7069a072b2
Showing with 4 additions and 24 deletions.
  1. +4 −24 cake/console/libs/i18n.php
@@ -109,33 +109,13 @@ 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(
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('extract', array(
))->addSubcommand('extract', array(
'help' => __('Extract the po translations from your application'),
'parser' => $this->Extract->getOptionParser()
));
}
/**
* Show help screen.
*
*/
public function help() {
$this->hr();
$this->out(__('I18n Shell:'));
$this->hr();
$this->out(__('I18n Shell initializes i18n database table for your application'));
$this->out(__('and generates .pot file(s) with translations.'));
$this->hr();
$this->out(__('usage:'));
$this->out(' cake i18n help');
$this->out(' cake i18n initdb [-datasource custom]');
$this->out();
$this->hr();
$this->Extract->help();
}
}

0 comments on commit 81d61a6

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