Create more action_* common strings (#11438)

This commit is contained in:
Michael Telatynski 2023-08-23 11:57:22 +01:00 committed by GitHub
parent e79b03a2df
commit d5cacff6c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
202 changed files with 2046 additions and 2105 deletions

View file

@ -98,7 +98,7 @@ export const AddPrivilegedUsers: React.FC<AddPrivilegedUsersProps> = ({ room, de
onClick={null}
data-testid="add-privileged-users-submit-button"
>
{_t("Apply")}
{_t("action|apply")}
</AccessibleButton>
</SettingsFieldset>
</form>

View file

@ -94,7 +94,7 @@ const AvatarSetting: React.FC<IProps> = ({ avatarUrl, avatarAltText, avatarName,
{avatarElement}
<div className="mx_AvatarSetting_hover" aria-hidden="true">
<div className="mx_AvatarSetting_hoverBg" />
{uploadAvatar && <span id={a11yId.current}>{_t("Upload")}</span>}
{uploadAvatar && <span id={a11yId.current}>{_t("action|upload")}</span>}
</div>
{uploadAvatarBtn}
{removeAvatarBtn}

View file

@ -246,7 +246,7 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
if (keysExistAnywhere) {
actions.push(
<AccessibleButton key="reset" kind="danger" onClick={this.resetCrossSigning}>
{_t("Reset")}
{_t("action|reset")}
</AccessibleButton>,
);
}

View file

@ -240,7 +240,7 @@ export default class EventIndexPanel extends React.Component<{}, IState> {
</code>
<p>
<AccessibleButton key="delete" kind="danger" onClick={this.confirmEventStoreReset}>
{_t("Reset")}
{_t("action|reset")}
</AccessibleButton>
</p>
</details>

View file

@ -212,7 +212,7 @@ export default class ProfileSettings extends React.Component<{}, IState> {
kind="link"
disabled={!this.state.enableProfileSave}
>
{_t("Cancel")}
{_t("action|cancel")}
</AccessibleButton>
<AccessibleButton
onClick={this.saveProfile}

View file

@ -355,7 +355,7 @@ export default class SecureBackupPanel extends React.PureComponent<{}, IState> {
if (secretStorageKeyInAccount) {
actions.push(
<AccessibleButton key="reset" kind="danger" onClick={this.resetSecretStorage}>
{_t("Reset")}
{_t("action|reset")}
</AccessibleButton>,
);
}

View file

@ -350,7 +350,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
title,
description: message,
button,
cancelButton: _t("Go back"),
cancelButton: _t("action|go_back"),
danger,
});
return finished;

View file

@ -93,7 +93,7 @@ export default class SpellCheckLanguages extends React.Component<SpellCheckLangu
const addButton = (
<AccessibleButton onClick={this.onAddClick} kind="primary">
{_t("Add")}
{_t("action|add")}
</AccessibleButton>
);

View file

@ -113,7 +113,7 @@ export class ExistingEmailAddress extends React.Component<IExistingEmailAddressP
kind="link_sm"
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
>
{_t("Cancel")}
{_t("action|cancel")}
</AccessibleButton>
</div>
);
@ -267,7 +267,7 @@ export default class EmailAddresses extends React.Component<IProps, IState> {
let addButton = (
<AccessibleButton onClick={this.onAddClick} kind="primary" disabled={this.props.disabled}>
{_t("Add")}
{_t("action|add")}
</AccessibleButton>
);
if (this.state.verifying) {

View file

@ -109,7 +109,7 @@ export class ExistingPhoneNumber extends React.Component<IExistingPhoneNumberPro
kind="link_sm"
className="mx_GeneralUserSettingsTab_section--discovery_existing_button"
>
{_t("Cancel")}
{_t("action|cancel")}
</AccessibleButton>
</div>
);
@ -271,7 +271,7 @@ export default class PhoneNumbers extends React.Component<IProps, IState> {
let addVerifySection = (
<AccessibleButton onClick={this.onAddClick} kind="primary" disabled={this.props.disabled}>
{_t("Add")}
{_t("action|add")}
</AccessibleButton>
);
if (this.state.verifying) {

View file

@ -60,7 +60,7 @@ const CurrentDeviceSectionHeading: React.FC<CurrentDeviceSectionHeadingProps> =
const menuOptions = [
<IconizedContextMenuOption
key="sign-out"
label={_t("Sign out")}
label={_t("action|sign_out")}
onClick={onSignOutCurrentDevice}
isDestructive
/>,

View file

@ -117,7 +117,7 @@ const DeviceNameEditor: React.FC<Props & { stopEditing: () => void }> = ({ devic
data-testid="device-rename-cancel-cta"
disabled={isLoading}
>
{_t("Cancel")}
{_t("action|cancel")}
</AccessibleButton>
{isLoading && <Spinner w={16} h={16} />}
</div>

View file

@ -334,7 +334,7 @@ export const FilteredDeviceList = forwardRef(
className="mx_FilteredDeviceList_headerButton"
>
{isSigningOut && <Spinner w={16} h={16} />}
{_t("Sign out")}
{_t("action|sign_out")}
</AccessibleButton>
<AccessibleButton
data-testid="cancel-selection-cta"
@ -343,7 +343,7 @@ export const FilteredDeviceList = forwardRef(
onClick={() => setSelectedDeviceIds([])}
className="mx_FilteredDeviceList_headerButton"
>
{_t("Cancel")}
{_t("action|cancel")}
</AccessibleButton>
</>
) : (

View file

@ -208,7 +208,7 @@ export class EmailAddress extends React.Component<IEmailAddressProps, IEmailAddr
onClick={this.onShareClick}
disabled={this.props.disabled}
>
{_t("Share")}
{_t("action|share")}
</AccessibleButton>
);
}

View file

@ -216,7 +216,7 @@ export class PhoneNumber extends React.Component<IPhoneNumberProps, IPhoneNumber
onClick={this.onShareClick}
disabled={this.props.disabled}
>
{_t("Share")}
{_t("action|share")}
</AccessibleButton>
);
}

View file

@ -269,7 +269,7 @@ export default class NotificationsSettingsTab extends React.Component<IProps, IS
onClick={this.clearSound}
kind="primary"
>
{_t("Reset")}
{_t("action|reset")}
</AccessibleButton>
</div>
<div>

View file

@ -166,7 +166,7 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
{renderRules(list.userRules)}
</div>
),
button: _t("Close"),
button: _t("action|close"),
hasCancelButton: false,
});
}
@ -294,7 +294,7 @@ export default class MjolnirUserSettingsTab extends React.Component<{}, IState>
onClick={this.onAddPersonalRule}
disabled={this.state.busy}
>
{_t("Ignore")}
{_t("action|ignore")}
</AccessibleButton>
</form>
</SettingsSubsection>

View file

@ -44,7 +44,7 @@ import { OidcLogoutDialog } from "../../../dialogs/oidc/OidcLogoutDialog";
const confirmSignOut = async (sessionsToSignOutCount: number): Promise<boolean> => {
const { finished } = Modal.createDialog(QuestionDialog, {
title: _t("Sign out"),
title: _t("action|sign_out"),
description: (
<div>
<p>
@ -54,8 +54,8 @@ const confirmSignOut = async (sessionsToSignOutCount: number): Promise<boolean>
</p>
</div>
),
cancelButton: _t("Cancel"),
button: _t("Sign out"),
cancelButton: _t("action|cancel"),
button: _t("action|sign_out"),
});
const [confirmed] = await finished;