diff --git a/notifications/inc/class.notifications.inc.php b/notifications/inc/class.notifications.inc.php index 0352b15fec..ec24cd9c0d 100644 --- a/notifications/inc/class.notifications.inc.php +++ b/notifications/inc/class.notifications.inc.php @@ -471,6 +471,8 @@ class notifications { throw new Exception('Error: cannot send notifications. No valid messages supplied'); } + Api\Translation::add_app('notifications'); + $available_chains = $this->get_available_chains('routing'); foreach ($this->receivers as $receiver) { diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 9fd91abee4..2bf24c3151 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -144,10 +144,10 @@ .text(egw.lang('yesterday')) , $this_month = jQuery(document.createElement('div')) .addClass('egwpopup_time_label') - .text('this month') + .text(egw.lang('this month')) , $last_month = jQuery(document.createElement('div')) .addClass('egwpopup_time_label') - .text('last month'); + .text(egw.lang('last month')); // reverse indexes to get the latest messages at the top var indexes = Object.keys(notifymessages).reverse() for(var index in indexes) @@ -546,7 +546,7 @@ $egwpopup_fw_notifications.addClass('egwpopup_notify'); $egwpopup_fw_notifications.text(counter); $egwpopup_fw_notifications.append($popup_note); - $popup_note.text(egw.lang('You have '+counter+' unread notifications')); + $popup_note.text(egw.lang('You have %1 unread notifications', counter)); setTimeout(function (){$popup_note.remove();}, 5000); } else diff --git a/notifications/lang/egw_de.lang b/notifications/lang/egw_de.lang index 9a0f3b1d7f..d0a10242b5 100644 --- a/notifications/lang/egw_de.lang +++ b/notifications/lang/egw_de.lang @@ -56,6 +56,7 @@ mark all as read notifications de Alle als gelesen markieren mark as read notifications de Als gelesen markieren message from notifications de Nachricht von minutes notifications de Minuten +more info notifications de Mehr Info notification common de Benachrichtigung notifier notifications de Benachrichtiger notify me by notifications de Benachrichtige mich per @@ -87,6 +88,8 @@ subject dn: notifications de Serveradresse the server certificate is not a valid trust center certificate! notifications de Das Zertifikat des Webservers ist nicht vertrauenswürdig! this egroupware notification has been sent to you by mail because your notifications de Diese EGroupware Benachrichtigung wurde Ihnen per E-Mail zugestellt. this egroupware notification has been sent to you by mail because your chosen notification-chain has been disabled by the administrator. please choose another notification-chain in your preferences! notifications de Diese EGroupware-Benachrichtigung wurde Ihnen per Mail zugesandt, da Ihre gewählte Benachrichtigungskette vom Administrator deaktiviert wurde. Bitte wählen Sie eine andere Benachrichtigungskette in Ihren Einstellungen! +this month notifications de diesen Monat +you have %1 unread notifications notifications de Sie haben %1 ungelesene Nachrichten user: notifications de Benutzer: warning notifications de Warnung windows-popup and e-mail notifications de Windows-Popup und E-Mail diff --git a/notifications/lang/egw_en.lang b/notifications/lang/egw_en.lang index ef46696c2f..534726c754 100644 --- a/notifications/lang/egw_en.lang +++ b/notifications/lang/egw_en.lang @@ -50,6 +50,7 @@ if set, embedded links get rendered special for external clients notifications e info on load config file: create config file. notifications en Info on load config file: create config file. issuer dn: notifications en Issuer DN: java desktop notification app preferences en Java desktop notification app +last month notifications en Last month linked entries: common en Linked entries: login aborted, application exit? notifications en Login aborted, application exit? login in egroupware: notifications en login in EGroupware: @@ -90,6 +91,8 @@ subject dn: notifications en Subject DN: the server certificate is not a valid trust center certificate! notifications en The server certificate is not a valid trust center certificate! this egroupware notification has been sent to you by mail because your notifications en This EGroupware notification has been sent to you by mail because your this egroupware notification has been sent to you by mail because your chosen notification-chain has been disabled by the administrator. please choose another notification-chain in your preferences! notifications en This EGroupware notification has been sent to you by mail because your chosen notification chain has been disabled by the administrator. Please choose another notification chain in your preferences! +this month notifications en This month +you have %1 unread notifications notifications en You have %1 unread notifications user: notifications en User: warning notifications en Warning windows-popup and e-mail notifications en Windows popup and email