Localazy: Convert more strings (#11675)

This commit is contained in:
R Midhun Suresh 2023-09-28 12:51:30 +05:30 committed by GitHub
parent ef5a93b702
commit 0518af70ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 2915 additions and 2567 deletions

View file

@ -159,15 +159,11 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
if (lostKeys) {
return (
<div>
<p>
{_t(
"It looks like you don't have a Security Key or any other devices you can verify against. This device will not be able to access old encrypted messages. In order to verify your identity on this device, you'll need to reset your verification keys.",
)}
</p>
<p>{_t("encryption|verification|no_key_or_device")}</p>
<div className="mx_CompleteSecurity_actionRow">
<AccessibleButton kind="primary" onClick={this.onResetConfirmClick}>
{_t("Proceed with reset")}
{_t("encryption|verification|reset_proceed_prompt")}
</AccessibleButton>
</div>
</div>
@ -176,9 +172,9 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
const store = SetupEncryptionStore.sharedInstance();
let recoveryKeyPrompt;
if (store.keyInfo && keyHasPassphrase(store.keyInfo)) {
recoveryKeyPrompt = _t("Verify with Security Key or Phrase");
recoveryKeyPrompt = _t("encryption|verification|verify_using_key_or_phrase");
} else if (store.keyInfo) {
recoveryKeyPrompt = _t("Verify with Security Key");
recoveryKeyPrompt = _t("encryption|verification|verify_using_key");
}
let useRecoveryKeyButton;
@ -194,16 +190,14 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
if (store.hasDevicesToVerifyAgainst) {
verifyButton = (
<AccessibleButton kind="primary" onClick={this.onVerifyClick}>
{_t("Verify with another device")}
{_t("encryption|verification|verify_using_device")}
</AccessibleButton>
);
}
return (
<div>
<p>
{_t("Verify your identity to access encrypted messages and prove your identity to others.")}
</p>
<p>{_t("encryption|verification|verification_description")}</p>
<div className="mx_CompleteSecurity_actionRow">
{verifyButton}
@ -228,15 +222,9 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
} else if (phase === Phase.Done) {
let message: JSX.Element;
if (this.state.backupInfo) {
message = (
<p>
{_t(
"Your new device is now verified. It has access to your encrypted messages, and other users will see it as trusted.",
)}
</p>
);
message = <p>{_t("encryption|verification|verification_success_with_backup")}</p>;
} else {
message = <p>{_t("Your new device is now verified. Other users will see it as trusted.")}</p>;
message = <p>{_t("encryption|verification|verification_success_without_backup")}</p>;
}
return (
<div>
@ -252,14 +240,10 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
} else if (phase === Phase.ConfirmSkip) {
return (
<div>
<p>
{_t(
"Without verifying, you won't have access to all your messages and may appear as untrusted to others.",
)}
</p>
<p>{_t("encryption|verification|verification_skip_warning")}</p>
<div className="mx_CompleteSecurity_actionRow">
<AccessibleButton kind="danger_outline" onClick={this.onSkipConfirmClick}>
{_t("I'll verify later")}
{_t("encryption|verification|verify_later")}
</AccessibleButton>
<AccessibleButton kind="primary" onClick={this.onSkipBackClick}>
{_t("action|go_back")}
@ -270,20 +254,12 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
} else if (phase === Phase.ConfirmReset) {
return (
<div>
<p>
{_t(
"Resetting your verification keys cannot be undone. After resetting, you won't have access to old encrypted messages, and any friends who have previously verified you will see security warnings until you re-verify with them.",
)}
</p>
<p>
{_t(
"Please only proceed if you're sure you've lost all of your other devices and your Security Key.",
)}
</p>
<p>{_t("encryption|verification|verify_reset_warning_1")}</p>
<p>{_t("encryption|verification|verify_reset_warning_2")}</p>
<div className="mx_CompleteSecurity_actionRow">
<AccessibleButton kind="danger_outline" onClick={this.onResetConfirmClick}>
{_t("Proceed with reset")}
{_t("encryption|verification|reset_proceed_prompt")}
</AccessibleButton>
<AccessibleButton kind="primary" onClick={this.onResetBackClick}>
{_t("action|go_back")}