added historical message error label string (#3580)

This commit is contained in:
Mauro 2024-12-03 17:21:02 +01:00 committed by GitHub
parent 7e5624f9c0
commit c566c64c78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 25 additions and 1 deletions

View File

@ -586,6 +586,11 @@
"screen_login_form_header" = "Enter your details"; "screen_login_form_header" = "Enter your details";
"screen_login_title" = "Welcome back!"; "screen_login_title" = "Welcome back!";
"screen_login_title_with_homeserver" = "Sign in to %1$@"; "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_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_message" = "This is a one time process, thanks for waiting.";
"screen_migration_title" = "Setting up your account."; "screen_migration_title" = "Setting up your account.";
@ -986,6 +991,9 @@
"state_event_room_unknown_membership_change" = "%1$@ made an unknown change to their membership"; "state_event_room_unknown_membership_change" = "%1$@ made an unknown change to their membership";
"test_language_identifier" = "en"; "test_language_identifier" = "en";
"test_untranslated_default_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_entry_point_section" = "Troubleshoot";
"troubleshoot_notifications_screen_action" = "Run tests"; "troubleshoot_notifications_screen_action" = "Run tests";
"troubleshoot_notifications_screen_action_again" = "Run tests again"; "troubleshoot_notifications_screen_action_again" = "Run tests again";

View File

@ -1356,6 +1356,16 @@ internal enum L10n {
internal static func screenLoginTitleWithHomeserver(_ p1: Any) -> String { internal static func screenLoginTitleWithHomeserver(_ p1: Any) -> String {
return L10n.tr("Localizable", "screen_login_title_with_homeserver", String(describing: p1)) 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. /// Failed selecting media, please try again.
internal static var screenMediaPickerErrorFailedSelection: String { return L10n.tr("Localizable", "screen_media_picker_error_failed_selection") } 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. /// Captions might not be visible to people using older apps.
@ -2490,6 +2500,12 @@ internal enum L10n {
internal static var testLanguageIdentifier: String { return L10n.tr("Localizable", "test_language_identifier") } internal static var testLanguageIdentifier: String { return L10n.tr("Localizable", "test_language_identifier") }
/// en /// en
internal static var testUntranslatedDefaultLanguageIdentifier: String { return L10n.tr("Localizable", "test_untranslated_default_language_identifier") } 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 /// Troubleshoot
internal static var troubleshootNotificationsEntryPointSection: String { return L10n.tr("Localizable", "troubleshoot_notifications_entry_point_section") } internal static var troubleshootNotificationsEntryPointSection: String { return L10n.tr("Localizable", "troubleshoot_notifications_entry_point_section") }
/// Troubleshoot notifications /// Troubleshoot notifications

View File

@ -155,7 +155,7 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
errorLabel = L10n.commonUnableToDecryptNoAccess errorLabel = L10n.commonUnableToDecryptNoAccess
case .historicalMessage: case .historicalMessage:
encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .historicalMessage) encryptionType = .megolmV1AesSha2(sessionID: sessionID, cause: .historicalMessage)
errorLabel = L10n.commonUnableToDecryptNoAccess errorLabel = L10n.timelineDecryptionFailureHistoricalEventNoKeyBackup
} }
case .olmV1Curve25519AesSha2(let senderKey): case .olmV1Curve25519AesSha2(let senderKey):
encryptionType = .olmV1Curve25519AesSha2(senderKey: senderKey) encryptionType = .olmV1Curve25519AesSha2(senderKey: senderKey)