Commit: 981f393c8cc978bad8ae1f60efae19ee1bbfa2f6

Author: David Persson | Date: 2010-07-29 01:09:24 +0200
Ask for scope once.
diff --git a/libraries/lithium/console/command/g11n/Extract.php b/libraries/lithium/console/command/g11n/Extract.php index 6f8fcc9..9b32c6f 100644 --- a/libraries/lithium/console/command/g11n/Extract.php +++ b/libraries/lithium/console/command/g11n/Extract.php @@ -145,8 +145,9 @@ class Extract extends \lithium\console\Command { $name = 'runtime' . uniqid(); $configs[$name] = compact('adapter', 'path', 'scope'); Catalog::config($configs); + } else { + $scope = $this->in('Scope:', array('default' => $this->scope)); } - $scope = $configs[$name]['scope'] ?: $this->in('Scope:', array('default' => $this->scope)); $message = array(); $message[] = 'The template is now ready to be saved.';