Fix translation error on notification icon
Introduced by https://github.com/matrix-org/matrix-react-sdk/pull/2336
This commit is contained in:
parent
366f343432
commit
49769a405d
2 changed files with 4 additions and 1 deletions
|
@ -326,7 +326,8 @@ module.exports = React.createClass({
|
||||||
let notifCount = 0;
|
let notifCount = 0;
|
||||||
MatrixClientPeg.get().getRooms().forEach(r => notifCount += (r.getUnreadNotificationCount('highlight') || 0));
|
MatrixClientPeg.get().getRooms().forEach(r => notifCount += (r.getUnreadNotificationCount('highlight') || 0));
|
||||||
if (notifCount > 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 = [
|
headerButtons = [
|
||||||
|
|
|
@ -1144,6 +1144,8 @@
|
||||||
"%(count)s Members|other": "%(count)s Members",
|
"%(count)s Members|other": "%(count)s Members",
|
||||||
"%(count)s Members|one": "%(count)s Member",
|
"%(count)s Members|one": "%(count)s Member",
|
||||||
"Invite to this room": "Invite to this room",
|
"Invite to this room": "Invite to this room",
|
||||||
|
"%(count)s Notifications|other": "%(count)s Notifications",
|
||||||
|
"%(count)s Notifications|one": "%(count)s Notification",
|
||||||
"Files": "Files",
|
"Files": "Files",
|
||||||
"Notifications": "Notifications",
|
"Notifications": "Notifications",
|
||||||
"Hide panel": "Hide panel",
|
"Hide panel": "Hide panel",
|
||||||
|
|
Loading…
Reference in a new issue