aboutsummaryrefslogtreecommitdiffstats
path: root/util/po2php.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-10-13 20:16:56 +0200
committerMario <mario@mariovavti.com>2018-10-13 20:16:56 +0200
commita2575059e2a068a67cd984888422265c6888f261 (patch)
tree2fddc09518ef113a7253dcbdac0e2df205f6ca6a /util/po2php.php
parentc36773674ec0e918ca7d56dcee7ee461e7d45e98 (diff)
parent54bdf59dde11e5154c696c33719aaf3976b74e6c (diff)
downloadvolse-hubzilla-a2575059e2a068a67cd984888422265c6888f261.tar.gz
volse-hubzilla-a2575059e2a068a67cd984888422265c6888f261.tar.bz2
volse-hubzilla-a2575059e2a068a67cd984888422265c6888f261.zip
Merge branch 'patch-14' into 'dev'
Add date/time plurals translation in JavaScript See merge request hubzilla/core!1336
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 "){