From 8013827839041b9611aa3f82cba6e4ebc7cb1d93 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 18 Nov 2010 16:23:32 +0100 Subject: [PATCH] Translation : Improved generate_lang_file.php to support inclusion of more than one translation file --- public_html/lang/generate_lang_file.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index f066929f..f3d80d6a 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -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();