pluralise properly

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-01-05 23:55:32 +00:00
parent c68c54618f
commit 290bf54d4f
2 changed files with 3 additions and 2 deletions

View file

@ -274,7 +274,7 @@ module.exports = React.createClass({
let userIsInRoom; let userIsInRoom;
if (room) { if (room) {
const numMembers = room.getJoinedMembers().length; const numMembers = room.getJoinedMembers().length;
membersTitle = _t('%(numMembers)s Members', { numMembers }); membersTitle = _t('%(count)s Members', { count: numMembers });
membersBadge = <div title={membersTitle}>{ formatCount(numMembers) }</div>; membersBadge = <div title={membersTitle}>{ formatCount(numMembers) }</div>;
userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join'); userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join');
} }

View file

@ -158,7 +158,8 @@
"Register": "Register", "Register": "Register",
"Invite to this room": "Invite to this room", "Invite to this room": "Invite to this room",
"Members": "Members", "Members": "Members",
"%(numMembers)s Members": "%(numMembers)s Members", "%(count)s Members|other": "%(count)s Members",
"%(count)s Members|one": "%(count)s Member",
"Files": "Files", "Files": "Files",
"Notifications": "Notifications", "Notifications": "Notifications",
"Rooms": "Rooms", "Rooms": "Rooms",