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;
if (room) {
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>;
userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join');
}

View File

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