diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6 index 4c4b1e147f1..db166e66596 100644 --- a/app/assets/javascripts/discourse/widgets/header.js.es6 +++ b/app/assets/javascripts/discourse/widgets/header.js.es6 @@ -41,7 +41,9 @@ createWidget('header-notifications', { action: attrs.action, className: 'badge-notification unread-notifications', rawLabel: unreadNotifications, - omitSpan: true + omitSpan: true, + title: "notifications.tooltip.regular", + titleOptions: {count: unreadNotifications} })); } @@ -62,7 +64,9 @@ createWidget('header-notifications', { action: attrs.action, className: 'badge-notification unread-private-messages', rawLabel: unreadPMs, - omitSpan: true + omitSpan: true, + title: "notifications.tooltip.message", + titleOptions: {count: unreadPMs} })); } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 4979bfb1407..907e6af01a3 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1287,6 +1287,13 @@ en: admin_options_title: "Optional staff settings for this topic" notifications: + tooltip: + regular: + one: "1 unseen notification" + other: "{{count}} unseen notifications" + message: + one: "1 unread message" + other: "{{count}} unread messages" title: "notifications of @name mentions, replies to your posts and topics, messages, etc" none: "Unable to load notifications at this time." empty: "No notifications found."