Continued:

- added spaces
- made a code block even

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2017-03-25 13:25:33 +01:00
parent 177a0c8320
commit 1d48801d70
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -86,10 +86,11 @@ function po2php_run(&$argv, &$argc) {
}
$match = array();
preg_match("|\[([0-9]*)\] (.*)|", $l, $match);
$out .= "\t".
preg_replace_callback($escape_s_exp,'escape_s',$match[1])
." => "
.preg_replace_callback($escape_s_exp,'escape_s',$match[2]) .",\n";
$out .= "\t"
. preg_replace_callback($escape_s_exp, 'escape_s', $match[1])
. " => "
. preg_replace_callback($escape_s_exp, 'escape_s', $match[2])
. ",\n";
}
if (substr($l, 0, 6) == "msgid_") {
@ -99,7 +100,7 @@ function po2php_run(&$argv, &$argc) {
if ($ink) {
$k .= trim($l,"\"\r\n");
$k = preg_replace_callback($escape_s_exp,'escape_s',$k);
$k = preg_replace_callback($escape_s_exp, 'escape_s', $k);
//$out .= '$a->strings['.$k.'] = ';
}