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
1 changed files with 17 additions and 14 deletions

View File

@ -92,8 +92,10 @@ function po2php_run(&$argv, &$argc) {
.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) {
$k .= trim($l,"\"\r\n");
@ -107,6 +109,7 @@ function po2php_run(&$argv, &$argc) {
$out .= '"'.$v.'"';
}
if ($k != "") {
/// @TODO Maybe add parentheses here?
$out .= $arr ? ");\n" : ";\n";
}
$arr = false;