From d2fe8aff11ebf258afaa70bc2412ab97671c97fa Mon Sep 17 00:00:00 2001 From: Ekaterina Gerasimova Date: Fri, 17 Sep 2021 10:30:17 +0100 Subject: [PATCH] Improve string for leaving space in leave dialog Doesn't leave subspaces either, but those are in Beta so we probably shouldn't mention them for now so the user doesn't get confused Signed-off-by: Ekaterina Gerasimova --- src/components/views/dialogs/LeaveSpaceDialog.tsx | 10 ++++++---- src/i18n/strings/en_EN.json | 9 +++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/views/dialogs/LeaveSpaceDialog.tsx b/src/components/views/dialogs/LeaveSpaceDialog.tsx index 841fa14407..94ae71f1c9 100644 --- a/src/components/views/dialogs/LeaveSpaceDialog.tsx +++ b/src/components/views/dialogs/LeaveSpaceDialog.tsx @@ -97,13 +97,13 @@ const LeaveRoomsPicker = ({ space, spaceChildren, roomsToLeave, setRoomsToLeave definitions={[ { value: RoomsToLeave.None, - label: _t("Don't leave any"), + label: _t("Don't leave any rooms"), }, { value: RoomsToLeave.All, - label: _t("Leave all rooms and spaces"), + label: _t("Leave all rooms"), }, { value: RoomsToLeave.Specific, - label: _t("Leave specific rooms and spaces"), + label: _t("Leave some rooms"), }, ]} /> @@ -166,11 +166,13 @@ const LeaveSpaceDialog: React.FC = ({ space, onFinished }) => { >

- { _t("Are you sure you want to leave ?", {}, { + { _t("You are about to leave .", {}, { spaceName: () => { space.name }, }) }   { rejoinWarning } + { rejoinWarning && (<> ) } + { spaceChildren.length > 0 && _t("Would you like to leave the rooms in this space?") }

{ spaceChildren.length > 0 && ?": "Are you sure you want to leave ?", + "You are about to leave .": "You are about to leave .", + "Would you like to leave the rooms in this space?": "Would you like to leave the rooms in this space?", "Leave space": "Leave space", "Encrypted messages are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.": "Encrypted messages are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.", "Start using Key Backup": "Start using Key Backup",