Merge branch 'patch-2' into 'dev'

Escape internal quotes in translation on export

See merge request hubzilla/core!1237

(cherry picked from commit 84e57d040b)

64efd07f Escape internal quotes in translation on export
87857fe5 Update hmessages.po
3342fc22 Update hstrings.php
This commit is contained in:
Mario
2018-07-23 19:55:00 +02:00
parent aa01c2f4db
commit 091ef33f18
3 changed files with 268 additions and 261 deletions

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;;