diff --git a/modules/mobile/NotificationBadge.js b/modules/mobile/NotificationBadge.js index 0a55196de..3938845ee 100644 --- a/modules/mobile/NotificationBadge.js +++ b/modules/mobile/NotificationBadge.js @@ -72,9 +72,9 @@ NotificationBadge.prototype.setCount = function ( count ) { count = 100; } this.options.notificationCountRaw = count; - this.options.notificationCountString = mw.message( 'echo-badge-count', + this.options.notificationCountString = mw.msg( 'echo-badge-count', mw.language.convertNumber( count ) - ).text(); + ); this.render(); }; diff --git a/modules/ui/mw.echo.ui.NotificationBadgeWidget.js b/modules/ui/mw.echo.ui.NotificationBadgeWidget.js index 308f2f52e..4a4261d06 100644 --- a/modules/ui/mw.echo.ui.NotificationBadgeWidget.js +++ b/modules/ui/mw.echo.ui.NotificationBadgeWidget.js @@ -243,7 +243,7 @@ unreadCount = this.manager.getUnreadCounter().getCount(); cappedUnreadCount = this.manager.getUnreadCounter().getCappedNotificationCount( unreadCount ); - badgeLabel = mw.message( 'echo-badge-count', mw.language.convertNumber( cappedUnreadCount ) ).text(); + badgeLabel = mw.msg( 'echo-badge-count', mw.language.convertNumber( cappedUnreadCount ) ); this.badgeButton.setLabel( badgeLabel ); this.badgeButton.setCount( unreadCount, badgeLabel ); diff --git a/modules/ui/mw.echo.ui.PageFilterWidget.js b/modules/ui/mw.echo.ui.PageFilterWidget.js index 3d7940eb1..8507195b2 100644 --- a/modules/ui/mw.echo.ui.PageFilterWidget.js +++ b/modules/ui/mw.echo.ui.PageFilterWidget.js @@ -44,7 +44,7 @@ this.populateDataFromModel(); this.$element .addClass( 'mw-echo-ui-pageFilterWidget' ) - .attr( 'aria-label', mw.message( 'echo-specialpage-pagefilterwidget-aria-label' ).text() ); + .attr( 'aria-label', mw.msg( 'echo-specialpage-pagefilterwidget-aria-label' ) ); }; /* Initialization */