aboutsummaryrefslogtreecommitdiffstats
path: root/include/js_strings.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 /include/js_strings.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 'include/js_strings.php')
-rw-r--r--include/js_strings.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/js_strings.php b/include/js_strings.php
new file mode 100644
index 000000000..8de789b33
--- /dev/null
+++ b/include/js_strings.php
@@ -0,0 +1,30 @@
+<?php
+
+function js_strings() {
+ return replace_macros(get_markup_template('js_strings.tpl'), array(
+ '$delitem' => t('Delete this item?'),
+ '$comment' => t('Comment'),
+ '$showmore' => t('show more'),
+ '$showfewer' => t('show fewer'),
+
+ '$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') : '[]')
+
+
+ ));
+} \ No newline at end of file