diff options
author | Mario <mario@mariovavti.com> | 2018-10-13 18:16:56 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-10-13 20:17:14 +0200 |
commit | eaee27c9e4f7a533fea8e2cda7a0b2c7230a5dfb (patch) | |
tree | e86a90a27578d6dde289aa91ae5190b3e0024fef /util | |
parent | 5310f4e310f58e77cb3764c9174b627e406d7a66 (diff) | |
download | volse-hubzilla-eaee27c9e4f7a533fea8e2cda7a0b2c7230a5dfb.tar.gz volse-hubzilla-eaee27c9e4f7a533fea8e2cda7a0b2c7230a5dfb.tar.bz2 volse-hubzilla-eaee27c9e4f7a533fea8e2cda7a0b2c7230a5dfb.zip |
Merge branch 'patch-14' into 'dev'
Add date/time plurals translation in JavaScript
See merge request hubzilla/core!1336
(cherry picked from commit a2575059e2a068a67cd984888422265c6888f261)
5c0d3187 Add date/time plurals translation in JavaScript
729d0d53 Update language.php
f68674b3 Update js_strings.tpl
3ac4337a Update main.js
e96e3dc6 Update po2php.php
54bdf59d Update js_strings.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 "){ |