Migrate more strings to translation keys (#11651)
This commit is contained in:
parent
560449676b
commit
f4d056fd38
127 changed files with 8916 additions and 8272 deletions
|
@ -116,8 +116,8 @@ export function inviteUsersToRoom(
|
|||
.catch((err) => {
|
||||
logger.error(err.stack);
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to invite"),
|
||||
description: err && err.message ? err.message : _t("Operation failed"),
|
||||
title: _t("invite|failed_title"),
|
||||
description: err && err.message ? err.message : _t("invite|failed_generic"),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ export function showAnyInviteErrors(
|
|||
// user. This usually means that no other users were attempted, making it
|
||||
// pointless for us to list who failed exactly.
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to invite users to %(roomName)s", { roomName: room.name }),
|
||||
title: _t("invite|room_failed_title", { roomName: room.name }),
|
||||
description: inviter.getErrorText(failedUsers[0]),
|
||||
});
|
||||
return false;
|
||||
|
@ -155,7 +155,7 @@ export function showAnyInviteErrors(
|
|||
<div className="mx_InviteDialog_multiInviterError">
|
||||
<h4>
|
||||
{_t(
|
||||
"We sent the others, but the below people couldn't be invited to <RoomName/>",
|
||||
"invite|room_failed_partial",
|
||||
{},
|
||||
{
|
||||
RoomName: () => <b>{room.name}</b>,
|
||||
|
@ -195,7 +195,7 @@ export function showAnyInviteErrors(
|
|||
);
|
||||
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Some invites couldn't be sent"),
|
||||
title: _t("invite|room_failed_partial_title"),
|
||||
description,
|
||||
});
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue