Exemplo n.º 1
0
 /**
  * execute
  *
  * Setup options to only look for un-minified js files
  *
  * @return void
  */
 public function execute()
 {
     $this->_getPaths();
     $this->params['output'] = dirname($this->_paths[0]) . DS . 'Locale';
     $this->_exclude[] = DS . '_';
     $this->_exclude[] = '.min.js';
     parent::execute();
 }
Exemplo n.º 2
0
 /**
  * execute
  *
  * Exclude irrelevant files. If it's a vendor or a test file - keep that stuff out of the
  * pot files. also, if it's in the webroot it's either not cake or just the standard text
  * in the index/test.php files which is irrelevant
  *
  * Also set the default domain based on the config for the translations plugin
  *
  * @return void
  */
 public function execute()
 {
     $config = Translation::config();
     $this->_defaultDomain = $config['domain'];
     $this->params['ignore-model-validation'] = false;
     $this->_exclude[] = 'Test';
     $this->_exclude[] = 'Vendor';
     $this->_exclude[] = 'webroot';
     parent::execute();
 }