Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit bae9996

Browse files
authored
Merge pull request matrix-org#2352 from matrix-org/travis/fix-notification-bell
Fix translation error on notification icon
2 parents 366f343 + 49769a4 commit bae9996

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/structures/RightPanel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ module.exports = React.createClass({
326326
let notifCount = 0;
327327
MatrixClientPeg.get().getRooms().forEach(r => notifCount += (r.getUnreadNotificationCount('highlight') || 0));
328328
if (notifCount > 0) {
329-
notifCountBadge = <div title={_t("%counts Notifications")}>{ formatCount(notifCount) }</div>;
329+
const title = _t("%(count)s Notifications", {count: formatCount(notifCount)});
330+
notifCountBadge = <div title={title}>{ formatCount(notifCount) }</div>;
330331
}
331332

332333
headerButtons = [

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,8 @@
11441144
"%(count)s Members|other": "%(count)s Members",
11451145
"%(count)s Members|one": "%(count)s Member",
11461146
"Invite to this room": "Invite to this room",
1147+
"%(count)s Notifications|other": "%(count)s Notifications",
1148+
"%(count)s Notifications|one": "%(count)s Notification",
11471149
"Files": "Files",
11481150
"Notifications": "Notifications",
11491151
"Hide panel": "Hide panel",

0 commit comments

Comments
 (0)