mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-23 18:30:06 +00:00
Remove (X) next to Alerts/Messages if there is one section
Change-Id: Ibf66328e31bfefb3d588196c3f4babfa65bb52f3 Eg: Alerts(X) becomes Alerts
This commit is contained in:
parent
b090b749de
commit
75d5c9b9a3
|
@ -77,6 +77,8 @@ $wgResourceModules += array(
|
|||
'echo-feedback',
|
||||
'echo-notification-alert',
|
||||
'echo-notification-message',
|
||||
'echo-notification-alert-text-only',
|
||||
'echo-notification-message-text-only',
|
||||
'echo-email-batch-bullet'
|
||||
),
|
||||
),
|
||||
|
|
|
@ -96,6 +96,8 @@
|
|||
"echo-email-footer-default-html": "To control which emails we send you, <a href=\"$2\" style=\"text-decoration:none; color: #3868B0;\">check your preferences</a>.<br />\n$1",
|
||||
"echo-notification-alert": "{{PLURAL:$1|Alerts ($1)|Alerts ($1)|100=Alerts (99+)}}",
|
||||
"echo-notification-message": "{{PLURAL:$1|Messages ($1)|Messages ($1)|100=Messages (99+)}}",
|
||||
"echo-notification-alert-text-only": "Alerts",
|
||||
"echo-notification-message-text-only": "Messages",
|
||||
"echo-overlay-link": "All notifications",
|
||||
"echo-overlay-title": "<b>Notifications</b>",
|
||||
"echo-overlay-title-overflow": "<b>{{PLURAL:$1|Notifications}}</b> (showing $1 of $2 unread)",
|
||||
|
|
|
@ -115,6 +115,8 @@
|
|||
"echo-email-footer-default-html": "Default footer content for Echo html e-mail notifications. Parameters:\n* $1 - the address of the organization that sent the email\n* $2 - the URL to the notification preference page\nFor plain-text version, see {{msg-mw|Echo-email-footer-default}}.",
|
||||
"echo-notification-alert": "Label for alert notifications tab in Echo overlay. Parameters:\n* $1 - the number of unread alerts.\nSee also:\n* {{msg-mw|Echo-notification-message}}\n{{Identical|Alert}}",
|
||||
"echo-notification-message": "Label for message notifications tab in Echo overlay. Parameters:\n* $1 - the number of unread messages.\nSee also:\n* {{msg-mw|Echo-notification-alert}}\n{{Identical|Message}}",
|
||||
"echo-notification-alert-text-only": "Label for alert notifications tab in Echo overlay without alert notification count next to it",
|
||||
"echo-notification-message-text-only": "Label for message notifications tab in Echo overlay without message notification count next to it",
|
||||
"echo-overlay-link": "Link to \"all notifications\" at the bottom of the overlay.\n{{Identical|All notifications}}",
|
||||
"echo-overlay-title": "Title at the top of the notifications overlay. Should include bold tags.\n{{Identical|Notification}}",
|
||||
"echo-overlay-title-overflow": "Title at the top of the notifications overlay when there are additional unread notifications that are not being shown.\n\nParameters:\n* $1 - the number of unread notifications being shown\n* $2 - the total number of unread notifications that exist",
|
||||
|
|
|
@ -278,10 +278,12 @@
|
|||
|
||||
$.each( this.tabs, function( i, echoTab ) {
|
||||
var
|
||||
tabName = echoTab.name,
|
||||
tabName = self.tabs.length > 1 ? echoTab.name : ( echoTab.name + '-text-only' ),
|
||||
// Messages that can be used here:
|
||||
// * echo-notification-alert
|
||||
// * echo-notification-message
|
||||
// * echo-notification-alert-text-only
|
||||
// * echo-notification-message-text-only
|
||||
// @todo: Unread value is inaccurate. If a user has more than mw.echo.overlay.notificationLimit
|
||||
// API change needed
|
||||
label = mw.msg( 'echo-notification-' + tabName, echoTab.getNumberUnread() );
|
||||
|
|
Loading…
Reference in a new issue