Migrate more strings to translation keys (#11694)
This commit is contained in:
parent
677854d318
commit
e1cfde0c6e
201 changed files with 21074 additions and 18552 deletions
|
@ -67,7 +67,7 @@ const ActiveCallEvent = forwardRef<any, ActiveCallEventProps>(
|
|||
<div className="mx_CallEvent_columns">
|
||||
<div className="mx_CallEvent_details">
|
||||
<span className="mx_CallEvent_title">
|
||||
{_t("%(name)s started a video call", { name: senderName })}
|
||||
{_t("timeline|m.call|video_call_started_text", { name: senderName })}
|
||||
</span>
|
||||
<LiveContentSummary
|
||||
type={LiveContentType.Video}
|
||||
|
|
|
@ -178,8 +178,8 @@ export default class DateSeparator extends React.Component<IProps, IState> {
|
|||
});
|
||||
} else {
|
||||
friendlyErrorMessage = _t("room|error_jump_to_date", {
|
||||
statusCode: err?.httpStatus || _t("unknown status code"),
|
||||
errorCode: err?.errcode || _t("unavailable"),
|
||||
statusCode: err?.httpStatus || _t("room|unknown_status_code_for_timeline_jump"),
|
||||
errorCode: err?.errcode || _t("common|unavailable"),
|
||||
});
|
||||
}
|
||||
} else if (err instanceof HTTPError) {
|
||||
|
|
|
@ -97,7 +97,7 @@ export default class MKeyVerificationRequest extends React.Component<IProps> {
|
|||
if (userId === myUserId) {
|
||||
return _t("timeline|m.key.verification.request|you_accepted");
|
||||
} else {
|
||||
return _t("%(name)s accepted", {
|
||||
return _t("timeline|m.key.verification.request|user_accepted", {
|
||||
name: getNameForEventRoom(client, userId, this.props.mxEvent.getRoomId()!),
|
||||
});
|
||||
}
|
||||
|
@ -116,11 +116,11 @@ export default class MKeyVerificationRequest extends React.Component<IProps> {
|
|||
}
|
||||
} else {
|
||||
if (declined) {
|
||||
return _t("%(name)s declined", {
|
||||
return _t("timeline|m.key.verification.request|user_declined", {
|
||||
name: getNameForEventRoom(client, userId, this.props.mxEvent.getRoomId()!),
|
||||
});
|
||||
} else {
|
||||
return _t("%(name)s cancelled", {
|
||||
return _t("timeline|m.key.verification.request|user_cancelled", {
|
||||
name: getNameForEventRoom(client, userId, this.props.mxEvent.getRoomId()!),
|
||||
});
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ export default class MKeyVerificationRequest extends React.Component<IProps> {
|
|||
|
||||
if (!request.initiatedByMe) {
|
||||
const name = getNameForEventRoom(client, request.otherUserId, mxEvent.getRoomId()!);
|
||||
title = _t("%(name)s wants to verify", { name });
|
||||
title = _t("timeline|m.key.verification.request|user_wants_to_verify", { name });
|
||||
subtitle = userLabelForEventRoom(client, request.otherUserId, mxEvent.getRoomId()!);
|
||||
if (canAcceptVerificationRequest(request)) {
|
||||
stateNode = (
|
||||
|
|
|
@ -322,7 +322,7 @@ export default class MPollBody extends React.Component<IBodyProps, IState> {
|
|||
}
|
||||
|
||||
const editedSpan = this.props.mxEvent.replacingEvent() ? (
|
||||
<span className="mx_MPollBody_edited"> ({_t("edited")})</span>
|
||||
<span className="mx_MPollBody_edited"> ({_t("common|edited")})</span>
|
||||
) : null;
|
||||
|
||||
return (
|
||||
|
|
|
@ -54,7 +54,7 @@ const ReactButton: React.FC<IProps> = ({ mxEvent, reactions }) => {
|
|||
className={classNames("mx_ReactionsRow_addReactionButton", {
|
||||
mx_ReactionsRow_addReactionButton_active: menuDisplayed,
|
||||
})}
|
||||
title={_t("Add reaction")}
|
||||
title={_t("timeline|reactions|add_reaction_prompt")}
|
||||
onClick={openMenu}
|
||||
onContextMenu={(e: SyntheticEvent): void => {
|
||||
e.preventDefault();
|
||||
|
|
|
@ -145,7 +145,7 @@ export default class ReactionsRowButton extends React.PureComponent<IProps, ISta
|
|||
reactionContent = (
|
||||
<img
|
||||
className="mx_ReactionsRowButton_content"
|
||||
alt={customReactionName || _t("Custom reaction")}
|
||||
alt={customReactionName || _t("timeline|reactions|custom_reaction_fallback_label")}
|
||||
src={imageSrc}
|
||||
width="16"
|
||||
height="16"
|
||||
|
|
|
@ -490,13 +490,10 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
|
|||
const completeUrl = scalarClient.getStarterLink(starterLink);
|
||||
const integrationsUrl = integrationManager!.uiUrl;
|
||||
Modal.createDialog(QuestionDialog, {
|
||||
title: _t("Add an Integration"),
|
||||
title: _t("timeline|scalar_starter_link|dialog_title"),
|
||||
description: (
|
||||
<div>
|
||||
{_t(
|
||||
"You are about to be taken to a third-party site so you can authenticate your account for use with %(integrationsUrl)s. Do you wish to continue?",
|
||||
{ integrationsUrl: integrationsUrl },
|
||||
)}
|
||||
{_t("timeline|scalar_starter_link|dialog_description", { integrationsUrl: integrationsUrl })}
|
||||
</div>
|
||||
),
|
||||
button: _t("action|continue"),
|
||||
|
@ -526,8 +523,8 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
|
|||
|
||||
const tooltip = (
|
||||
<div>
|
||||
<div className="mx_Tooltip_title">{_t("Edited at %(date)s", { date: dateString })}</div>
|
||||
<div className="mx_Tooltip_sub">{_t("Click to view edits")}</div>
|
||||
<div className="mx_Tooltip_title">{_t("timeline|edits|tooltip_title", { date: dateString })}</div>
|
||||
<div className="mx_Tooltip_sub">{_t("timeline|edits|tooltip_sub")}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
@ -535,10 +532,10 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
|
|||
<AccessibleTooltipButton
|
||||
className="mx_EventTile_edited"
|
||||
onClick={this.openHistoryDialog}
|
||||
title={_t("Edited at %(date)s. Click to view edits.", { date: dateString })}
|
||||
title={_t("timeline|edits|tooltip_label", { date: dateString })}
|
||||
tooltip={tooltip}
|
||||
>
|
||||
<span>{`(${_t("edited")})`}</span>
|
||||
<span>{`(${_t("common|edited")})`}</span>
|
||||
</AccessibleTooltipButton>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ export default class TileErrorBoundary extends React.Component<IProps, IState> {
|
|||
<>
|
||||
|
||||
<AccessibleButton kind="link" onClick={this.onBugReport}>
|
||||
{_t("Submit logs")}
|
||||
{_t("bug_reporting|submit_debug_logs")}
|
||||
</AccessibleButton>
|
||||
</>
|
||||
);
|
||||
|
@ -105,7 +105,7 @@ export default class TileErrorBoundary extends React.Component<IProps, IState> {
|
|||
<li className={classNames(classes)} data-layout={this.props.layout}>
|
||||
<div className="mx_EventTile_line">
|
||||
<span>
|
||||
{_t("Can't load this message")}
|
||||
{_t("timeline|error_rendering_message")}
|
||||
{mxEvent && ` (${mxEvent.getType()})`}
|
||||
{submitLogsButton}
|
||||
{viewSourceButton}
|
||||
|
|
|
@ -78,7 +78,7 @@ export default class ViewSourceEvent extends React.PureComponent<IProps, IState>
|
|||
{content}
|
||||
<AccessibleButton
|
||||
kind="link"
|
||||
title={_t("toggle event")}
|
||||
title={_t("devtools|toggle_event")}
|
||||
className="mx_ViewSourceEvent_toggle"
|
||||
onClick={this.onToggle}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue