- if ($k != "" && substr($l, 0, 7) == 'msgstr[') {
- if ($ink) {
- $ink = false;
- $out .= '$a->strings["' . $k . '"] = ';
- }
- if ($inv) {
- $inv = false;
- $out .= '"' . $v . '"';
- }
-
- if (!$arr) {
- $arr = true;
- $out .= "[\n";
- }
-
- $match = [];
- preg_match("|\[([0-9]*)\] (.*)|", $l, $match);
- if ($match[2] !== '""') {
- $out .= "\t"
- . preg_replace_callback($escape_s_exp, [$this, 'escapeDollar'], $match[1])
- . ' => '
- . preg_replace_callback($escape_s_exp, [$this, 'escapeDollar'], $match[2])
- . ",\n";
- }
- }