Пример #1
0
 public function getParser()
 {
     $parser = parent::getParser();
     $parser->description('CakePHP Language String Extraction:')->addOption('app', ['description' => 'Directory where your application is located.'])->addOption('paths', ['description' => 'Comma separated list of paths.'])->addOption('merge', ['description' => 'Merge all domain strings into the default.po file.', 'choices' => ['yes', 'no']])->addOption('output', ['description' => 'Full path to output directory.'])->addOption('files', ['description' => 'Comma separated list of files.'])->addOption('exclude-plugins', ['default' => true, 'description' => 'Ignores all files in plugins if this command is run inside from the same app directory.'])->addOption('plugin', ['description' => 'Extracts tokens only from the plugin specified and puts the result in the plugin\'s Locale directory.'])->addOption('ignore-model-validation', ['description' => 'Ignores validation messages in the $validate property.' . ' If this flag is not set and the command is run from the same app directory,' . ' all messages in model validation rules will be extracted as tokens.'])->addOption('validation-domain', ['description' => 'If set to a value, the localization domain to be used for model validation messages.'])->addOption('exclude', ['description' => 'Comma separated list of directories to exclude.' . ' Any path containing a path segment with the provided values will be skipped. E.g. test,vendors'])->addOption('overwrite', ['description' => 'Always overwrite existing .pot files.'])->addOption('extract-core', ['description' => 'Extract messages from the CakePHP core libs.', 'choices' => ['yes', 'no']])->addOption('no-location', ['description' => 'Do not write file locations for each extracted message.']);
     return $parser;
 }
Пример #2
0
 public function getParser()
 {
     $parser = parent::getParser();
     $parser->addArgument('plugin', ['description' => 'Name of the plugin to load.']);
     return $parser;
 }