From 8de346b9431e9b9eeb09ed1e23fcfbaf86775b4e Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Tue, 13 Nov 2012 10:02:03 -0500 Subject: [PATCH] fix po2php \"" issue. --- util/po2php.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/po2php.php b/util/po2php.php index f29980d6ac..147c4a58d0 100644 --- a/util/po2php.php +++ b/util/po2php.php @@ -1,4 +1,5 @@ strings["'.$k.'"] = '; } - if ($inv) { $inv = False; $out .= '"'.$v.'"'; } + if ($inv) { $inv = False; $out .= '"'.$v.'"'; } $v = substr($l,8,$len-10); $v = preg_replace_callback($escape_s_exp,'escape_s',$v); @@ -113,6 +115,7 @@ function po2php_run(&$argv, &$argc) { if ($inv) { $inv = False; $out .= '"'.$v.'"'; } if ($k!="") $out .= $arr?");\n":";\n"; + $out = str_replace(DQ_ESCAPE, '\"', $out); file_put_contents($outfile, $out); } -- 2.39.5