diff options
author | Max Kostikov <max@kostikov.co> | 2018-10-13 19:54:13 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-10-13 19:54:13 +0200 |
commit | e96e3dc6e6fe7e2e0d5131d8168f048e24216962 (patch) | |
tree | bbf911304ccd5e8b8e5cbb3db4018dfd692f38e0 /util | |
parent | 3ac4337aec929d6cdf12a1645ab142dc5279bd6c (diff) | |
download | volse-hubzilla-e96e3dc6e6fe7e2e0d5131d8168f048e24216962.tar.gz volse-hubzilla-e96e3dc6e6fe7e2e0d5131d8168f048e24216962.tar.bz2 volse-hubzilla-e96e3dc6e6fe7e2e0d5131d8168f048e24216962.zip |
Update po2php.php
Diffstat (limited to 'util')
-rw-r--r-- | util/po2php.php | 5 |
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 "){ |