Migrate more strings to translation keys (#11532)

This commit is contained in:
Michael Telatynski 2023-09-05 17:52:06 +01:00 committed by GitHub
parent c853257d54
commit 85be845f16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 5313 additions and 4434 deletions

View file

@ -25,12 +25,12 @@ export class LegacyCallAnswerEventPreview implements IPreview {
public getTextFor(event: MatrixEvent, tagId?: TagID): string {
if (shouldPrefixMessagesIn(event.getRoomId()!, tagId)) {
if (isSelf(event)) {
return _t("You joined the call");
return _t("event_preview|m.call.answer|you");
} else {
return _t("%(senderName)s joined the call", { senderName: getSenderName(event) });
return _t("event_preview|m.call.answer|user", { senderName: getSenderName(event) });
}
} else {
return _t("Call in progress");
return _t("event_preview|m.call.answer|dm");
}
}
}