Create more action_*
common strings (#11438)
This commit is contained in:
parent
e79b03a2df
commit
d5cacff6c3
202 changed files with 2046 additions and 2105 deletions
|
@ -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>
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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>,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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>,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
/>,
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
</>
|
||||
) : (
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue