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
|
@ -246,7 +246,7 @@ export const AddExistingToSpace: React.FC<IAddExistingToSpaceProps> = ({
|
|||
</span>
|
||||
|
||||
<AccessibleButton className="mx_AddExistingToSpaceDialog_retryButton" onClick={addRooms}>
|
||||
{_t("Retry")}
|
||||
{_t("action|retry")}
|
||||
</AccessibleButton>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -48,7 +48,7 @@ export default class ConfirmRedactDialog extends React.Component<IProps> {
|
|||
description={description}
|
||||
placeholder={_t("Reason (optional)")}
|
||||
focus
|
||||
button={_t("Remove")}
|
||||
button={_t("action|remove")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -343,7 +343,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
|||
if (isVideoRoom) {
|
||||
title = _t("Create a video room");
|
||||
} else if (this.props.parentSpace || this.state.joinRule === JoinRule.Knock) {
|
||||
title = _t("Create a room");
|
||||
title = _t("action|create_a_room");
|
||||
} else {
|
||||
title = this.state.joinRule === JoinRule.Public ? _t("Create a public room") : _t("Create a private room");
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ export default class ErrorDialog extends React.Component<IProps, IState> {
|
|||
</div>
|
||||
<div className="mx_Dialog_buttons">
|
||||
<button className="mx_Dialog_primary" onClick={this.onClick} autoFocus={this.props.focus}>
|
||||
{this.props.button || _t("OK")}
|
||||
{this.props.button || _t("action|ok")}
|
||||
</button>
|
||||
</div>
|
||||
</BaseDialog>
|
||||
|
|
|
@ -315,7 +315,7 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
|
|||
primaryButton={_t("Stop")}
|
||||
primaryButtonClass="danger"
|
||||
hasCancel={true}
|
||||
cancelButton={_t("Continue")}
|
||||
cancelButton={_t("action|continue")}
|
||||
onCancel={() => setCancelWarning(false)}
|
||||
onPrimaryButtonClick={confirmCancel}
|
||||
/>
|
||||
|
|
|
@ -211,7 +211,7 @@ export default class IncomingSasDialog extends React.Component<IProps, IState> {
|
|||
{profile}
|
||||
{isSelf ? selfDetailText : userDetailText}
|
||||
<DialogButtons
|
||||
primaryButton={_t("Continue")}
|
||||
primaryButton={_t("action|continue")}
|
||||
hasCancel={true}
|
||||
onPrimaryButtonClick={this.onContinueClick}
|
||||
onCancel={this.onCancelClick}
|
||||
|
|
|
@ -62,7 +62,7 @@ export default class InfoDialog extends React.Component<IProps> {
|
|||
</div>
|
||||
{this.props.button !== false && (
|
||||
<DialogButtons
|
||||
primaryButton={this.props.button || _t("OK")}
|
||||
primaryButton={this.props.button || _t("action|ok")}
|
||||
onPrimaryButtonClick={this.onFinished}
|
||||
hasCancel={false}
|
||||
/>
|
||||
|
|
|
@ -54,7 +54,7 @@ export default class IntegrationsDisabledDialog extends React.Component<IProps>
|
|||
<DialogButtons
|
||||
primaryButton={_t("common|settings")}
|
||||
onPrimaryButtonClick={this.onOpenSettingsClick}
|
||||
cancelButton={_t("OK")}
|
||||
cancelButton={_t("action|ok")}
|
||||
onCancel={this.onAcknowledgeClick}
|
||||
/>
|
||||
</BaseDialog>
|
||||
|
|
|
@ -49,7 +49,7 @@ export default class IntegrationsImpossibleDialog extends React.Component<IProps
|
|||
</p>
|
||||
</div>
|
||||
<DialogButtons
|
||||
primaryButton={_t("OK")}
|
||||
primaryButton={_t("action|ok")}
|
||||
onPrimaryButtonClick={this.onAcknowledgeClick}
|
||||
hasCancel={false}
|
||||
/>
|
||||
|
|
|
@ -135,7 +135,7 @@ class DMUserTile extends React.PureComponent<IDMUserTileProps> {
|
|||
<AccessibleButton className="mx_InviteDialog_userTile_remove" onClick={this.onRemove}>
|
||||
<img
|
||||
src={require("../../../../res/img/icon-pill-remove.svg").default}
|
||||
alt={_t("Remove")}
|
||||
alt={_t("action|remove")}
|
||||
width={8}
|
||||
height={8}
|
||||
/>
|
||||
|
@ -944,7 +944,7 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
"The following users might not exist or are invalid, and cannot be invited: %(csvNames)s",
|
||||
{ csvNames: failed.join(", ") },
|
||||
),
|
||||
button: _t("OK"),
|
||||
button: _t("action|ok"),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1388,7 +1388,7 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
},
|
||||
);
|
||||
|
||||
buttonText = _t("Invite");
|
||||
buttonText = _t("action|invite");
|
||||
goButtonFn = this.inviteUsers;
|
||||
|
||||
if (cli.isRoomEncrypted(this.props.roomId)) {
|
||||
|
|
|
@ -100,7 +100,7 @@ const KeySignatureUploadFailedDialog: React.FC<IProps> = ({ failures, source, co
|
|||
body = (
|
||||
<div>
|
||||
<span>{text}</span>
|
||||
<DialogButtons primaryButton={_t("OK")} hasCancel={false} onPrimaryButtonClick={onFinished} />
|
||||
<DialogButtons primaryButton={_t("action|ok")} hasCancel={false} onPrimaryButtonClick={onFinished} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ const LazyLoadingResyncDialog: React.FC<IProps> = (props) => {
|
|||
hasCancelButton={false}
|
||||
title={_t("Updating %(brand)s", { brand })}
|
||||
description={<div>{description}</div>}
|
||||
button={_t("OK")}
|
||||
button={_t("action|ok")}
|
||||
onFinished={props.onFinished}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -46,7 +46,7 @@ export class ModuleUiDialog<P extends DialogProps, C extends DialogContent<P>> e
|
|||
|
||||
this.state = {
|
||||
title: this.props.initialOptions.title,
|
||||
actionLabel: this.props.initialOptions.actionLabel ?? _t("OK"),
|
||||
actionLabel: this.props.initialOptions.actionLabel ?? _t("action|ok"),
|
||||
cancelLabel: this.props.initialOptions.cancelLabel,
|
||||
canSubmit: this.props.initialOptions.canSubmit ?? true,
|
||||
};
|
||||
|
|
|
@ -77,7 +77,7 @@ export default class QuestionDialog extends React.Component<IQuestionDialogProps
|
|||
{this.props.description}
|
||||
</div>
|
||||
<DialogButtons
|
||||
primaryButton={this.props.button || _t("OK")}
|
||||
primaryButton={this.props.button || _t("action|ok")}
|
||||
primaryButtonClass={primaryButtonClass}
|
||||
primaryDisabled={this.props.buttonDisabled}
|
||||
cancelButton={this.props.cancelButton}
|
||||
|
|
|
@ -79,7 +79,7 @@ const RegistrationEmailPromptDialog: React.FC<IProps> = ({ onFinished }) => {
|
|||
/>
|
||||
</form>
|
||||
</div>
|
||||
<DialogButtons primaryButton={_t("Continue")} onPrimaryButtonClick={onSubmit} hasCancel={false} />
|
||||
<DialogButtons primaryButton={_t("action|continue")} onPrimaryButtonClick={onSubmit} hasCancel={false} />
|
||||
</BaseDialog>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -361,7 +361,7 @@ export default class ReportEventDialog extends React.Component<IProps, IState> {
|
|||
<BaseDialog
|
||||
className="mx_ReportEventDialog"
|
||||
onFinished={this.props.onFinished}
|
||||
title={_t("Report Content")}
|
||||
title={_t("action|report_content")}
|
||||
contentId="mx_ReportEventDialog"
|
||||
>
|
||||
<div>
|
||||
|
|
|
@ -239,10 +239,10 @@ export default class ServerPickerDialog extends React.PureComponent<IProps, ISta
|
|||
<p>{_t("Use your preferred Matrix homeserver if you have one, or host your own.")}</p>
|
||||
|
||||
<AccessibleButton className="mx_ServerPickerDialog_continue" kind="primary" onClick={this.onSubmit}>
|
||||
{_t("Continue")}
|
||||
{_t("action|continue")}
|
||||
</AccessibleButton>
|
||||
|
||||
<h2>{_t("Learn more")}</h2>
|
||||
<h2>{_t("action|learn_more")}</h2>
|
||||
<ExternalLink
|
||||
href="https://matrix.org/docs/matrix-concepts/elements-of-matrix/#homeserver"
|
||||
target="_blank"
|
||||
|
|
|
@ -80,7 +80,7 @@ export default class SetEmailDialog extends React.Component<IProps, IState> {
|
|||
description: _t(
|
||||
"Please check your email and click on the link it contains. Once this is done, click continue.",
|
||||
),
|
||||
button: _t("Continue"),
|
||||
button: _t("action|continue"),
|
||||
onFinished: this.onEmailDialogFinished,
|
||||
});
|
||||
},
|
||||
|
@ -131,7 +131,7 @@ export default class SetEmailDialog extends React.Component<IProps, IState> {
|
|||
Modal.createDialog(QuestionDialog, {
|
||||
title: _t("Verification Pending"),
|
||||
description: message,
|
||||
button: _t("Continue"),
|
||||
button: _t("action|continue"),
|
||||
onFinished: this.onEmailDialogFinished,
|
||||
});
|
||||
} else {
|
||||
|
@ -173,7 +173,12 @@ export default class SetEmailDialog extends React.Component<IProps, IState> {
|
|||
{emailInput}
|
||||
</div>
|
||||
<div className="mx_Dialog_buttons">
|
||||
<input className="mx_Dialog_primary" type="submit" value={_t("Continue")} onClick={this.onSubmit} />
|
||||
<input
|
||||
className="mx_Dialog_primary"
|
||||
type="submit"
|
||||
value={_t("action|continue")}
|
||||
onClick={this.onSubmit}
|
||||
/>
|
||||
<input type="submit" value={_t("Skip")} onClick={this.onCancelled} />
|
||||
</div>
|
||||
</BaseDialog>
|
||||
|
|
|
@ -122,7 +122,7 @@ export const SlidingSyncOptionsDialog: React.FC<{ onFinished(enabled: boolean):
|
|||
}
|
||||
placeholder={hasNativeSupport ? _t("Proxy URL (optional)") : _t("Proxy URL")}
|
||||
value={currentProxy}
|
||||
button={_t("Enable")}
|
||||
button={_t("action|enable")}
|
||||
validator={validProxy}
|
||||
onFinished={(enable, proxyUrl) => {
|
||||
if (enable) {
|
||||
|
|
|
@ -213,7 +213,7 @@ export default class TermsDialog extends React.PureComponent<ITermsDialogProps,
|
|||
</div>
|
||||
|
||||
<DialogButtons
|
||||
primaryButton={_t("Next")}
|
||||
primaryButton={_t("action|next")}
|
||||
hasCancel={true}
|
||||
onCancel={this.onCancelClick}
|
||||
onPrimaryButtonClick={this.onNextClick}
|
||||
|
|
|
@ -71,7 +71,7 @@ const UntrustedDeviceDialog: React.FC<IProps> = ({ device, user, onFinished }) =
|
|||
{_t("Interactively verify by emoji")}
|
||||
</AccessibleButton>
|
||||
<AccessibleButton kind="primary" onClick={() => onFinished(false)}>
|
||||
{_t("Done")}
|
||||
{_t("action|done")}
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
</BaseDialog>
|
||||
|
|
|
@ -60,7 +60,7 @@ export default class UploadFailureDialog extends React.Component<IProps> {
|
|||
);
|
||||
buttons = (
|
||||
<DialogButtons
|
||||
primaryButton={_t("OK")}
|
||||
primaryButton={_t("action|ok")}
|
||||
hasCancel={false}
|
||||
onPrimaryButtonClick={this.onCancelClick}
|
||||
focus={true}
|
||||
|
@ -78,7 +78,7 @@ export default class UploadFailureDialog extends React.Component<IProps> {
|
|||
);
|
||||
buttons = (
|
||||
<DialogButtons
|
||||
primaryButton={_t("OK")}
|
||||
primaryButton={_t("action|ok")}
|
||||
hasCancel={false}
|
||||
onPrimaryButtonClick={this.onCancelClick}
|
||||
focus={true}
|
||||
|
|
|
@ -89,7 +89,7 @@ export default class WidgetOpenIDPermissionsDialog extends React.PureComponent<I
|
|||
</p>
|
||||
</div>
|
||||
<DialogButtons
|
||||
primaryButton={_t("Continue")}
|
||||
primaryButton={_t("action|continue")}
|
||||
onPrimaryButtonClick={this.onAllow}
|
||||
onCancel={this.onDeny}
|
||||
additive={
|
||||
|
|
|
@ -161,7 +161,7 @@ export const EventViewer: React.FC<IViewerProps> = ({ mxEvent, onBack, Editor, e
|
|||
};
|
||||
|
||||
return (
|
||||
<BaseTool onBack={onBack} actionLabel={_t("Edit")} onAction={onAction} extraButton={extraButton}>
|
||||
<BaseTool onBack={onBack} actionLabel={_t("action|edit")} onAction={onAction} extraButton={extraButton}>
|
||||
<SyntaxHighlight language="json">{stringify(mxEvent.event)}</SyntaxHighlight>
|
||||
</BaseTool>
|
||||
);
|
||||
|
|
|
@ -30,7 +30,7 @@ const PHASE_MAP: Record<Phase, TranslationKey> = {
|
|||
[Phase.Unsent]: _td("Unsent"),
|
||||
[Phase.Requested]: _td("Requested"),
|
||||
[Phase.Ready]: _td("Ready"),
|
||||
[Phase.Done]: _td("Done"),
|
||||
[Phase.Done]: _td("action|done"),
|
||||
[Phase.Started]: _td("Started"),
|
||||
[Phase.Cancelled]: _td("Cancelled"),
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@ export const OidcLogoutDialog: React.FC<OidcLogoutDialogProps> = ({
|
|||
href={logoutUrl}
|
||||
target="_blank"
|
||||
>
|
||||
{_t("Continue")}
|
||||
{_t("action|continue")}
|
||||
</AccessibleButton>
|
||||
</>
|
||||
)}
|
||||
|
|
|
@ -366,7 +366,7 @@ export default class AccessSecretStorageDialog extends React.PureComponent<IProp
|
|||
/>
|
||||
{keyStatus}
|
||||
<DialogButtons
|
||||
primaryButton={_t("Continue")}
|
||||
primaryButton={_t("action|continue")}
|
||||
onPrimaryButtonClick={this.onPassPhraseNext}
|
||||
hasCancel={true}
|
||||
onCancel={this.onCancel}
|
||||
|
@ -432,7 +432,7 @@ export default class AccessSecretStorageDialog extends React.PureComponent<IProp
|
|||
</div>
|
||||
{recoveryKeyFeedback}
|
||||
<DialogButtons
|
||||
primaryButton={_t("Continue")}
|
||||
primaryButton={_t("action|continue")}
|
||||
onPrimaryButtonClick={this.onRecoveryKeyNext}
|
||||
hasCancel={true}
|
||||
cancelButton={_t("Go Back")}
|
||||
|
|
|
@ -176,7 +176,7 @@ export default class CreateCrossSigningDialog extends React.PureComponent<IProps
|
|||
<p>{_t("Unable to set up keys")}</p>
|
||||
<div className="mx_Dialog_buttons">
|
||||
<DialogButtons
|
||||
primaryButton={_t("Retry")}
|
||||
primaryButton={_t("action|retry")}
|
||||
onPrimaryButtonClick={this.bootstrapCrossSigning}
|
||||
onCancel={this.onCancel}
|
||||
/>
|
||||
|
|
|
@ -396,7 +396,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
|
|||
</p>
|
||||
{failedToDecrypt}
|
||||
<DialogButtons
|
||||
primaryButton={_t("OK")}
|
||||
primaryButton={_t("action|ok")}
|
||||
onPrimaryButtonClick={this.onDone}
|
||||
hasCancel={false}
|
||||
focus={true}
|
||||
|
@ -429,7 +429,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
|
|||
autoFocus={true}
|
||||
/>
|
||||
<DialogButtons
|
||||
primaryButton={_t("Next")}
|
||||
primaryButton={_t("action|next")}
|
||||
onPrimaryButtonClick={this.onPassPhraseNext}
|
||||
primaryIsSubmit={true}
|
||||
hasCancel={true}
|
||||
|
@ -501,7 +501,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
|
|||
/>
|
||||
{keyStatus}
|
||||
<DialogButtons
|
||||
primaryButton={_t("Next")}
|
||||
primaryButton={_t("action|next")}
|
||||
onPrimaryButtonClick={this.onRecoveryKeyNext}
|
||||
hasCancel={true}
|
||||
onCancel={this.onCancel}
|
||||
|
|
|
@ -910,7 +910,7 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
|||
copyPlaintext(ownInviteLink);
|
||||
}}
|
||||
onHideTooltip={() => setInviteLinkCopied(false)}
|
||||
title={inviteLinkCopied ? _t("Copied!") : _t("Copy")}
|
||||
title={inviteLinkCopied ? _t("Copied!") : _t("action|copy")}
|
||||
>
|
||||
<span className="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary_outline">
|
||||
{_t("Copy invite link")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue