Align common_*
strings with Element X project in Localazy (#11434)
This commit is contained in:
parent
1a49a38f04
commit
c40141cc4f
132 changed files with 1491 additions and 1247 deletions
|
@ -348,7 +348,9 @@ export const AddExistingToSpace: React.FC<IAddExistingToSpaceProps> = ({
|
|||
|
||||
{dms.length > 0 && dmsRenderer ? dmsRenderer(dms, selectedToAdd, dmsScrollState, onChange) : null}
|
||||
|
||||
{noResults ? <span className="mx_AddExistingToSpace_noResults">{_t("No results")}</span> : undefined}
|
||||
{noResults ? (
|
||||
<span className="mx_AddExistingToSpace_noResults">{_t("common|no_results")}</span>
|
||||
) : undefined}
|
||||
</AutoHideScrollbar>
|
||||
|
||||
<div className="mx_AddExistingToSpace_footer">{footer}</div>
|
||||
|
|
|
@ -87,7 +87,7 @@ export default class ConfirmAndWaitRedactDialog extends React.PureComponent<IPro
|
|||
return (
|
||||
<ErrorDialog
|
||||
onFinished={this.props.onFinished}
|
||||
title={_t("Error")}
|
||||
title={_t("common|error")}
|
||||
description={_t("You cannot delete this message. (%(code)s)", { code })}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -104,7 +104,7 @@ export function createRedactEventDialog({
|
|||
if (typeof code !== "undefined") {
|
||||
// display error message stating you couldn't delete this.
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Error"),
|
||||
title: _t("common|error"),
|
||||
description: _t("You cannot delete this message. (%(code)s)", { code }),
|
||||
});
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ export default class DeactivateAccountDialog extends React.Component<IProps, ISt
|
|||
error = <div className="error">{this.state.errStr}</div>;
|
||||
}
|
||||
|
||||
let auth = <div>{_t("Loading…")}</div>;
|
||||
let auth = <div>{_t("common|loading")}</div>;
|
||||
if (this.state.authData && this.state.authEnabled) {
|
||||
auth = (
|
||||
<div>
|
||||
|
|
|
@ -74,7 +74,7 @@ export default class ErrorDialog extends React.Component<IProps, IState> {
|
|||
<BaseDialog
|
||||
className="mx_ErrorDialog"
|
||||
onFinished={this.props.onFinished}
|
||||
title={this.props.title || _t("Error")}
|
||||
title={this.props.title || _t("common|error")}
|
||||
headerImage={this.props.headerImage}
|
||||
contentId="mx_Dialog_content"
|
||||
>
|
||||
|
|
|
@ -121,7 +121,7 @@ const FeedbackDialog: React.FC<IProps> = (props: IProps) => {
|
|||
description={
|
||||
<React.Fragment>
|
||||
<div className="mx_FeedbackDialog_section mx_FeedbackDialog_reportBug">
|
||||
<h3>{_t("Report a bug")}</h3>
|
||||
<h3>{_t("common|report_a_bug")}</h3>
|
||||
<p>
|
||||
{_t(
|
||||
"Please view <existingIssuesLink>existing bugs on Github</existingIssuesLink> first. No match? <newIssueLink>Start a new one</newIssueLink>.",
|
||||
|
|
|
@ -276,7 +276,7 @@ const ForwardDialog: React.FC<IProps> = ({ matrixClient: cli, event, permalinkCr
|
|||
|
||||
return (
|
||||
<BaseDialog
|
||||
title={_t("Forward message")}
|
||||
title={_t("common|forward_message")}
|
||||
className="mx_ForwardDialog"
|
||||
contentId="mx_ForwardList"
|
||||
onFinished={onFinished}
|
||||
|
@ -329,7 +329,7 @@ const ForwardDialog: React.FC<IProps> = ({ matrixClient: cli, event, permalinkCr
|
|||
/>
|
||||
</div>
|
||||
) : (
|
||||
<span className="mx_ForwardList_noResults">{_t("No results")}</span>
|
||||
<span className="mx_ForwardList_noResults">{_t("common|no_results")}</span>
|
||||
)}
|
||||
</AutoHideScrollbar>
|
||||
</div>
|
||||
|
|
|
@ -52,7 +52,7 @@ export default class IntegrationsDisabledDialog extends React.Component<IProps>
|
|||
</p>
|
||||
</div>
|
||||
<DialogButtons
|
||||
primaryButton={_t("Settings")}
|
||||
primaryButton={_t("common|settings")}
|
||||
onPrimaryButtonClick={this.onOpenSettingsClick}
|
||||
cancelButton={_t("OK")}
|
||||
onCancel={this.onAcknowledgeClick}
|
||||
|
|
|
@ -990,10 +990,10 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
let showNum = kind === "recents" ? this.state.numRecentsShown : this.state.numSuggestionsShown;
|
||||
const showMoreFn = kind === "recents" ? this.showMoreRecents.bind(this) : this.showMoreSuggestions.bind(this);
|
||||
const lastActive = (m: Result): number | undefined => (kind === "recents" ? m.lastActive : undefined);
|
||||
let sectionName = kind === "recents" ? _t("Recent Conversations") : _t("Suggestions");
|
||||
let sectionName = kind === "recents" ? _t("Recent Conversations") : _t("common|suggestions");
|
||||
|
||||
if (this.props.kind === InviteKind.Invite) {
|
||||
sectionName = kind === "recents" ? _t("Recently Direct Messaged") : _t("Suggestions");
|
||||
sectionName = kind === "recents" ? _t("Recently Direct Messaged") : _t("common|suggestions");
|
||||
}
|
||||
|
||||
// Mix in the server results if we have any, but only if we're searching. We track the additional
|
||||
|
@ -1038,7 +1038,7 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
return (
|
||||
<div className="mx_InviteDialog_section">
|
||||
<h3>{sectionName}</h3>
|
||||
<p>{_t("No results")}</p>
|
||||
<p>{_t("common|no_results")}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -229,7 +229,7 @@ const ManageRestrictedJoinRuleDialog: React.FC<IProps> = ({ room, selected = [],
|
|||
) : null}
|
||||
|
||||
{totalResults < 1 ? (
|
||||
<span className="mx_ManageRestrictedJoinRuleDialog_noResults">{_t("No results")}</span>
|
||||
<span className="mx_ManageRestrictedJoinRuleDialog_noResults">{_t("common|no_results")}</span>
|
||||
) : undefined}
|
||||
</AutoHideScrollbar>
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ class RoomSettingsDialog extends React.Component<IProps, IState> {
|
|||
tabs.push(
|
||||
new Tab(
|
||||
RoomSettingsTab.People,
|
||||
_td("People"),
|
||||
_td("common|people"),
|
||||
"mx_RoomSettingsDialog_peopleIcon",
|
||||
<PeopleRoomSettingsTab room={this.state.room} />,
|
||||
),
|
||||
|
|
|
@ -55,7 +55,7 @@ const SpacePreferencesAppearanceTab: React.FC<Pick<IProps, "space">> = ({ space
|
|||
);
|
||||
}}
|
||||
>
|
||||
{_t("People")}
|
||||
{_t("common|people")}
|
||||
</StyledCheckbox>
|
||||
<SettingsSubsectionText>
|
||||
{_t(
|
||||
|
|
|
@ -50,7 +50,7 @@ export default class TextInputDialog extends React.Component<IProps, IState> {
|
|||
title: "",
|
||||
value: "",
|
||||
description: "",
|
||||
busyMessage: _td("Loading…"),
|
||||
busyMessage: _td("common|loading"),
|
||||
focus: true,
|
||||
hasCancel: true,
|
||||
};
|
||||
|
|
|
@ -205,7 +205,7 @@ export default class UserSettingsDialog extends React.Component<IProps, IState>
|
|||
className="mx_UserSettingsDialog"
|
||||
hasCancel={true}
|
||||
onFinished={this.props.onFinished}
|
||||
title={_t("Settings")}
|
||||
title={_t("common|settings")}
|
||||
>
|
||||
<div className="mx_SettingsDialog_content">
|
||||
<TabbedView
|
||||
|
|
|
@ -338,7 +338,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
|
|||
</div>
|
||||
);
|
||||
} else if (this.state.loadError) {
|
||||
title = _t("Error");
|
||||
title = _t("common|error");
|
||||
content = _t("Unable to load backup status");
|
||||
} else if (this.state.restoreError) {
|
||||
if (
|
||||
|
@ -369,11 +369,11 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
|
|||
);
|
||||
}
|
||||
} else {
|
||||
title = _t("Error");
|
||||
title = _t("common|error");
|
||||
content = _t("Unable to restore backup");
|
||||
}
|
||||
} else if (this.state.backupInfo === null) {
|
||||
title = _t("Error");
|
||||
title = _t("common|error");
|
||||
content = _t("No backup found!");
|
||||
} else if (this.state.recoverInfo) {
|
||||
title = _t("Keys restored");
|
||||
|
|
|
@ -120,7 +120,7 @@ enum Section {
|
|||
function filterToLabel(filter: Filter): string {
|
||||
switch (filter) {
|
||||
case Filter.People:
|
||||
return _t("People");
|
||||
return _t("common|people");
|
||||
case Filter.PublicRooms:
|
||||
return _t("Public rooms");
|
||||
case Filter.PublicSpaces:
|
||||
|
@ -751,7 +751,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
|||
role="group"
|
||||
aria-labelledby="mx_SpotlightDialog_section_suggestions"
|
||||
>
|
||||
<h4 id="mx_SpotlightDialog_section_suggestions">{_t("Suggestions")}</h4>
|
||||
<h4 id="mx_SpotlightDialog_section_suggestions">{_t("common|suggestions")}</h4>
|
||||
<div>{results[Section.Suggestions].slice(0, SECTION_LIMIT).map(resultMapper)}</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -807,7 +807,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
|||
aria-labelledby="mx_SpotlightDialog_section_publicRooms"
|
||||
>
|
||||
<div className="mx_SpotlightDialog_sectionHeader">
|
||||
<h4 id="mx_SpotlightDialog_section_publicRooms">{_t("Suggestions")}</h4>
|
||||
<h4 id="mx_SpotlightDialog_section_publicRooms">{_t("common|suggestions")}</h4>
|
||||
<div className="mx_SpotlightDialog_options">
|
||||
<NetworkDropdown protocols={protocols} config={config ?? null} setConfig={setConfig} />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue