aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorkostikov <max@kostikov.co>2018-07-22 19:39:53 +0200
committerkostikov <max@kostikov.co>2018-07-22 19:39:53 +0200
commit64efd07f6bf9220d31da61edef07adc43c271af5 (patch)
treebf7df5f6e6592c5615ad0c91feee0e5d090f9fc9 /util
parent6be66d6df9c35adb48148b791730ec9c6c533988 (diff)
downloadvolse-hubzilla-64efd07f6bf9220d31da61edef07adc43c271af5.tar.gz
volse-hubzilla-64efd07f6bf9220d31da61edef07adc43c271af5.tar.bz2
volse-hubzilla-64efd07f6bf9220d31da61edef07adc43c271af5.zip
Escape internal quotes in translation on export
Diffstat (limited to 'util')
-rw-r--r--util/php2po.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/php2po.php b/util/php2po.php
index c47dcac1b..c165006a1 100644
--- a/util/php2po.php
+++ b/util/php2po.php
@@ -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;;