Migrate more strings to translation keys (#11694)

This commit is contained in:
Michael Telatynski 2023-10-03 19:17:26 +01:00 committed by GitHub
parent 677854d318
commit e1cfde0c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
201 changed files with 21074 additions and 18552 deletions

View file

@ -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 = (