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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
132 changed files with 1491 additions and 1247 deletions

View file

@ -54,7 +54,7 @@ export const AddPrivilegedUsers: React.FC<AddPrivilegedUsersProps> = ({ room, de
// `RoomPowerLevels` event should exist, but technically it is not guaranteed.
if (powerLevelEvent === null) {
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to change power level"),
});
@ -67,7 +67,7 @@ export const AddPrivilegedUsers: React.FC<AddPrivilegedUsersProps> = ({ room, de
setPowerLevel(defaultUserLevel);
} catch (error) {
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to change power level"),
});
} finally {

View file

@ -68,7 +68,7 @@ export default class LayoutSwitcher extends React.Component<IProps, IState> {
});
return (
<SettingsSubsection heading={_t("Message layout")}>
<SettingsSubsection heading={_t("common|message_layout")}>
<div className="mx_LayoutSwitcher_RadioButtons">
<label className={ircClasses}>
<EventTilePreview
@ -103,7 +103,7 @@ export default class LayoutSwitcher extends React.Component<IProps, IState> {
checked={this.state.layout == Layout.Group}
onChange={this.onLayoutChange}
>
{_t("Modern")}
{_t("common|modern")}
</StyledRadioButton>
</label>
<label className={bubbleClasses}>

View file

@ -201,7 +201,7 @@ export default class PhoneNumbers extends React.Component<IProps, IState> {
logger.error("Unable to add phone number " + phoneNumber + " " + err);
this.setState({ verifying: false, continueDisabled: false, addTask: null });
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: extractErrorMessageFromError(err, _t("Operation failed")),
});
});

View file

@ -150,7 +150,7 @@ export const PeopleRoomSettingsTab: VFC<{ room: Room }> = ({ room }) => {
return (
<SettingsTab>
<SettingsSection heading={_t("People")}>
<SettingsSection heading={_t("common|people")}>
<SettingsFieldset legend={_t("Asking to join")}>
{knockMembers.length ? (
knockMembers.map((knockMember) => (

View file

@ -94,7 +94,7 @@ export class BannedUser extends React.Component<IBannedUserProps> {
this.context.unban(this.props.member.roomId, this.props.member.userId).catch((err) => {
logger.error("Failed to unban: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to unban"),
});
});

View file

@ -309,7 +309,7 @@ export default class GeneralUserSettingsTab extends React.Component<IProps, ISta
const description = _t("Your password was successfully changed.");
// TODO: Figure out a design that doesn't involve replacing the current dialog
Modal.createDialog(ErrorDialog, {
title: _t("Success"),
title: _t("common|success"),
description,
});
};

View file

@ -319,7 +319,7 @@ export default class SecurityUserSettingsTab extends React.Component<IProps, ISt
privacySection = (
<SettingsSection heading={_t("Privacy")}>
<SettingsSubsection
heading={_t("Analytics")}
heading={_t("common|analytics")}
description={_t(
"Share anonymous data to help us identify issues. Nothing personal. No third parties.",
)}

View file

@ -120,7 +120,7 @@ const SidebarUserSettingsTab: React.FC = () => {
>
<SettingsSubsectionText>
<MembersIcon />
{_t("People")}
{_t("common|people")}
</SettingsSubsectionText>
<SettingsSubsectionText>{_t("Group all your people in one place.")}</SettingsSubsectionText>
</StyledCheckbox>