X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2Fpo2php.php;h=75442406a1a54d80c14734258f18f4dd8f64540e;hb=8215b9da87870425a86e5d77fb62f5ef11d691e2;hp=f26e93e51044922e26a598c866596af0e82e82d1;hpb=1d48801d70100378d22a9f3858249f16e988c4f8;p=friendica.git diff --git a/util/po2php.php b/util/po2php.php index f26e93e510..75442406a1 100644 --- a/util/po2php.php +++ b/util/po2php.php @@ -99,7 +99,7 @@ function po2php_run(&$argv, &$argc) { } if ($ink) { - $k .= trim($l,"\"\r\n"); + $k .= trim($l, "\"\r\n"); $k = preg_replace_callback($escape_s_exp, 'escape_s', $k); //$out .= '$a->strings['.$k.'] = '; } @@ -107,14 +107,13 @@ function po2php_run(&$argv, &$argc) { if (substr($l, 0, 6) == "msgid ") { if ($inv) { $inv = false; - $out .= '"'.$v.'"'; + $out .= '"' . $v . '"'; } if ($k != "") { - /// @TODO Maybe add parentheses here? - $out .= $arr ? ");\n" : ";\n"; + $out .= ($arr) ? ");\n" : ";\n"; } $arr = false; - $k = str_replace("msgid ","",$l); + $k = str_replace("msgid ", "", $l); if ($k != '""') { $k = trim($k, "\"\r\n"); } else {