Migrate more strings to translation keys (#11613)

This commit is contained in:
Michael Telatynski
2023-09-19 17:16:38 +01:00
committed by GitHub
parent d46d4b3d04
commit 5cb8cbd893
111 changed files with 8214 additions and 6766 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ export default class RoomListActions {
return Rooms.guessAndSetDMRoom(room, newTag === DefaultTagID.DM).catch((err) => {
logger.error("Failed to set DM tag " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Failed to set direct message tag"),
title: _t("room_list|failed_set_dm_tag"),
description: err && err.message ? err.message : _t("Operation failed"),
});
});
@@ -102,7 +102,7 @@ export default class RoomListActions {
const promiseToDelete = matrixClient.deleteRoomTag(roomId, oldTag).catch(function (err) {
logger.error("Failed to remove tag " + oldTag + " from room: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Failed to remove tag %(tagName)s from room", { tagName: oldTag }),
title: _t("room_list|failed_remove_tag", { tagName: oldTag }),
description: err && err.message ? err.message : _t("Operation failed"),
});
});
@@ -115,7 +115,7 @@ export default class RoomListActions {
const promiseToAdd = matrixClient.setRoomTag(roomId, newTag, metaData).catch(function (err) {
logger.error("Failed to add tag " + newTag + " to room: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Failed to add tag %(tagName)s to room", { tagName: newTag }),
title: _t("room_list|failed_add_tag", { tagName: newTag }),
description: err && err.message ? err.message : _t("Operation failed"),
});