Migrate more strings to translation keys (#11642)
This commit is contained in:
parent
c879882558
commit
faa7b1521f
87 changed files with 6443 additions and 6006 deletions
|
@ -29,14 +29,10 @@ export default class VerificationComplete extends React.Component<IProps> {
|
|||
<div>
|
||||
<h2>{_t("encryption|verification|complete_title")}</h2>
|
||||
<p>{_t("encryption|verification|complete_description")}</p>
|
||||
<p>
|
||||
{_t(
|
||||
"Secure messages with this user are end-to-end encrypted and not able to be read by third parties.",
|
||||
)}
|
||||
</p>
|
||||
<p>{_t("encryption|verification|explainer")}</p>
|
||||
<DialogButtons
|
||||
onPrimaryButtonClick={this.props.onDone}
|
||||
primaryButton={_t("Got It")}
|
||||
primaryButton={_t("encryption|verification|complete_action")}
|
||||
hasCancel={false}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -133,18 +133,18 @@ export default class VerificationShowSas extends React.Component<IProps, IState>
|
|||
</div>
|
||||
);
|
||||
sasCaption = this.props.isSelf
|
||||
? _t("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.");
|
||||
? _t("encryption|verification|sas_emoji_caption_self")
|
||||
: _t("encryption|verification|sas_emoji_caption_user");
|
||||
} else if (this.props.sas.decimal) {
|
||||
const numberBlocks = this.props.sas.decimal.map((num, i) => <span key={i}>{num}</span>);
|
||||
sasDisplay = <div className="mx_VerificationShowSas_decimalSas">{numberBlocks}</div>;
|
||||
sasCaption = this.props.isSelf
|
||||
? _t("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.");
|
||||
? _t("encryption|verification|sas_caption_self")
|
||||
: _t("encryption|verification|sas_caption_user");
|
||||
} else {
|
||||
return (
|
||||
<div>
|
||||
{_t("Unable to find a supported verification method.")}
|
||||
{_t("encryption|verification|unsupported_method")}
|
||||
<AccessibleButton kind="primary" onClick={this.props.onCancel}>
|
||||
{_t("action|cancel")}
|
||||
</AccessibleButton>
|
||||
|
@ -159,21 +159,21 @@ export default class VerificationShowSas extends React.Component<IProps, IState>
|
|||
// logged out during verification
|
||||
const otherDevice = this.props.otherDeviceDetails;
|
||||
if (otherDevice) {
|
||||
text = _t("Waiting for you to verify on your other device, %(deviceName)s (%(deviceId)s)…", {
|
||||
text = _t("encryption|verification|waiting_other_device_details", {
|
||||
deviceName: otherDevice.displayName,
|
||||
deviceId: otherDevice.deviceId,
|
||||
});
|
||||
} else {
|
||||
text = _t("Waiting for you to verify on your other device…");
|
||||
text = _t("encryption|verification|waiting_other_device");
|
||||
}
|
||||
confirm = <p>{text}</p>;
|
||||
} else if (this.state.pending || this.state.cancelling) {
|
||||
let text;
|
||||
if (this.state.pending) {
|
||||
const { displayName } = this.props;
|
||||
text = _t("Waiting for %(displayName)s to verify…", { displayName });
|
||||
text = _t("encryption|verification|waiting_other_user", { displayName });
|
||||
} else {
|
||||
text = _t("Cancelling…");
|
||||
text = _t("encryption|verification|cancelling");
|
||||
}
|
||||
confirm = <PendingActionSpinner text={text} />;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue