aboutsummaryrefslogtreecommitdiffstats
path: root/include/js_strings.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-13 19:48:45 +0200
committerMax Kostikov <max@kostikov.co>2018-10-13 19:48:45 +0200
commit5c0d31873afef00ce7f6a4e1160f50f659f6b8c0 (patch)
tree4ebac6b04d156cb55bbb1d72f1b88ccfba185aaa /include/js_strings.php
parentc36773674ec0e918ca7d56dcee7ee461e7d45e98 (diff)
downloadvolse-hubzilla-5c0d31873afef00ce7f6a4e1160f50f659f6b8c0.tar.gz
volse-hubzilla-5c0d31873afef00ce7f6a4e1160f50f659f6b8c0.tar.bz2
volse-hubzilla-5c0d31873afef00ce7f6a4e1160f50f659f6b8c0.zip
Add date/time plurals translation in JavaScript
Diffstat (limited to 'include/js_strings.php')
-rw-r--r--include/js_strings.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/js_strings.php b/include/js_strings.php
index d9038e838..17de06b31 100644
--- a/include/js_strings.php
+++ b/include/js_strings.php
@@ -38,6 +38,15 @@ function js_strings() {
// using the defaults set below if left untranslated, empty strings if
// translated to "NONE" and the corresponding language strings
// if translated to anything else
+ 'minutes' => tt('%d minutes', '%d minutes', '%d'),
+ 'hours' => tt('about %d hours', 'about %d hours', '%d'),
+ 'days' => tt('%d days', '%d days', '%d'),
+ 'months' => tt('%d months', '%d months', '%d'),
+ 'years' => tt('%d years', '%d years', '%d'),
+
+ // get plural function code
+ 'plural_func' => tf(),
+
'$t01' => ((t('timeago.prefixAgo') == 'timeago.prefixAgo') ? '' : ((t('timeago.prefixAgo') == 'NONE') ? '' : t('timeago.prefixAgo'))),
'$t02' => ((t('timeago.prefixFromNow') == 'timeago.prefixFromNow') ? '' : ((t('timeago.prefixFromNow') == 'NONE') ? '' : t('timeago.prefixFromNow'))),
'$t03' => ((t('timeago.suffixAgo') == 'timeago.suffixAgo') ? 'ago' : ((t('timeago.suffixAgo') == 'NONE') ? '' : t('timeago.suffixAgo'))),