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
202 changed files with 2046 additions and 2105 deletions

View File

@@ -166,7 +166,7 @@ export default class DesktopCapturerSourcePicker extends React.Component<PickerI
>
<TabbedView tabs={tabs} tabLocation={TabLocation.TOP} onChange={this.onTabChange} />
<DialogButtons
primaryButton={_t("Share")}
primaryButton={_t("action|share")}
hasCancel={true}
onCancel={this.onCloseClick}
onPrimaryButtonClick={this.onShare}

View File

@@ -90,7 +90,7 @@ export default class DialogButtons extends React.Component<IProps> {
className={this.props.cancelButtonClass}
disabled={this.props.disabled}
>
{this.props.cancelButton || _t("Cancel")}
{this.props.cancelButton || _t("action|cancel")}
</button>
);
}

View File

@@ -147,7 +147,7 @@ export default class EditableItemList<P = {}> extends React.PureComponent<IProps
type="submit"
disabled={!this.props.newItem}
>
{_t("Add")}
{_t("action|add")}
</AccessibleButton>
</form>
);

View File

@@ -130,7 +130,7 @@ const GenericEventListSummary: React.FC<IProps> = ({
onClick={toggleExpanded}
aria-expanded={expanded}
>
{expanded ? _t("collapse") : _t("expand")}
{expanded ? _t("action|collapse") : _t("action|expand")}
</AccessibleButton>
{body}
</li>

View File

@@ -515,14 +515,14 @@ export default class ImageView extends React.Component<IProps, IState> {
const zoomOutButton = (
<AccessibleTooltipButton
className="mx_ImageView_button mx_ImageView_button_zoomOut"
title={_t("Zoom out")}
title={_t("action|zoom_out")}
onClick={this.onZoomOutClick}
/>
);
const zoomInButton = (
<AccessibleTooltipButton
className="mx_ImageView_button mx_ImageView_button_zoomIn"
title={_t("Zoom in")}
title={_t("action|zoom_in")}
onClick={this.onZoomInClick}
/>
);
@@ -565,13 +565,13 @@ export default class ImageView extends React.Component<IProps, IState> {
/>
<AccessibleTooltipButton
className="mx_ImageView_button mx_ImageView_button_download"
title={_t("Download")}
title={_t("action|download")}
onClick={this.onDownloadClick}
/>
{contextMenuButton}
<AccessibleTooltipButton
className="mx_ImageView_button mx_ImageView_button_close"
title={_t("Close")}
title={_t("action|close")}
onClick={this.props.onFinished}
/>
{this.renderContextMenu()}

View File

@@ -31,7 +31,7 @@ const LearnMore: React.FC<LearnMoreProps> = ({ title, description, ...rest }) =>
Modal.createDialog(InfoDialog, {
title,
description,
button: _t("Got it"),
button: _t("action|got_it"),
hasCloseButton: true,
});
};

View File

@@ -177,8 +177,8 @@ export default class PollCreateDialog extends ScrollableBaseModal<IProps, IState
Modal.createDialog(QuestionDialog, {
title: _t("Failed to post poll"),
description: _t("Sorry, the poll you tried to create was not posted."),
button: _t("Try again"),
cancelButton: _t("Cancel"),
button: _t("action|try_again"),
cancelButton: _t("action|cancel"),
onFinished: (tryAgain: boolean) => {
if (!tryAgain) {
this.cancel();

View File

@@ -50,7 +50,7 @@ const onHelpClick = (): void => {
"You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use %(brand)s with an existing Matrix account on a different homeserver.",
{ brand },
),
button: _t("Dismiss"),
button: _t("action|dismiss"),
hasCloseButton: false,
fixedWidth: false,
},

View File

@@ -85,7 +85,7 @@ export default class TagComposer extends React.PureComponent<IProps, IState> {
autoComplete="off"
/>
<AccessibleButton onClick={this.onAdd} kind="primary" disabled={this.props.disabled}>
{_t("Add")}
{_t("action|add")}
</AccessibleButton>
</form>
<div className="mx_TagComposer_tags" role="list">

View File

@@ -78,7 +78,7 @@ export function UseCaseSelection({ onFinished }: Props): JSX.Element {
</div>
<div className="mx_UseCaseSelection_skip mx_UseCaseSelection_slideInDelayed">
<AccessibleButton kind="link" onClick={async () => setSelected(UseCase.Skip)}>
{_t("Skip")}
{_t("action|skip")}
</AccessibleButton>
</div>
</SplashPage>