Translation : Improved generate_lang_file.php to support inclusion of more than one translation file

This commit is contained in:
Benjamin Renard 2010-11-18 16:23:32 +01:00
parent ffe93fbbb4
commit 8013827839

View file

@ -24,8 +24,13 @@
require_once('../core.php');
require_once('../conf/config.inc.php');
if (isset($argv[2]) && is_file($argv[2])) {
@include($argv[2]);
if ($argc > 1) {
for ($i=1;$i<$argc;$i++) {
if (is_file($argv[$i])) {
echo $argv[$i];
@include($argv[$i]);
}
}
}
$data=array();