Translate all the strings

This commit is contained in:
Jason Robinson 2020-11-27 14:42:45 +02:00
parent 5ad9b83870
commit 835e417333
3 changed files with 15 additions and 6 deletions

View file

@ -15,6 +15,7 @@ limitations under the License.
*/
import React from 'react';
import { _t } from "../../../languageHandler";
import * as sdk from '../../../index';
/*
@ -26,9 +27,11 @@ export default class ConfirmCloseHostingSignupDialog extends React.Component {
return (
<QuestionDialog
onFinished={this.props.onFinished}
title="Confirm Abort Of Host Creation"
description="Are you sure you wish to abort creation of the host? The process cannot be continued."
button="Abort"
title={_t("Confirm Abort Of Host Creation")}
description={_t(
"Are you sure you wish to abort creation of the host? The process cannot be continued.",
)}
button={_t("Abort")}
/>
);
}

View file

@ -18,7 +18,8 @@ import * as React from "react";
import * as sdk from '../../../index';
import Modal from "../../../Modal";
import SdkConfig from "../../../SdkConfig";
import {MatrixClientPeg} from "../../../MatrixClientPeg";
import { _t } from "../../../languageHandler";
import { MatrixClientPeg } from "../../../MatrixClientPeg";
interface IProps {
requestClose(): void,
@ -106,7 +107,7 @@ export default class HostingSignupDialog extends React.PureComponent<IProps, ISt
});
} else {
this.setState({
error: "Failed to connect to your homeserver. Please close this dialog and try again.",
error: _t("Failed to connect to your homeserver. Please close this dialog and try again."),
});
}
}
@ -136,7 +137,7 @@ export default class HostingSignupDialog extends React.PureComponent<IProps, ISt
<BaseDialog
className="mx_HostingSignupBaseDialog"
onFinished={this.onFinished}
title="Set up your own personal Element host"
title={_t("Set up your own personal Element host")}
hasCancel={true}
fixedWidth={false}
>