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}
>

View file

@ -2463,6 +2463,11 @@
"New here? <a>Create an account</a>": "New here? <a>Create an account</a>",
"Notification settings": "Notification settings",
"Get your own Element!": "Get your own Element!",
"Confirm Abort Of Host Creation": "Confirm Abort Of Host Creation",
"Are you sure you wish to abort creation of the host? The process cannot be continued.": "Are you sure you wish to abort creation of the host? The process cannot be continued.",
"Abort": "Abort",
"Failed to connect to your homeserver. Please close this dialog and try again.": "Failed to connect to your homeserver. Please close this dialog and try again.",
"Set up your own personal Element host": "Set up your own personal Element host",
"Security & privacy": "Security & privacy",
"All settings": "All settings",
"Community settings": "Community settings",