aboutsummaryrefslogtreecommitdiffstats
path: root/util/po2php.php
diff options
context:
space:
mode:
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 "){