Align action_*
strings with Element X project in Localazy (#11437)
This commit is contained in:
parent
bdd3710f25
commit
df4a2218d7
166 changed files with 1697 additions and 1555 deletions
|
@ -1196,7 +1196,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
|
||||
const isSpace = roomToLeave?.isSpaceRoom();
|
||||
Modal.createDialog(QuestionDialog, {
|
||||
title: isSpace ? _t("Leave space") : _t("Leave room"),
|
||||
title: isSpace ? _t("Leave space") : _t("action|leave_room"),
|
||||
description: (
|
||||
<span>
|
||||
{isSpace
|
||||
|
@ -1209,7 +1209,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
{warnings}
|
||||
</span>
|
||||
),
|
||||
button: _t("Leave"),
|
||||
button: _t("action|leave"),
|
||||
onFinished: async (shouldLeave) => {
|
||||
if (shouldLeave) {
|
||||
await leaveRoomBehaviour(cli, roomId);
|
||||
|
@ -1398,7 +1398,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
title: userNotice.title,
|
||||
props: {
|
||||
description: <Linkify>{userNotice.description}</Linkify>,
|
||||
acceptLabel: _t("OK"),
|
||||
acceptLabel: _t("action|ok"),
|
||||
onAccept: () => {
|
||||
ToastStore.sharedInstance().dismissToast(key);
|
||||
localStorage.setItem(key, "1");
|
||||
|
|
|
@ -286,7 +286,7 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
|
|||
if (room.isError) {
|
||||
const buttons = (
|
||||
<AccessibleButton onClick={onRetryClicked} className="mx_RoomStatusBar_unsentRetry">
|
||||
{_t("Retry")}
|
||||
{_t("action|retry")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
|
||||
|
|
|
@ -716,7 +716,7 @@ const ManageButtons: React.FC<IManageButtonsProps> = ({ hierarchy, selected, set
|
|||
kind="danger_outline"
|
||||
disabled={disabled}
|
||||
>
|
||||
{removing ? _t("Removing…") : _t("Remove")}
|
||||
{removing ? _t("Removing…") : _t("action|remove")}
|
||||
</Button>
|
||||
<Button
|
||||
{...props}
|
||||
|
|
|
@ -232,7 +232,7 @@ const SpaceLanding: React.FC<{ space: Room }> = ({ space }) => {
|
|||
showSpaceInvite(space);
|
||||
}}
|
||||
>
|
||||
{_t("Invite")}
|
||||
{_t("action|invite")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
@ -364,7 +364,7 @@ const SpaceSetupFirstRooms: React.FC<{
|
|||
let buttonLabel = _t("Skip for now");
|
||||
if (roomNames.some((name) => name.trim())) {
|
||||
onClick = onNextClick;
|
||||
buttonLabel = busy ? _t("Creating rooms…") : _t("Continue");
|
||||
buttonLabel = busy ? _t("Creating rooms…") : _t("action|continue");
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -572,7 +572,7 @@ const SpaceSetupPrivateInvite: React.FC<{
|
|||
let buttonLabel = _t("Skip for now");
|
||||
if (emailAddresses.some((name) => name.trim())) {
|
||||
onClick = onNextClick;
|
||||
buttonLabel = busy ? _t("Inviting…") : _t("Continue");
|
||||
buttonLabel = busy ? _t("Inviting…") : _t("action|continue");
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
@ -157,7 +157,7 @@ export default class ViewSource extends React.Component<IProps, IState> {
|
|||
? this.canSendStateEvent(mxEvent)
|
||||
: canEditContent(MatrixClientPeg.safeGet(), this.props.mxEvent);
|
||||
return (
|
||||
<BaseDialog className="mx_ViewSource" onFinished={this.props.onFinished} title={_t("View Source")}>
|
||||
<BaseDialog className="mx_ViewSource" onFinished={this.props.onFinished} title={_t("action|view_source")}>
|
||||
<div className="mx_ViewSource_header">
|
||||
<CopyableText getTextToCopy={() => roomId} border={false}>
|
||||
{_t("Room ID: %(roomId)s", { roomId })}
|
||||
|
@ -176,7 +176,7 @@ export default class ViewSource extends React.Component<IProps, IState> {
|
|||
{isEditing ? this.editSourceContent() : this.viewSourceContent()}
|
||||
{!isEditing && canEdit && (
|
||||
<div className="mx_Dialog_buttons">
|
||||
<button onClick={() => this.onEdit()}>{_t("Edit")}</button>
|
||||
<button onClick={() => this.onEdit()}>{_t("action|edit")}</button>
|
||||
</div>
|
||||
)}
|
||||
</BaseDialog>
|
||||
|
|
|
@ -364,7 +364,7 @@ export default class ForgotPassword extends React.Component<Props, State> {
|
|||
</p>
|
||||
</div>
|
||||
),
|
||||
button: _t("Continue"),
|
||||
button: _t("action|continue"),
|
||||
});
|
||||
const [confirmed] = await finished;
|
||||
return !!confirmed;
|
||||
|
|
|
@ -481,7 +481,7 @@ export default class LoginComponent extends React.PureComponent<IProps, IState>
|
|||
);
|
||||
}}
|
||||
>
|
||||
{_t("Continue")}
|
||||
{_t("action|continue")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -244,7 +244,7 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
|
|||
{message}
|
||||
<div className="mx_CompleteSecurity_actionRow">
|
||||
<AccessibleButton kind="primary" onClick={this.onDoneClick}>
|
||||
{_t("Done")}
|
||||
{_t("action|done")}
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -66,7 +66,7 @@ export const CheckEmail: React.FC<CheckEmailProps> = ({
|
|||
</div>
|
||||
</div>
|
||||
{errorText && <ErrorMessage message={errorText} />}
|
||||
<input onClick={onSubmitForm} type="button" className="mx_Login_submit" value={_t("Next")} />
|
||||
<input onClick={onSubmitForm} type="button" className="mx_Login_submit" value={_t("action|next")} />
|
||||
<div className="mx_AuthBody_did-not-receive">
|
||||
<span className="mx_VerifyEMailDialog_text-light">{_t("Did not receive it?")}</span>
|
||||
<AccessibleButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue