Skip to content
Permalink
Browse files

Adjust the params.

  • Loading branch information...
dereuromark committed Jun 24, 2015
1 parent 12dd82a commit a13d06c45dd9b03bacd564129d3a433cfc24555b
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/Shell/I18nShell.php
@@ -81,10 +81,9 @@ public function init($language = null) {
}
$this->_paths = [APP];
if (!empty($this->params['plugin'])) {
$plugin = Inflector::camelize($this->params['plugin']);
if ($this->param('plugin')) {
$plugin = Inflector::camelize($this->param('plugin'));
$this->_paths = [Plugin::classPath($plugin)];
$this->params['plugin'] = $plugin;
}
$response = $this->in('What folder?', null, rtrim($this->_paths[0], DS) . DS . 'Locale');
@@ -103,7 +102,7 @@ public function init($language = null) {
$filename = $fileinfo->getFilename();
$newFilename = $fileinfo->getBasename('.pot');
$newFilename = $newFilename . '.po';
if (empty($this->params['force']) && is_file($targetFolder . $newFilename)) {
if (!$this->param('force') && is_file($targetFolder . $newFilename)) {
$this->err('File ' . $newFilename . ' exists, skipping. Use --force or -f to force overwriting');
continue;
}

0 comments on commit a13d06c

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