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

@ -69,12 +69,12 @@ export default class UploadConfirmDialog extends React.Component<IProps> {
public render(): React.ReactNode {
let title: string;
if (this.props.totalFiles > 1 && this.props.currentIndex !== undefined) {
title = _t("Upload files (%(current)s of %(total)s)", {
title = _t("upload_file|title_progress", {
current: this.props.currentIndex + 1,
total: this.props.totalFiles,
});
} else {
title = _t("Upload files");
title = _t("upload_file|title");
}
const fileId = `mx-uploadconfirmdialog-${this.props.file.name}`;
@ -99,7 +99,7 @@ export default class UploadConfirmDialog extends React.Component<IProps> {
let uploadAllButton: JSX.Element | undefined;
if (this.props.currentIndex + 1 < this.props.totalFiles) {
uploadAllButton = <button onClick={this.onUploadAllClick}>{_t("Upload all")}</button>;
uploadAllButton = <button onClick={this.onUploadAllClick}>{_t("upload_file|upload_all_button")}</button>;
}
return (