Fix double translation issue (#10240

* Fix double translation issue

* Remove some redundant string concatenations
This commit is contained in:
Michael Telatyński 2023-02-27 09:15:27 +00:00 committed by GitHub
parent a3defa6cf7
commit 12dd799301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 29 additions and 41 deletions

View file

@ -177,7 +177,7 @@ export default class EventIndexPanel extends React.Component<{}, IState> {
eventIndexingSettings = (
<div>
<div className="mx_SettingsTab_subsectionText">
{_t("Securely cache encrypted messages locally for them to " + "appear in search results.")}
{_t("Securely cache encrypted messages locally for them to appear in search results.")}
</div>
<div>
<AccessibleButton kind="primary" disabled={this.state.enabling} onClick={this.onEnable}>

View file

@ -183,7 +183,7 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
Modal.createDialog(QuestionDialog, {
title: _t("Delete Backup"),
description: _t(
"Are you sure? You will lose your encrypted messages if your " + "keys are not backed up properly.",
"Are you sure? You will lose your encrypted messages if your keys are not backed up properly.",
),
button: _t("Delete Backup"),
danger: true,

View file

@ -192,7 +192,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
const [confirmed] = await this.showServerChangeWarning({
title: _t("Change identity server"),
unboundMessage: _t(
"Disconnect from the identity server <current /> and " + "connect to <new /> instead?",
"Disconnect from the identity server <current /> and connect to <new /> instead?",
{},
{
current: (sub) => <b>{abbreviateUrl(currentClientIdServer)}</b>,
@ -330,7 +330,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
<div>
<p>
{_t(
"You are still <b>sharing your personal data</b> on the identity " + "server <idserver />.",
"You are still <b>sharing your personal data</b> on the identity server <idserver />.",
{},
messageElements,
)}

View file

@ -223,7 +223,7 @@ export default class EmailAddresses extends React.Component<IProps, IState> {
Modal.createDialog(ErrorDialog, {
title: _t("Your email address hasn't been verified yet"),
description: _t(
"Click the link in the email you received to verify " + "and then click continue again.",
"Click the link in the email you received to verify and then click continue again.",
),
});
} else {

View file

@ -184,7 +184,7 @@ export class EmailAddress extends React.Component<IEmailAddressProps, IEmailAddr
Modal.createDialog(ErrorDialog, {
title: _t("Your email address hasn't been verified yet"),
description: _t(
"Click the link in the email you received to verify " + "and then click continue again.",
"Click the link in the email you received to verify and then click continue again.",
),
});
} else {