Consistently use the word "device", rather than "session" or "login", in verification dialog (#7474)

This commit is contained in:
Faye Duxovni 2022-01-06 16:57:49 -05:00 committed by GitHub
parent b3202de814
commit a4fda7e25d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 33 deletions

View file

@ -55,7 +55,7 @@ export default class VerificationRequestDialog extends React.Component<IProps, I
const member = this.props.member ||
otherUserId && MatrixClientPeg.get().getUser(otherUserId);
const title = request && request.isSelfVerification ?
_t("Verify other login") : _t("Verification Request");
_t("Verify other device") : _t("Verification Request");
return <BaseDialog
className="mx_InfoDialog"

View file

@ -52,7 +52,7 @@ const EncryptionInfo: React.FC<IProps> = ({
if (waitingForOtherParty && isSelfVerification) {
content = (
<div>
{ _t("To proceed, please accept the verification request on your other login.") }
{ _t("To proceed, please accept the verification request on your other device.") }
</div>
);
} else if (waitingForOtherParty || waitingForNetwork) {

View file

@ -68,7 +68,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
const noCommonMethodError: JSX.Element = !showSAS && !showQR ?
<p>{ _t(
"The session you are trying to verify doesn't support scanning a " +
"The device you are trying to verify doesn't support scanning a " +
"QR code or emoji verification, which is what %(brand)s supports. Try " +
"with a different client.",
{ brand },
@ -101,7 +101,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
<div className='mx_VerificationPanel_QRPhase_betweenText'>{ _t("or") }</div> : null;
return (
<div>
{ _t("Verify this session by completing one of the following:") }
{ _t("Verify this device by completing one of the following:") }
<div className='mx_VerificationPanel_QRPhase_startOptions'>
{ qrBlockDialog }
{ or }
@ -178,7 +178,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
private renderQRReciprocatePhase() {
const { member, request } = this.props;
const description = request.isSelfVerification ?
_t("Almost there! Is your other session showing the same shield?") :
_t("Almost there! Is your other device showing the same shield?") :
_t("Almost there! Is %(displayName)s showing the same shield?", {
displayName: (member as User).displayName || (member as RoomMember).name || member.userId,
});
@ -273,7 +273,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
text = _t("Verification timed out.") + ` ${startAgainInstruction}`;
} else if (request.cancellingUserId === request.otherUserId) {
if (request.isSelfVerification) {
text = _t("You cancelled verification on your other session.");
text = _t("You cancelled verification on your other device.");
} else {
text = _t("%(displayName)s cancelled verification.", {
displayName: (member as User).displayName || (member as RoomMember).name || member.userId,

View file

@ -92,7 +92,7 @@ export default class VerificationShowSas extends React.Component<IProps, IState>
</div>;
sasCaption = this.props.isSelf ?
_t(
"Confirm the emoji below are displayed on both sessions, in the same order:",
"Confirm the emoji below are displayed on both devices, in the same order:",
):
_t(
"Verify this user by confirming the following emoji appear on their screen.",
@ -106,7 +106,7 @@ export default class VerificationShowSas extends React.Component<IProps, IState>
</div>;
sasCaption = this.props.isSelf ?
_t(
"Verify this session by confirming the following number appears on its screen.",
"Verify this device by confirming the following number appears on its screen.",
):
_t(
"Verify this user by confirming the following number appears on their screen.",
@ -126,12 +126,12 @@ export default class VerificationShowSas extends React.Component<IProps, IState>
// device shouldn't be null in this situation but it can be, eg. if the device is
// logged out during verification
if (this.props.device) {
text = _t("Waiting for you to verify on your other session, %(deviceName)s (%(deviceId)s)…", {
text = _t("Waiting for you to verify on your other device, %(deviceName)s (%(deviceId)s)…", {
deviceName: this.props.device ? this.props.device.getDisplayName() : '',
deviceId: this.props.device ? this.props.device.deviceId : '',
});
} else {
text = _t("Waiting for you to verify on your other session…");
text = _t("Waiting for you to verify on your other device…");
}
confirm = <p>{ text }</p>;
} else if (this.state.pending || this.state.cancelling) {