Escape internal quotes in translation on export

This commit is contained in:
kostikov 2018-07-22 19:39:53 +02:00
parent 6be66d6df9
commit 64efd07f6b

View File

@ -32,17 +32,17 @@
if ($k!="" && substr($l,0,7)=="msgstr "){
$ink = False;
$v = '""';
$v = '';
//echo "DBG: k:'$k'\n";
if (isset(App::$strings[$k])) {
$v= '"'.App::$strings[$k].'"';
$v= App::$strings[$k];
//echo "DBG\n";
//var_dump($k, $v, App::$strings[$k], $v);
//echo "/DBG\n";
}
//echo "DBG: v:'$v'\n";
$l = "msgstr ".$v."\n";
$l = "msgstr \"".str_replace('"','\"',$v)."\"\n";
}
if (substr($l,0,6)=="msgid_" || substr($l,0,7)=="msgstr[" )$ink = False;;