Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 27118a9

Browse files
EECvisiont3chguy
andauthored
Fix admin tools phrase inconsistency (#8342)
* fix-admin-tools-phrase-inconsistency * correctly specify space room action * run i18n * Apply suggestions from code review Revert the applied formatting. Co-authored-by: Michael Telatynski <[email protected]> * fix inconsistency for RoomKickButton Co-authored-by: Michael Telatynski <[email protected]>
1 parent b114c5e commit 27118a9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Diff for: src/components/views/right_panel/UserInfo.tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,9 @@ const RoomKickButton = ({ room, member, startUpdating, stopUpdating }: Omit<IBas
575575
room.isSpaceRoom() ? ConfirmSpaceUserActionDialog : ConfirmUserActionDialog,
576576
{
577577
member,
578-
action: member.membership === "invite" ? _t("Disinvite") : _t("Remove from chat"),
578+
action: room.isSpaceRoom() ?
579+
member.membership === "invite" ? _t("Disinvite from space") : _t("Remove from space")
580+
: member.membership === "invite" ? _t("Disinvite from room") : _t("Remove from room"),
579581
title: member.membership === "invite"
580582
? _t("Disinvite from %(roomName)s", { roomName: room.name })
581583
: _t("Remove from %(roomName)s", { roomName: room.name }),
@@ -618,7 +620,10 @@ const RoomKickButton = ({ room, member, startUpdating, stopUpdating }: Omit<IBas
618620
});
619621
};
620622

621-
const kickLabel = member.membership === "invite" ? _t("Disinvite") : _t("Remove from room");
623+
const kickLabel = room.isSpaceRoom() ?
624+
member.membership === "invite" ? _t("Disinvite from space") : _t("Remove from space")
625+
: member.membership === "invite" ? _t("Disinvite from room") : _t("Remove from room");
626+
622627
return <AccessibleButton className="mx_UserInfo_field mx_UserInfo_destructive" onClick={onKick}>
623628
{ kickLabel }
624629
</AccessibleButton>;

Diff for: src/i18n/strings/en_EN.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1983,15 +1983,16 @@
19831983
"You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the space it will be impossible to regain privileges.": "You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the space it will be impossible to regain privileges.",
19841984
"You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the room it will be impossible to regain privileges.": "You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the room it will be impossible to regain privileges.",
19851985
"Demote": "Demote",
1986-
"Disinvite": "Disinvite",
1987-
"Remove from chat": "Remove from chat",
1986+
"Disinvite from space": "Disinvite from space",
1987+
"Remove from space": "Remove from space",
1988+
"Disinvite from room": "Disinvite from room",
1989+
"Remove from room": "Remove from room",
19881990
"Disinvite from %(roomName)s": "Disinvite from %(roomName)s",
19891991
"Remove from %(roomName)s": "Remove from %(roomName)s",
19901992
"Remove them from everything I'm able to": "Remove them from everything I'm able to",
19911993
"Remove them from specific things I'm able to": "Remove them from specific things I'm able to",
19921994
"They'll still be able to access whatever you're not an admin of.": "They'll still be able to access whatever you're not an admin of.",
19931995
"Failed to remove user": "Failed to remove user",
1994-
"Remove from room": "Remove from room",
19951996
"Remove recent messages": "Remove recent messages",
19961997
"Unban from space": "Unban from space",
19971998
"Ban from space": "Ban from space",

0 commit comments

Comments
 (0)