aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-13 22:12:16 -0700
committerfriendica <info@friendica.com>2012-08-13 22:12:16 -0700
commit2a49460c7766d5868115689155e3b9595e5f36a2 (patch)
tree90572db5ee307c915ef99baf2624eb450fdfba9b /index.php
parent6fcb3b44156a89feda9293c289175d0dec79cd80 (diff)
downloadvolse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.tar.gz
volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.tar.bz2
volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.zip
improvements in js localisation/translation
Diffstat (limited to 'index.php')
-rw-r--r--index.php25
1 files changed, 2 insertions, 23 deletions
diff --git a/index.php b/index.php
index bd88da68d..15458e631 100644
--- a/index.php
+++ b/index.php
@@ -324,6 +324,7 @@ if($a->module != 'install') {
require_once(theme_include('theme_init.php'));
+require_once('include/js_strings.php');
head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css');
head_add_css('mod_' . $a->module . '.css');
@@ -350,29 +351,7 @@ head_add_js('mod_' . $a->module . '.js');
'$update_interval' => $interval,
'$head_css' => head_get_css(),
'$head_js' => head_get_js(),
-
-
-// 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') : '[]')
-
+ '$js_strings' => js_strings()
));
$page = $a->page;