Migrate more strings to translation keys (#11694)
This commit is contained in:
parent
677854d318
commit
e1cfde0c6e
201 changed files with 21074 additions and 18552 deletions
|
@ -59,8 +59,9 @@ export default class RoomUpgradeDialog extends React.Component<IProps, IState> {
|
|||
})
|
||||
.catch((err) => {
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to upgrade room"),
|
||||
description: err && err.message ? err.message : _t("The room upgrade could not be completed"),
|
||||
title: _t("room_settings|advanced|error_upgrade_title"),
|
||||
description:
|
||||
err && err.message ? err.message : _t("room_settings|advanced|error_upgrade_description"),
|
||||
});
|
||||
})
|
||||
.finally(() => {
|
||||
|
@ -75,7 +76,7 @@ export default class RoomUpgradeDialog extends React.Component<IProps, IState> {
|
|||
} else {
|
||||
buttons = (
|
||||
<DialogButtons
|
||||
primaryButton={_t("Upgrade this room to version %(version)s", { version: this.targetVersion })}
|
||||
primaryButton={_t("room_settings|advanced|upgrade_button", { version: this.targetVersion })}
|
||||
primaryButtonClass="danger"
|
||||
hasCancel={true}
|
||||
onPrimaryButtonClick={this.onUpgradeClick}
|
||||
|
@ -88,28 +89,16 @@ export default class RoomUpgradeDialog extends React.Component<IProps, IState> {
|
|||
<BaseDialog
|
||||
className="mx_RoomUpgradeDialog"
|
||||
onFinished={this.props.onFinished}
|
||||
title={_t("Upgrade Room Version")}
|
||||
title={_t("room_settings|advanced|upgrade_dialog_title")}
|
||||
contentId="mx_Dialog_content"
|
||||
hasCancel={true}
|
||||
>
|
||||
<p>
|
||||
{_t(
|
||||
"Upgrading this room requires closing down the current instance of the room and creating a new room in its place. To give room members the best possible experience, we will:",
|
||||
)}
|
||||
</p>
|
||||
<p>{_t("room_settings|advanced|upgrade_dialog_description")}</p>
|
||||
<ol>
|
||||
<li>{_t("Create a new room with the same name, description and avatar")}</li>
|
||||
<li>{_t("Update any local room aliases to point to the new room")}</li>
|
||||
<li>
|
||||
{_t(
|
||||
"Stop users from speaking in the old version of the room, and post a message advising users to move to the new room",
|
||||
)}
|
||||
</li>
|
||||
<li>
|
||||
{_t(
|
||||
"Put a link back to the old room at the start of the new room so people can see old messages",
|
||||
)}
|
||||
</li>
|
||||
<li>{_t("room_settings|advanced|upgrade_dialog_description_1")}</li>
|
||||
<li>{_t("room_settings|advanced|upgrade_dialog_description_2")}</li>
|
||||
<li>{_t("room_settings|advanced|upgrade_dialog_description_3")}</li>
|
||||
<li>{_t("room_settings|advanced|upgrade_dialog_description_4")}</li>
|
||||
</ol>
|
||||
{buttons}
|
||||
</BaseDialog>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue