File tree 2 files changed +13
-2
lines changed
app/assets/javascripts/discourse/widgets
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ createWidget('header-notifications', {
41
41
action : attrs . action ,
42
42
className : 'badge-notification unread-notifications' ,
43
43
rawLabel : unreadNotifications ,
44
- omitSpan : true
44
+ omitSpan : true ,
45
+ title : "notifications.tooltip.regular" ,
46
+ titleOptions : { count : unreadNotifications }
45
47
} ) ) ;
46
48
}
47
49
@@ -62,7 +64,9 @@ createWidget('header-notifications', {
62
64
action : attrs . action ,
63
65
className : 'badge-notification unread-private-messages' ,
64
66
rawLabel : unreadPMs ,
65
- omitSpan : true
67
+ omitSpan : true ,
68
+ title : "notifications.tooltip.message" ,
69
+ titleOptions : { count : unreadPMs }
66
70
} ) ) ;
67
71
}
68
72
Original file line number Diff line number Diff line change @@ -1287,6 +1287,13 @@ en:
1287
1287
admin_options_title : " Optional staff settings for this topic"
1288
1288
1289
1289
notifications :
1290
+ tooltip :
1291
+ regular :
1292
+ one : " 1 unseen notification"
1293
+ other : " {{count}} unseen notifications"
1294
+ message :
1295
+ one : " 1 unread message"
1296
+ other : " {{count}} unread messages"
1290
1297
title : " notifications of @name mentions, replies to your posts and topics, messages, etc"
1291
1298
none : " Unable to load notifications at this time."
1292
1299
empty : " No notifications found."
You can’t perform that action at this time.
0 commit comments