Migrate more strings to translation keys (#11694)

This commit is contained in:
Michael Telatynski 2023-10-03 19:17:26 +01:00 committed by GitHub
parent 677854d318
commit e1cfde0c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
201 changed files with 21074 additions and 18552 deletions

View file

@ -93,7 +93,7 @@ export default class ChangelogDialog extends React.Component<IProps, State> {
if (this.state[repo] == null) {
content = <Spinner key={repo} />;
} else if (typeof this.state[repo] === "string") {
content = _t("Unable to load commit detail: %(msg)s", {
content = _t("update|error_unable_load_commit", {
msg: this.state[repo],
});
} else {
@ -111,13 +111,17 @@ export default class ChangelogDialog extends React.Component<IProps, State> {
const content = (
<div className="mx_ChangelogDialog_content">
{this.props.version == null || this.props.newVersion == null ? <h2>{_t("Unavailable")}</h2> : logs}
{this.props.version == null || this.props.newVersion == null ? (
<h2>{_t("update|unavailable")}</h2>
) : (
logs
)}
</div>
);
return (
<QuestionDialog
title={_t("Changelog")}
title={_t("update|changelog")}
description={content}
button={_t("action|update")}
onFinished={this.props.onFinished}