generate_lang_file.php : fix to handle double-quotes in PHP output

This commit is contained in:
Benjamin Renard 2016-01-28 18:10:08 +01:00
parent 4f1b44fdda
commit dda02c0ff4

View file

@ -318,6 +318,8 @@ foreach($data as $key => $val) {
if ($copyoriginalvalue && $val=="") {
$val=$key;
}
$key=str_replace('"','\\"',$key);
$val=str_replace('"','\\"',$val);
if ($additionalfileformat) {
print "\$GLOBALS['LSlang'][\"$key\"] = \"$val\";\n";
}