space-time season continues ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
239dfea4e6
commit
566cfb8418
1 changed files with 17 additions and 14 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue