LSlang :: generate_lang_file: fix handling smarty escape modifier

This commit is contained in:
Benjamin Renard 2020-05-12 19:24:38 +02:00
parent a6f07faca0
commit 4a3e4e3fbb

View file

@ -635,6 +635,7 @@ function cli_generate_lang_file($command_args) {
$count ++;
if (preg_match_all('/\{ *tr +msg=["\']([^\}]+)["\'] *\}/',$line,$matches)) {
foreach($matches[1] as $t) {
$t = preg_replace('/[\'"]\|escape\:.*$/', '', $t);
$LSlang_cli_logger -> debug(" - \"$t\" # Line $count");
add($t, absolute2relative_path($file).":$count");
}