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

@ -68,7 +68,7 @@ const onLearnMorePreviouslyOptedIn = (): void => {
// otherwise, the user closed the dialog without making a choice, leave the toast open
},
primaryButton: _t("That's fine"),
cancelButton: _t("Stop"),
cancelButton: _t("action|stop"),
});
};

View file

@ -44,7 +44,7 @@ export const showToast = (fromMessageSend: boolean): void => {
description: _t("Enable desktop notifications"),
acceptLabel: _t("action|enable"),
onAccept,
rejectLabel: _t("Dismiss"),
rejectLabel: _t("action|dismiss"),
onReject,
},
component: GenericToast,

View file

@ -56,7 +56,7 @@ function JoinCallButtonWithCall({ onClick, call }: JoinCallButtonWithCallProps):
tooltip={disabledTooltip}
kind="primary"
>
{_t("Join")}
{_t("action|join")}
</AccessibleTooltipButton>
);
}
@ -154,14 +154,14 @@ export function IncomingCallToast({ callEvent }: Props): JSX.Element {
onClick={onJoinClick}
kind="primary"
>
{_t("Join")}
{_t("action|join")}
</AccessibleTooltipButton>
)}
</div>
<AccessibleTooltipButton
className="mx_IncomingCallToast_closeButton"
onClick={onCloseClick}
title={_t("Close")}
title={_t("action|close")}
/>
</React.Fragment>
);

View file

@ -132,7 +132,7 @@ export default class IncomingLegacyCallToast extends React.Component<IProps, ISt
onClick={this.onAnswerClick}
kind="primary"
>
<span> {_t("Accept")} </span>
<span> {_t("action|accept")} </span>
</AccessibleButton>
</div>
</div>

View file

@ -50,7 +50,7 @@ export const showToast = (): void => {
),
acceptLabel: _t("Use app"),
onAccept,
rejectLabel: _t("Dismiss"),
rejectLabel: _t("action|dismiss"),
onReject,
},
component: GenericToast,

View file

@ -52,9 +52,9 @@ const getSetupCaption = (kind: Kind): string => {
case Kind.SET_UP_ENCRYPTION:
return _t("action|continue");
case Kind.UPGRADE_ENCRYPTION:
return _t("Upgrade");
return _t("action|upgrade");
case Kind.VERIFY_THIS_SESSION:
return _t("Verify");
return _t("action|verify");
}
};

View file

@ -52,7 +52,7 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
Modal.createDialog(QuestionDialog, {
title: _t("What's New"),
description: <pre>{releaseNotes}</pre>,
button: _t("Update"),
button: _t("action|update"),
onFinished: (update) => {
if (update && PlatformPeg.get()) {
PlatformPeg.get()!.installUpdate();
@ -74,7 +74,7 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
};
} else {
onAccept = installUpdate;
acceptLabel = _t("Update");
acceptLabel = _t("action|update");
}
const brand = SdkConfig.get().brand;
@ -85,7 +85,7 @@ export const showToast = (version: string, newVersion: string, releaseNotes?: st
description: _t("New version of %(brand)s is available", { brand }),
acceptLabel,
onAccept,
rejectLabel: _t("Dismiss"),
rejectLabel: _t("action|dismiss"),
onReject,
},
component: GenericToast,