Fix instances of double translation and guard translation calls using typescript (#11443)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
d13b6e1b41
commit
ac70f7ac9b
157 changed files with 554 additions and 780 deletions
|
@ -559,8 +559,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
|
|||
<form onSubmit={this.onChooseKeyPassphraseFormSubmit}>
|
||||
<p className="mx_CreateSecretStorageDialog_centeredBody">
|
||||
{_t(
|
||||
"Safeguard against losing access to encrypted messages & data by " +
|
||||
"backing up encryption keys on your server.",
|
||||
"Safeguard against losing access to encrypted messages & data by backing up encryption keys on your server.",
|
||||
)}
|
||||
</p>
|
||||
<div className="mx_CreateSecretStorageDialog_primaryContainer" role="radiogroup">
|
||||
|
@ -611,9 +610,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
|
|||
<form onSubmit={this.onMigrateFormSubmit}>
|
||||
<p>
|
||||
{_t(
|
||||
"Upgrade this session to allow it to verify other sessions, " +
|
||||
"granting them access to encrypted messages and marking them " +
|
||||
"as trusted for other users.",
|
||||
"Upgrade this session to allow it to verify other sessions, granting them access to encrypted messages and marking them as trusted for other users.",
|
||||
)}
|
||||
</p>
|
||||
<div>{authPrompt}</div>
|
||||
|
@ -636,8 +633,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
|
|||
<form onSubmit={this.onPassPhraseNextClick}>
|
||||
<p>
|
||||
{_t(
|
||||
"Enter a Security Phrase only you know, as it's used to safeguard your data. " +
|
||||
"To be secure, you shouldn't re-use your account password.",
|
||||
"Enter a Security Phrase only you know, as it's used to safeguard your data. To be secure, you shouldn't re-use your account password.",
|
||||
)}
|
||||
</p>
|
||||
|
||||
|
@ -752,8 +748,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
|
|||
<div>
|
||||
<p>
|
||||
{_t(
|
||||
"Store your Security Key somewhere safe, like a password manager or a safe, " +
|
||||
"as it's used to safeguard your encrypted data.",
|
||||
"Store your Security Key somewhere safe, like a password manager or a safe, as it's used to safeguard your encrypted data.",
|
||||
)}
|
||||
</p>
|
||||
<div className="mx_CreateSecretStorageDialog_primaryContainer mx_CreateSecretStorageDialog_recoveryKeyPrimarycontainer">
|
||||
|
|
|
@ -164,21 +164,12 @@ export default class ExportE2eKeysDialog extends React.Component<IProps, IState>
|
|||
<div className="mx_Dialog_content">
|
||||
<p>
|
||||
{_t(
|
||||
"This process allows you to export the keys for messages " +
|
||||
"you have received in encrypted rooms to a local file. You " +
|
||||
"will then be able to import the file into another Matrix " +
|
||||
"client in the future, so that client will also be able to " +
|
||||
"decrypt these messages.",
|
||||
"This process allows you to export the keys for messages you have received in encrypted rooms to a local file. You will then be able to import the file into another Matrix client in the future, so that client will also be able to decrypt these messages.",
|
||||
)}
|
||||
</p>
|
||||
<p>
|
||||
{_t(
|
||||
"The exported file will allow anyone who can read it to decrypt " +
|
||||
"any encrypted messages that you can see, so you should be " +
|
||||
"careful to keep it secure. To help with this, you should enter " +
|
||||
"a unique passphrase below, which will only be used to encrypt the " +
|
||||
"exported data. " +
|
||||
"It will only be possible to import the data by using the same passphrase.",
|
||||
"The exported file will allow anyone who can read it to decrypt any encrypted messages that you can see, so you should be careful to keep it secure. To help with this, you should enter a unique passphrase below, which will only be used to encrypt the exported data. It will only be possible to import the data by using the same passphrase.",
|
||||
)}
|
||||
</p>
|
||||
<div className="error">{this.state.errStr}</div>
|
||||
|
|
|
@ -146,16 +146,12 @@ export default class ImportE2eKeysDialog extends React.Component<IProps, IState>
|
|||
<div className="mx_Dialog_content">
|
||||
<p>
|
||||
{_t(
|
||||
"This process allows you to import encryption keys " +
|
||||
"that you had previously exported from another Matrix " +
|
||||
"client. You will then be able to decrypt any " +
|
||||
"messages that the other client could decrypt.",
|
||||
"This process allows you to import encryption keys that you had previously exported from another Matrix client. You will then be able to decrypt any messages that the other client could decrypt.",
|
||||
)}
|
||||
</p>
|
||||
<p>
|
||||
{_t(
|
||||
"The export file will be protected with a passphrase. " +
|
||||
"You should enter the passphrase here, to decrypt the file.",
|
||||
"The export file will be protected with a passphrase. You should enter the passphrase here, to decrypt the file.",
|
||||
)}
|
||||
</p>
|
||||
<div className="error">{this.state.errStr}</div>
|
||||
|
|
|
@ -62,10 +62,7 @@ export default class NewRecoveryMethodDialog extends React.PureComponent<IProps>
|
|||
const hackWarning = (
|
||||
<p className="warning">
|
||||
{_t(
|
||||
"If you didn't set the new recovery method, an " +
|
||||
"attacker may be trying to access your account. " +
|
||||
"Change your account password and set a new recovery " +
|
||||
"method immediately in Settings.",
|
||||
"If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.",
|
||||
)}
|
||||
</p>
|
||||
);
|
||||
|
|
|
@ -53,23 +53,17 @@ export default class RecoveryMethodRemovedDialog extends React.PureComponent<IPr
|
|||
<div>
|
||||
<p>
|
||||
{_t(
|
||||
"This session has detected that your Security Phrase and key " +
|
||||
"for Secure Messages have been removed.",
|
||||
"This session has detected that your Security Phrase and key for Secure Messages have been removed.",
|
||||
)}
|
||||
</p>
|
||||
<p>
|
||||
{_t(
|
||||
"If you did this accidentally, you can setup Secure Messages on " +
|
||||
"this session which will re-encrypt this session's message " +
|
||||
"history with a new recovery method.",
|
||||
"If you did this accidentally, you can setup Secure Messages on this session which will re-encrypt this session's message history with a new recovery method.",
|
||||
)}
|
||||
</p>
|
||||
<p className="warning">
|
||||
{_t(
|
||||
"If you didn't remove the recovery method, an " +
|
||||
"attacker may be trying to access your account. " +
|
||||
"Change your account password and set a new recovery " +
|
||||
"method immediately in Settings.",
|
||||
"If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.",
|
||||
)}
|
||||
</p>
|
||||
<DialogButtons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue