Skip to content

Commit 9d72b92

Browse files
committed
Merge pull request #92 from filipc/master
Allow to specify environment in sfI18nExtractTask
2 parents 8afa4a8 + 77a46cd commit 9d72b92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/task/i18n/sfI18nExtractTask.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ protected function configure()
3434
new sfCommandArgument('culture', sfCommandArgument::REQUIRED, 'The target culture'),
3535
));
3636

37+
$this->addOptions( array(
38+
new sfCommandOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'The environment', 'dev'),
39+
));
40+
3741
$this->addOptions(array(
3842
new sfCommandOption('display-new', null, sfCommandOption::PARAMETER_NONE, 'Output all new found strings'),
3943
new sfCommandOption('display-old', null, sfCommandOption::PARAMETER_NONE, 'Output all old strings'),
@@ -54,6 +58,10 @@ protected function configure()
5458
By default, the task only displays the number of new and old strings
5559
it found in the current project.
5660
61+
You can specify project environment by setting option:
62+
63+
[./symfony i18n:extract --env=ENVIRONMENT|INFO]
64+
5765
If you want to display the new strings, use the [--display-new|COMMENT] option:
5866
5967
[./symfony i18n:extract --display-new frontend fr|INFO]

0 commit comments

Comments
 (0)