aboutsummaryrefslogtreecommitdiffstats
path: root/include/js_strings.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-11 19:36:37 -0800
committerzotlabs <mike@macgirvin.com>2018-02-11 19:36:37 -0800
commit0f8d2d4e58cd085de29c630babaf7df3a35393c3 (patch)
tree8da71ebff073f86212baf1a362063e8cdb86c4e7 /include/js_strings.php
parent63107f5b2f5031a7cc971063b9344592cc2257e3 (diff)
parentba954b8cfeaf18477a5d7c17338efd909951744c (diff)
downloadvolse-hubzilla-0f8d2d4e58cd085de29c630babaf7df3a35393c3.tar.gz
volse-hubzilla-0f8d2d4e58cd085de29c630babaf7df3a35393c3.tar.bz2
volse-hubzilla-0f8d2d4e58cd085de29c630babaf7df3a35393c3.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'include/js_strings.php')
-rw-r--r--include/js_strings.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/js_strings.php b/include/js_strings.php
index 1b4668061..936594291 100644
--- a/include/js_strings.php
+++ b/include/js_strings.php
@@ -24,10 +24,16 @@ function js_strings() {
'$leavethispage' => t('Unsaved changes. Are you sure you wish to leave this page?'),
'$location' => t('Location'),
- '$t01' => ((t('timeago.prefixAgo') != 'timeago.prefixAgo') ? t('timeago.prefixAgo') : ''),
- '$t02' => ((t('timeago.prefixFromNow') != 'timeago.prefixFromNow') ? t('timeago.prefixFromNow') : ''),
- '$t03' => t('ago'),
- '$t04' => t('from now'),
+ // translatable prefix and suffix strings for jquery.timeago -
+ // using the defaults set below if left untranslated, empty strings if
+ // translated to "NONE" and the corresponding language strings
+ // if translated to anything else
+ '$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'))),
+ '$t04' => ((t('timeago.suffixFromNow') == 'timeago.suffixFromNow') ? 'from now' : ((t('timeago.suffixFromNow') == 'NONE') ? '' : t('timeago.suffixFromNow'))),
+
+ // translatable main strings for jquery.timeago
'$t05' => t('less than a minute'),
'$t06' => t('about a minute'),
'$t07' => t('%d minutes'),