UX: Add tooltips for messages and notifications in header
This commit is contained in:
parent
772301bc65
commit
05f5df69b1
|
@ -41,7 +41,9 @@ createWidget('header-notifications', {
|
||||||
action: attrs.action,
|
action: attrs.action,
|
||||||
className: 'badge-notification unread-notifications',
|
className: 'badge-notification unread-notifications',
|
||||||
rawLabel: unreadNotifications,
|
rawLabel: unreadNotifications,
|
||||||
omitSpan: true
|
omitSpan: true,
|
||||||
|
title: "notifications.tooltip.regular",
|
||||||
|
titleOptions: {count: unreadNotifications}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +64,9 @@ createWidget('header-notifications', {
|
||||||
action: attrs.action,
|
action: attrs.action,
|
||||||
className: 'badge-notification unread-private-messages',
|
className: 'badge-notification unread-private-messages',
|
||||||
rawLabel: unreadPMs,
|
rawLabel: unreadPMs,
|
||||||
omitSpan: true
|
omitSpan: true,
|
||||||
|
title: "notifications.tooltip.message",
|
||||||
|
titleOptions: {count: unreadPMs}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1287,6 +1287,13 @@ en:
|
||||||
admin_options_title: "Optional staff settings for this topic"
|
admin_options_title: "Optional staff settings for this topic"
|
||||||
|
|
||||||
notifications:
|
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"
|
title: "notifications of @name mentions, replies to your posts and topics, messages, etc"
|
||||||
none: "Unable to load notifications at this time."
|
none: "Unable to load notifications at this time."
|
||||||
empty: "No notifications found."
|
empty: "No notifications found."
|
||||||
|
|
Loading…
Reference in New Issue