From 742a5e74daf806fac2fb42ae09c922cfa4c5e843 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 21 Aug 2015 12:10:44 +0200 Subject: [PATCH] generate_lang_file.php : manage addons files --- public_html/lang/generate_lang_file.php | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 79756907..deedb3dd 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -227,6 +227,55 @@ function find_and_parse_template_file($dir) { find_and_parse_template_file(LS_TEMPLATES_DIR); find_and_parse_template_file(LS_LOCAL_DIR.LS_TEMPLATES_DIR); +/* + * Manage addons files + */ + +function parse_addon_file($file) { + foreach(file($file) as $line) { + $offset=0; + while ($pos = strpos($line,'_(',$offset)) { + $quote=''; + $res=''; + for ($i=$pos+2;$i