Skip to content

Commit

Permalink
added historical message error label string (#3580)
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 authored Dec 3, 2024
1 parent 7e5624f commit c566c64
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ElementX/Resources/Localizations/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@
"screen_login_form_header" = "Enter your details";
"screen_login_title" = "Welcome back!";
"screen_login_title_with_homeserver" = "Sign in to %1$@";
"screen_media_browser_empty_state_subtitle" = "Images and videos uploaded to this room will be shown here.";
"screen_media_browser_empty_state_title" = "No media uploaded yet";
"screen_media_browser_list_mode_files" = "Files";
"screen_media_browser_list_mode_media" = "Media";
"screen_media_browser_title" = "Media and files";
"screen_media_picker_error_failed_selection" = "Failed selecting media, please try again.";
"screen_migration_message" = "This is a one time process, thanks for waiting.";
"screen_migration_title" = "Setting up your account.";
Expand Down Expand Up @@ -986,6 +991,9 @@
"state_event_room_unknown_membership_change" = "%1$@ made an unknown change to their membership";
"test_language_identifier" = "en";
"test_untranslated_default_language_identifier" = "en";
"timeline_decryption_failure_historical_event_no_key_backup" = "Historical messages are not available on this device";
"timeline_decryption_failure_unable_to_decrypt" = "Unable to decrypt message";
"timeline_decryption_failure_withheld_unverified" = "This message was blocked either because you did not verify your device or because the sender needs to verify your identity.";
"troubleshoot_notifications_entry_point_section" = "Troubleshoot";
"troubleshoot_notifications_screen_action" = "Run tests";
"troubleshoot_notifications_screen_action_again" = "Run tests again";
Expand Down
16 changes: 16 additions & 0 deletions ElementX/Sources/Generated/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,16 @@ internal enum L10n {
internal static func screenLoginTitleWithHomeserver(_ p1: Any) -> String {
return L10n.tr("Localizable", "screen_login_title_with_homeserver", String(describing: p1))
}
/// Images and videos uploaded to this room will be shown here.
internal static var screenMediaBrowserEmptyStateSubtitle: String { return L10n.tr("Localizable", "screen_media_browser_empty_state_subtitle") }
/// No media uploaded yet
internal static var screenMediaBrowserEmptyStateTitle: String { return L10n.tr("Localizable", "screen_media_browser_empty_state_title") }
/// Files
internal static var screenMediaBrowserListModeFiles: String { return L10n.tr("Localizable", "screen_media_browser_list_mode_files") }
/// Media
internal static var screenMediaBrowserListModeMedia: String { return L10n.tr("Localizable", "screen_media_browser_list_mode_media") }
/// Media and files
internal static var screenMediaBrowserTitle: String { return L10n.tr("Localizable", "screen_media_browser_title") }
/// Failed selecting media, please try again.
internal static var screenMediaPickerErrorFailedSelection: String { return L10n.tr("Localizable", "screen_media_picker_error_failed_selection") }
/// Captions might not be visible to people using older apps.
Expand Down Expand Up @@ -2490,6 +2500,12 @@ internal enum L10n {
internal static var testLanguageIdentifier: String { return L10n.tr("Localizable", "test_language_identifier") }
/// en
internal static var testUntranslatedDefaultLanguageIdentifier: String { return L10n.tr("Localizable", "test_untranslated_default_language_identifier") }
/// Historical messages are not available on this device
internal static var timelineDecryptionFailureHistoricalEventNoKeyBackup: String { return L10n.tr("Localizable", "timeline_decryption_failure_historical_event_no_key_backup") }
/// Unable to decrypt message
internal static var timelineDecryptionFailureUnableToDecrypt: String { return L10n.tr("Localizable", "timeline_decryption_failure_unable_to_decrypt") }
/// This message was blocked either because you did not verify your device or because the sender needs to verify your identity.
internal static var timelineDecryptionFailureWithheldUnverified: String { return L10n.tr("Localizable", "timeline_decryption_failure_withheld_unverified") }
/// Troubleshoot
internal static var troubleshootNotificationsEntryPointSection: String { return L10n.tr("Localizable", "troubleshoot_notifications_entry_point_section") }
/// Troubleshoot notifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
errorLabel = L10n.commonUnableToDecryptNoAccess
case .historicalMessage:
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .historicalMessage)
errorLabel = L10n.commonUnableToDecryptNoAccess
errorLabel = L10n.timelineDecryptionFailureHistoricalEventNoKeyBackup
}
case .olmV1Curve25519AesSha2(let senderKey):
encryptionType = .olmV1Curve25519AesSha2(senderKey: senderKey)
Expand Down

0 comments on commit c566c64

Please sign in to comment.