aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-13 17:59:47 -0700
committerfriendica <info@friendica.com>2014-05-13 17:59:47 -0700
commita4869394f45886a9a6945c3ec0354dee42c1afda (patch)
tree13ddad755bd660366c62e3d97cbedd5447c6fed5
parente664d6486a81194faefb7f4ad03bc4c8ab0ca6ed (diff)
downloadvolse-hubzilla-a4869394f45886a9a6945c3ec0354dee42c1afda.tar.gz
volse-hubzilla-a4869394f45886a9a6945c3ec0354dee42c1afda.tar.bz2
volse-hubzilla-a4869394f45886a9a6945c3ec0354dee42c1afda.zip
allow jgrowl 'close all' message to be translated
-rw-r--r--include/js_strings.php1
-rw-r--r--view/js/main.js1
-rwxr-xr-xview/tpl/js_strings.tpl1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/js_strings.php b/include/js_strings.php
index fef84077e..1b62266d6 100644
--- a/include/js_strings.php
+++ b/include/js_strings.php
@@ -14,6 +14,7 @@ function js_strings() {
'$passphrase' => t('Secret Passphrase'),
'$passhint' => t('Passphrase hint'),
'$permschange' => t('Notice: Permissions have changed but have not yet been submitted.'),
+ '$closeAll' => t('close all'),
'$t01' => ((t('timeago.prefixAgo') != 'timeago.prefixAgo') ? t('timeago.prefixAgo') : ''),
'$t02' => ((t('timeago.prefixFromNow') != 'timeago.prefixFromNow') ? t('timeago.prefixFromNow') : ''),
diff --git a/view/js/main.js b/view/js/main.js
index 17ef578be..fa32df424 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -341,6 +341,7 @@
if(data.all_events_today == 0) { data.all_events_today = ''; $('.all_events-today-update').removeClass('show') } else { $('.all_events-today-update').addClass('show') }
$('.all_events-today-update').html(data.all_events_today);
+ $.jGrowl.defaults.closerTemplate = '<div>[ ' + aStr['closeAll'] + ']</div>';
$(data.notice).each(function() {
$.jGrowl(this.message, { sticky: true, theme: 'notice' });
diff --git a/view/tpl/js_strings.tpl b/view/tpl/js_strings.tpl
index cac5be65b..515e3107f 100755
--- a/view/tpl/js_strings.tpl
+++ b/view/tpl/js_strings.tpl
@@ -14,6 +14,7 @@
'passphrase' : "{{$passphrase}}",
'passhint' : "{{$passhint}}",
'permschange' : "{{$permschange}}",
+ 'closeAll' : "{{$closeAll}}",
't01' : "{{$t01}}",
't02' : "{{$t02}}",