Browse Source

Continued:

- added spaces
- made a code block even

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/3254/head
Roland Haeder 4 years ago
parent
commit
1d48801d70
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      util/po2php.php

+ 6
- 5
util/po2php.php 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.'] = ';
}


Loading…
Cancel
Save