Continued:
- added spaces - made a code block even Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
177a0c8320
commit
1d48801d70
|
@ -86,10 +86,11 @@ function po2php_run(&$argv, &$argc) {
|
||||||
}
|
}
|
||||||
$match = array();
|
$match = array();
|
||||||
preg_match("|\[([0-9]*)\] (.*)|", $l, $match);
|
preg_match("|\[([0-9]*)\] (.*)|", $l, $match);
|
||||||
$out .= "\t".
|
$out .= "\t"
|
||||||
preg_replace_callback($escape_s_exp,'escape_s',$match[1])
|
. preg_replace_callback($escape_s_exp, 'escape_s', $match[1])
|
||||||
." => "
|
. " => "
|
||||||
.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_") {
|
if (substr($l, 0, 6) == "msgid_") {
|
||||||
|
@ -99,7 +100,7 @@ function po2php_run(&$argv, &$argc) {
|
||||||
|
|
||||||
if ($ink) {
|
if ($ink) {
|
||||||
$k .= trim($l,"\"\r\n");
|
$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.'] = ';
|
//$out .= '$a->strings['.$k.'] = ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue