Create more action_*
common strings (#11438)
This commit is contained in:
parent
e79b03a2df
commit
d5cacff6c3
202 changed files with 2046 additions and 2105 deletions
|
@ -129,9 +129,9 @@ const ActiveLoadedCallEvent = forwardRef<any, ActiveLoadedCallEventProps>(({ mxE
|
|||
const [buttonText, buttonKind, onButtonClick] = useMemo(() => {
|
||||
switch (connectionState) {
|
||||
case ConnectionState.Disconnected:
|
||||
return [_t("Join"), "primary", connect];
|
||||
return [_t("action|join"), "primary", connect];
|
||||
case ConnectionState.Connecting:
|
||||
return [_t("Join"), "primary", null];
|
||||
return [_t("action|join"), "primary", null];
|
||||
case ConnectionState.Connected:
|
||||
return [_t("action|leave"), "danger", disconnect];
|
||||
case ConnectionState.Disconnecting:
|
||||
|
@ -189,7 +189,7 @@ export const CallEvent = forwardRef<any, CallEventProps>(({ mxEvent }, ref) => {
|
|||
mxEvent={mxEvent}
|
||||
call={null}
|
||||
participatingMembers={[]}
|
||||
buttonText={_t("Join")}
|
||||
buttonText={_t("action|join")}
|
||||
buttonKind="primary"
|
||||
onButtonClick={null}
|
||||
/>
|
||||
|
|
|
@ -95,7 +95,7 @@ export default class DownloadActionButton extends React.PureComponent<IProps, IS
|
|||
return (
|
||||
<RovingAccessibleTooltipButton
|
||||
className={classes}
|
||||
title={spinner ? _t(this.state.tooltip) : _t("Download")}
|
||||
title={spinner ? _t(this.state.tooltip) : _t("action|download")}
|
||||
onClick={this.onDownloadClick}
|
||||
disabled={!!spinner}
|
||||
>
|
||||
|
|
|
@ -144,7 +144,7 @@ export default class LegacyCallEvent extends React.PureComponent<IProps, IState>
|
|||
onClick={this.props.callEventGrouper.answerCall}
|
||||
kind="primary"
|
||||
>
|
||||
<span> {_t("Accept")} </span>
|
||||
<span> {_t("action|accept")} </span>
|
||||
</AccessibleButton>
|
||||
{this.props.timestamp}
|
||||
</div>
|
||||
|
|
|
@ -173,7 +173,7 @@ export default class MKeyVerificationRequest extends React.Component<IProps> {
|
|||
{_t("action|decline")}
|
||||
</AccessibleButton>
|
||||
<AccessibleButton kind="primary" onClick={this.onAcceptClicked}>
|
||||
{_t("Accept")}
|
||||
{_t("action|accept")}
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -410,7 +410,7 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
|
|||
const cancelSendingButton = (
|
||||
<RovingAccessibleTooltipButton
|
||||
className="mx_MessageActionBar_iconButton"
|
||||
title={_t("Delete")}
|
||||
title={_t("action|delete")}
|
||||
onClick={this.onCancelClick}
|
||||
onContextMenu={this.onCancelClick}
|
||||
key="cancel"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue