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
+4
View File
@@ -512,6 +512,8 @@ internal enum L10n {
internal static var commonUnlock: String { return L10n.tr("Localizable", "common_unlock") }
/// 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
internal static var commonUnsupportedEvent: String { return L10n.tr("Localizable", "common_unsupported_event") }
/// Username
@@ -1926,6 +1928,8 @@ internal enum L10n {
}
/// This is the beginning of this conversation.
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
internal static var screenRoomTimelineLessReactions: String { return L10n.tr("Localizable", "screen_room_timeline_less_reactions") }
/// Message copied
@@ -13,12 +13,15 @@ struct CallInviteRoomTimelineView: View {
let timelineItem: CallInviteRoomTimelineItem
var body: some View {
Label(title: { Text(L10n.commonCallInvite) },
icon: { CompoundIcon(\.voiceCall, size: .medium, relativeTo: .compound.bodyMD) })
.font(.compound.bodyMD)
.foregroundColor(.compound.textSecondary)
.frame(maxWidth: .infinity, alignment: .center)
.padding()
Label {
Text(L10n.screenRoomTimelineLegacyCall)
} icon: {
CompoundIcon(\.voiceCall, size: .medium, relativeTo: .compound.bodyMD)
}
.font(.compound.bodyMD)
.foregroundColor(.compound.textSecondary)
.frame(maxWidth: .infinity, alignment: .center)
.padding()
}
}
@@ -73,7 +73,7 @@ struct RoomEventStringBuilder {
}
return prefix(L10n.commonPollSummary(question), with: displayName)
case .callInvite:
return prefix(L10n.commonCallInvite, with: displayName)
return prefix(L10n.commonUnsupportedCall, with: displayName)
case .callNotify:
return prefix(L10n.commonCallStarted, with: displayName)
}