aboutsummaryrefslogtreecommitdiffstats
path: root/util/po2php.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-13 19:54:13 +0200
committerMax Kostikov <max@kostikov.co>2018-10-13 19:54:13 +0200
commite96e3dc6e6fe7e2e0d5131d8168f048e24216962 (patch)
treebbf911304ccd5e8b8e5cbb3db4018dfd692f38e0 /util/po2php.php
parent3ac4337aec929d6cdf12a1645ab142dc5279bd6c (diff)
downloadvolse-hubzilla-e96e3dc6e6fe7e2e0d5131d8168f048e24216962.tar.gz
volse-hubzilla-e96e3dc6e6fe7e2e0d5131d8168f048e24216962.tar.bz2
volse-hubzilla-e96e3dc6e6fe7e2e0d5131d8168f048e24216962.zip
Update po2php.php
Diffstat (limited to 'util/po2php.php')
-rw-r--r--util/po2php.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/po2php.php b/util/po2php.php
index 50941c062..4aea1c943 100644
--- a/util/po2php.php
+++ b/util/po2php.php
@@ -58,8 +58,9 @@ function po2php_run($argc,$argv) {
$out .= 'function string_plural_select_' . $lang . '($n){'."\n";
$out .= ' return '.$cond.';'."\n";
$out .= '}}'."\n";
-
- $out .= 'App::$rtl = ' . intval($rtl) ;
+
+ $out .= 'App::$rtl = ' . intval($rtl) . ";\n" ;
+ $out .= 'App::$strings["plural_function_code"] = "return ' . str_replace("$", "", $cond) . ';"';
}
if ($k!="" && substr($l,0,7)=="msgstr "){