aboutsummaryrefslogtreecommitdiffstats
path: root/util/php2po.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-07-29 12:05:53 +0200
committerMax Kostikov <max@kostikov.co>2018-07-29 12:05:53 +0200
commit90a9febb6cf6a42c9da1c16c2da6f8cbde1921b7 (patch)
tree34a7cc4c4ffaeec9fd59dd715aab65c57665dfd2 /util/php2po.php
parente4a1286aae411023210628d3be306420f7844d22 (diff)
downloadvolse-hubzilla-90a9febb6cf6a42c9da1c16c2da6f8cbde1921b7.tar.gz
volse-hubzilla-90a9febb6cf6a42c9da1c16c2da6f8cbde1921b7.tar.bz2
volse-hubzilla-90a9febb6cf6a42c9da1c16c2da6f8cbde1921b7.zip
Workaround on possible error
Diffstat (limited to 'util/php2po.php')
-rw-r--r--util/php2po.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/php2po.php b/util/php2po.php
index 99578a12d..17feafa5d 100644
--- a/util/php2po.php
+++ b/util/php2po.php
@@ -26,7 +26,8 @@
$out = "";
$infile = file($pofile);
- $k="";
+ $k = "";
+ $c = "";
$ink = False;
foreach ($infile as $l) {
@@ -39,8 +40,10 @@
$v = App::$strings[$k];
} else {
$k = "__ctx:".$c."__ ".$k;
- if (isset(App::$strings[$k]))
+ if (isset(App::$strings[$k])) {
$v = App::$strings[$k];
+ $c = "";
+ }
}
if (!empty($v)) {
if (is_array($v)) {