Align common_* strings with Element X project in Localazy (#11434)

This commit is contained in:
Michael Telatynski
2023-08-22 18:47:33 +01:00
committed by GitHub
parent 1a49a38f04
commit c40141cc4f
132 changed files with 1491 additions and 1247 deletions

View File

@@ -620,7 +620,7 @@ export default class AppTile extends React.Component<IProps, IState> {
const loadingElement = (
<div className="mx_AppTileBody_fadeInSpinner">
<Spinner message={_t("Loading")} />
<Spinner message={_t("common|loading")} />
</div>
);

View File

@@ -320,7 +320,7 @@ export default class Dropdown extends React.Component<DropdownProps, IState> {
if (!options?.length) {
return [
<li key="0" className="mx_Dropdown_option" role="option" aria-selected={false}>
{_t("No results")}
{_t("common|no_results")}
</li>,
];
}

View File

@@ -531,7 +531,7 @@ export default class ImageView extends React.Component<IProps, IState> {
if (this.props.mxEvent?.getContent()) {
title = (
<div className="mx_ImageView_title">
{presentableTextForFile(this.props.mxEvent?.getContent(), _t("Image"), true)}
{presentableTextForFile(this.props.mxEvent?.getContent(), _t("common|image"), true)}
</div>
);
}

View File

@@ -36,7 +36,7 @@ export default class InlineSpinner extends React.PureComponent<IProps> {
<div
className="mx_InlineSpinner_icon mx_Spinner_icon"
style={{ width: this.props.w, height: this.props.h }}
aria-label={_t("Loading")}
aria-label={_t("common|loading")}
>
{this.props.children}
</div>

View File

@@ -139,7 +139,7 @@ export const Pill: React.FC<PillProps> = ({ type: propType, url, inMessage, room
});
} else {
avatar = linkIcon;
pillText = _t("Message");
pillText = _t("common|message");
}
}
break;

View File

@@ -43,7 +43,7 @@ export default class Spinner extends React.PureComponent<IProps> {
<div
className="mx_Spinner_icon"
style={{ width: w, height: h }}
aria-label={_t("Loading")}
aria-label={_t("common|loading")}
role="progressbar"
data-testid="spinner"
/>