Update the strings for unsupported calls. (#3502)

This commit is contained in:
Doug
2024-11-11 17:45:06 +00:00
committed by GitHub
parent a0c99e88ce
commit 77ade52718
9 changed files with 25 additions and 16 deletions
@@ -226,6 +226,7 @@
"common_unable_to_invite_title" = "Unable to send invite(s)"; "common_unable_to_invite_title" = "Unable to send invite(s)";
"common_unlock" = "Unlock"; "common_unlock" = "Unlock";
"common_unmute" = "Unmute"; "common_unmute" = "Unmute";
"common_unsupported_call" = "Unsupported call";
"common_unsupported_event" = "Unsupported event"; "common_unsupported_event" = "Unsupported event";
"common_username" = "Username"; "common_username" = "Username";
"common_verification_cancelled" = "Verification cancelled"; "common_verification_cancelled" = "Verification cancelled";
@@ -789,6 +790,7 @@
"screen_room_timeline_add_reaction" = "Add emoji"; "screen_room_timeline_add_reaction" = "Add emoji";
"screen_room_timeline_beginning_of_room" = "This is the beginning of %1$@."; "screen_room_timeline_beginning_of_room" = "This is the beginning of %1$@.";
"screen_room_timeline_beginning_of_room_no_name" = "This is the beginning of this conversation."; "screen_room_timeline_beginning_of_room_no_name" = "This is the beginning of this conversation.";
"screen_room_timeline_legacy_call" = "Unsupported call. Ask if the caller can use to the new Element X app.";
"screen_room_timeline_less_reactions" = "Show less"; "screen_room_timeline_less_reactions" = "Show less";
"screen_room_timeline_message_copied" = "Message copied"; "screen_room_timeline_message_copied" = "Message copied";
"screen_room_timeline_no_permission_to_post" = "You do not have permission to post to this room"; "screen_room_timeline_no_permission_to_post" = "You do not have permission to post to this room";
+4
View File
@@ -512,6 +512,8 @@ internal enum L10n {
internal static var commonUnlock: String { return L10n.tr("Localizable", "common_unlock") } internal static var commonUnlock: String { return L10n.tr("Localizable", "common_unlock") }
/// Unmute /// Unmute
internal static var commonUnmute: String { return L10n.tr("Localizable", "common_unmute") } internal static var commonUnmute: String { return L10n.tr("Localizable", "common_unmute") }
/// Unsupported call
internal static var commonUnsupportedCall: String { return L10n.tr("Localizable", "common_unsupported_call") }
/// Unsupported event /// Unsupported event
internal static var commonUnsupportedEvent: String { return L10n.tr("Localizable", "common_unsupported_event") } internal static var commonUnsupportedEvent: String { return L10n.tr("Localizable", "common_unsupported_event") }
/// Username /// Username
@@ -1926,6 +1928,8 @@ internal enum L10n {
} }
/// This is the beginning of this conversation. /// This is the beginning of this conversation.
internal static var screenRoomTimelineBeginningOfRoomNoName: String { return L10n.tr("Localizable", "screen_room_timeline_beginning_of_room_no_name") } internal static var screenRoomTimelineBeginningOfRoomNoName: String { return L10n.tr("Localizable", "screen_room_timeline_beginning_of_room_no_name") }
/// Unsupported call. Ask if the caller can use to the new Element X app.
internal static var screenRoomTimelineLegacyCall: String { return L10n.tr("Localizable", "screen_room_timeline_legacy_call") }
/// Show less /// Show less
internal static var screenRoomTimelineLessReactions: String { return L10n.tr("Localizable", "screen_room_timeline_less_reactions") } internal static var screenRoomTimelineLessReactions: String { return L10n.tr("Localizable", "screen_room_timeline_less_reactions") }
/// Message copied /// Message copied
@@ -13,8 +13,11 @@ struct CallInviteRoomTimelineView: View {
let timelineItem: CallInviteRoomTimelineItem let timelineItem: CallInviteRoomTimelineItem
var body: some View { var body: some View {
Label(title: { Text(L10n.commonCallInvite) }, Label {
icon: { CompoundIcon(\.voiceCall, size: .medium, relativeTo: .compound.bodyMD) }) Text(L10n.screenRoomTimelineLegacyCall)
} icon: {
CompoundIcon(\.voiceCall, size: .medium, relativeTo: .compound.bodyMD)
}
.font(.compound.bodyMD) .font(.compound.bodyMD)
.foregroundColor(.compound.textSecondary) .foregroundColor(.compound.textSecondary)
.frame(maxWidth: .infinity, alignment: .center) .frame(maxWidth: .infinity, alignment: .center)
@@ -73,7 +73,7 @@ struct RoomEventStringBuilder {
} }
return prefix(L10n.commonPollSummary(question), with: displayName) return prefix(L10n.commonPollSummary(question), with: displayName)
case .callInvite: case .callInvite:
return prefix(L10n.commonCallInvite, with: displayName) return prefix(L10n.commonUnsupportedCall, with: displayName)
case .callNotify: case .callNotify:
return prefix(L10n.commonCallStarted, with: displayName) return prefix(L10n.commonCallStarted, with: displayName)
} }
+1 -1
View File
@@ -131,7 +131,7 @@ struct NotificationContentBuilder {
private func processCallInviteEvent(notificationItem: NotificationItemProxyProtocol, mediaProvider: MediaProviderProtocol?) async throws -> UNMutableNotificationContent { private func processCallInviteEvent(notificationItem: NotificationItemProxyProtocol, mediaProvider: MediaProviderProtocol?) async throws -> UNMutableNotificationContent {
let notification = try await processCommonRoomMessage(notificationItem: notificationItem, mediaProvider: mediaProvider) let notification = try await processCommonRoomMessage(notificationItem: notificationItem, mediaProvider: mediaProvider)
notification.body = L10n.commonCallInvite notification.body = L10n.commonUnsupportedCall
return notification return notification
} }
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:73e3426c1023e8174271fb1e163b85033ab1ea531881ed2a5a9f3db24ebd5598 oid sha256:83c70644604dc70c886dea41fc3935e9d8d7bed388e0d57619bbdfe026c3b0c5
size 73834 size 78127
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:0b9c353ac087285f4b2a7ac41f032f891cccef0cc76e1ea11c562223abdfb122 oid sha256:d22830f81bb98725d9e25e49814b3263269ffd6f59a0af60fe19d55e13ab1448
size 77179 size 84129
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:3f9fc5b3400d6f5ee581d283f2e38dc0a9502f66f8d912a0158c8856eee650f9 oid sha256:3f9beb2df735de7ad5d2c3c187b236672813db91a987992b13e2a344c663e3cf
size 33067 size 38721
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:a08fabc8d61ef8ea8ae9e161b5c560e30eac85097823dc5077d1f32e65975cfb oid sha256:7210cfeed3af08712b88d2f845118d284adf441f11f5cf03b84ea7b3d02d6205
size 37845 size 47915