Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2352 from matrix-org/travis/fix-notification-bell
Browse files Browse the repository at this point in the history
Fix translation error on notification icon
  • Loading branch information
turt2live authored Dec 13, 2018
2 parents 366f343 + 49769a4 commit bae9996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/structures/RightPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ module.exports = React.createClass({
let notifCount = 0;
MatrixClientPeg.get().getRooms().forEach(r => notifCount += (r.getUnreadNotificationCount('highlight') || 0));
if (notifCount > 0) {
notifCountBadge = <div title={_t("%counts Notifications")}>{ formatCount(notifCount) }</div>;
const title = _t("%(count)s Notifications", {count: formatCount(notifCount)});
notifCountBadge = <div title={title}>{ formatCount(notifCount) }</div>;
}

headerButtons = [
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,8 @@
"%(count)s Members|other": "%(count)s Members",
"%(count)s Members|one": "%(count)s Member",
"Invite to this room": "Invite to this room",
"%(count)s Notifications|other": "%(count)s Notifications",
"%(count)s Notifications|one": "%(count)s Notification",
"Files": "Files",
"Notifications": "Notifications",
"Hide panel": "Hide panel",
Expand Down

0 comments on commit bae9996

Please sign in to comment.