From 290bf54d4f399aee34478f54a917c1cc59ba5a35 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 5 Jan 2018 23:55:32 +0000 Subject: [PATCH] pluralise properly Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/RightPanel.js | 2 +- src/i18n/strings/en_EN.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index da1e7117..82933c74 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -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 =
{ formatCount(numMembers) }
; userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join'); } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 52244e09..84bac98f 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -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",