mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 04:02:46 +08:00
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,
|
||||
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}
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue
Block a user