diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 0300f9ac6d..d78b0a3ce4 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -60,7 +60,11 @@ function egwpopup_display() { if(window.webkitNotifications && window.webkitNotifications.checkPermission() != EGW_BROWSER_NOTIFY_ALLOWED && jQuery('#desktop_perms').length == 0) { - var desktop_button = jQuery('') + var label = 'Desktop notifications'; + try { + if(egw) label = egw.lang(label); + } catch(err) {} + var desktop_button = jQuery('') .click(function() { window.webkitNotifications.requestPermission(); jQuery(this).hide();