Migrate more strings to translation keys (#11532)
This commit is contained in:
parent
c853257d54
commit
85be845f16
89 changed files with 5313 additions and 4434 deletions
|
@ -96,9 +96,9 @@ export default class IncomingLegacyCallToast extends React.Component<IProps, ISt
|
|||
const isVoice = this.props.call.type === CallType.Voice;
|
||||
const callForcedSilent = LegacyCallHandler.instance.isForcedSilent();
|
||||
|
||||
let silenceButtonTooltip = this.state.silenced ? _t("Sound on") : _t("Silence call");
|
||||
let silenceButtonTooltip = this.state.silenced ? _t("voip|unsilence") : _t("voip|silence");
|
||||
if (callForcedSilent) {
|
||||
silenceButtonTooltip = _t("Notifications silenced");
|
||||
silenceButtonTooltip = _t("voip|silenced");
|
||||
}
|
||||
|
||||
const contentClass = classNames("mx_IncomingLegacyCallToast_content", {
|
||||
|
@ -114,10 +114,10 @@ export default class IncomingLegacyCallToast extends React.Component<IProps, ISt
|
|||
<React.Fragment>
|
||||
<RoomAvatar room={room ?? undefined} size="32px" />
|
||||
<div className={contentClass}>
|
||||
<span className="mx_LegacyCallEvent_caller">{room ? room.name : _t("Unknown caller")}</span>
|
||||
<span className="mx_LegacyCallEvent_caller">{room ? room.name : _t("voip|unknown_caller")}</span>
|
||||
<div className="mx_LegacyCallEvent_type">
|
||||
<div className="mx_LegacyCallEvent_type_icon" />
|
||||
{isVoice ? _t("Voice call") : _t("Video call")}
|
||||
{isVoice ? _t("voip|voice_call") : _t("voip|video_call")}
|
||||
</div>
|
||||
<div className="mx_IncomingLegacyCallToast_buttons">
|
||||
<AccessibleButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue