Index: sfPakeI18N.php =================================================================== --- sfPakeI18N.php (.../trunk/data/tasks/sfPakeI18N.php) (revision 4366) +++ sfPakeI18N.php (.../plugins/sfI18nExtractPlugin/data/tasks/sfPakeI18N.php) (revision 4366) @@ -17,8 +17,26 @@ pake_desc('extract i18n strings from php files'); pake_task('i18n-extract'); -function run_i18n_extract($task, $args, $options) +function run_i18n_extract($task, $args) { + $options = array(); + for ($i = 0, $max = count($args); $i < $max; $i++) + { + if (0 === strpos($args[$i], '--')) + { + if (false !== $pos = strpos($args[$i], '=')) + { + $options[substr($args[$i], 2, $pos - 2)] = substr($args[$i], $pos + 1); + } + else + { + $options[substr($args[$i], 2)] = true; + } + unset($args[$i]); + } + } + $args = array_values($args); + if (!count($args)) { throw new Exception('You must provide the application.');