aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-23 04:11:59 -0700
committerfriendica <info@friendica.com>2012-07-23 04:11:59 -0700
commit3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1 (patch)
tree890749f2ac3bca28745ff93089c4c9e68e49ae63 /index.php
parent33ea8737b71466be84dfaaa0fa16cd2850805158 (diff)
downloadvolse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.tar.gz
volse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.tar.bz2
volse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.zip
realtime updates of "6 minutes ago" with fallback to iso8601 timestamps (available on tooltip)
Diffstat (limited to 'index.php')
-rw-r--r--index.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/index.php b/index.php
index a20cb4fc1..15d2eb460 100644
--- a/index.php
+++ b/index.php
@@ -390,7 +390,29 @@ if(! file_exists($module_css))
'$page_css' => $a->get_baseurl() . '/' . $page_css,
'$module_css' => (($module_css) ? $a->get_baseurl() . '/' . $module_css : null),
'$stylesheet' => current_theme_url(),
- '$theme' => current_theme()
+ '$theme' => current_theme(),
+
+// localisations for jquery.timeago.js, see https://github.com/rmm5t/jquery-timeago
+// TRANSLATORS - only translate the conditionals if you require them!
+
+ '$t01' => ((t('timeago.prefixAgo') != 'timeago.prefixAgo') ? t('timeago.prefixAgo') : 'null'),
+ '$t02' => ((t('timeago.suffixAgo') != 'timeago.suffixAgo') ? t('timeago.suffixAgo') : 'null'),
+ '$t03' => t('ago'),
+ '$t04' => t('from now'),
+ '$t05' => t('less than a minute'),
+ '$t06' => t('about a minute'),
+ '$t07' => t('%d minutes'),
+ '$t08' => t('about an hour'),
+ '$t09' => t('about %d hours'),
+ '$t10' => t('a day'),
+ '$t11' => t('%d days'),
+ '$t12' => t('about a month'),
+ '$t13' => t('%d months'),
+ '$t14' => t('about a year'),
+ '$t15' => t('%d years'),
+ '$t16' => t(' '), // wordSeparator
+ '$t17' => ((t('timeago.numbers') != 'timeago.numbers') ? t('timeago.numbers') : '[]')
+
));
$page = $a->page;