Merge "Notification icon should be localized"

This commit is contained in:
jenkins-bot 2022-06-13 21:40:50 +00:00 committed by Gerrit Code Review
commit 5eef330e30

View file

@ -171,11 +171,12 @@ class SkinMinerva extends SkinMustache {
*/
private function getNotificationCircleButton( array $alert ) {
$alertCount = $alert['data']['counter-num'] ?? 0;
$alertText = $alert['data']['counter-text'] ?? $alertCount;
$alert['html'] =
Html::rawElement( 'div', [ 'class' => 'circle' ],
Html::element( 'span', [
'data-notification-count' => $alertCount,
], $alertCount )
], $alertText )
);
$alert['class'] = 'notification-count notification-unseen mw-echo-unseen-notifications';
$alert['link-class'] = array_merge(