UX: Add tooltips for messages and notifications in header

This commit is contained in:
Sam 2017-11-30 12:56:54 +11:00
parent 772301bc65
commit 05f5df69b1
2 changed files with 13 additions and 2 deletions

View File

@ -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}
}));
}

View File

@ -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."