1
0
Fork 0

space-time season continues ...

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-24 22:44:18 +01:00
parent 239dfea4e6
commit 566cfb8418
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -92,8 +92,10 @@ function po2php_run(&$argv, &$argc) {
.preg_replace_callback($escape_s_exp,'escape_s',$match[2]) .",\n"; .preg_replace_callback($escape_s_exp,'escape_s',$match[2]) .",\n";
} }
if (substr($l,0,6)=="msgid_") { $ink = False; $out .= '$a->strings["'.$k.'"] = '; }; if (substr($l, 0, 6) == "msgid_") {
$ink = false;
$out .= '$a->strings["' . $k . '"] = ';
}
if ($ink) { if ($ink) {
$k .= trim($l,"\"\r\n"); $k .= trim($l,"\"\r\n");
@ -107,6 +109,7 @@ function po2php_run(&$argv, &$argc) {
$out .= '"'.$v.'"'; $out .= '"'.$v.'"';
} }
if ($k != "") { if ($k != "") {
/// @TODO Maybe add parentheses here?
$out .= $arr ? ");\n" : ";\n"; $out .= $arr ? ");\n" : ";\n";
} }
$arr = false; $arr = false;