require_once('/Server/htdocs/ISSO/Functions.php');
-// TODO - process $argv and translate them into xgettext arguments
-
// ###################################################################
// generate the list of files to process
// ###################################################################
// run xgettext on all of the various files that we have now created
-exec('xgettext -n ' . implode(' ', $files));
+// get any arguments and just pass them to xgettext
+$arguments = $argv;
+unset($arguments[0]);
+
+exec('xgettext ' . implode(' ', $arguments) . ' ' . implode(' ', $files));
// ###################################################################
// remove all the files we no longer need