From 6f6c6ecfec25a7dbe629d06642ba6b9929c7cb2f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 21 Aug 2015 13:03:37 +0200 Subject: [PATCH] generate_lang_file.php : only ask translation for strings translated with __() function in LSaddons --- public_html/lang/generate_lang_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 488884e3..e8b5bad1 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -256,7 +256,7 @@ find_and_parse_template_file(LS_LOCAL_DIR.LS_TEMPLATES_DIR); function parse_addon_file($file) { foreach(file($file) as $line) { $offset=0; - while ($pos = strpos($line,'_(',$offset)) { + while ($pos = strpos($line,'__(',$offset)) { $quote=''; $res=''; for ($i=$pos+2;$i