diff --git a/Session/Meta/Translations/en.lproj/Localizable.strings b/Session/Meta/Translations/en.lproj/Localizable.strings index 964cdd237..783551048 100644 --- a/Session/Meta/Translations/en.lproj/Localizable.strings +++ b/Session/Meta/Translations/en.lproj/Localizable.strings @@ -598,3 +598,5 @@ "UNPIN_BUTTON_TEXT" = "Unpin"; "modal_call_missed_tips_title" = "Call missed"; "modal_call_missed_tips_explanation" = "Call missed from '%@' because you needed to enable the 'Voice and video calls' permission in the Privacy Settings."; +"meida_saved" = "Media saved by %@."; +"screenshot_taken" = "%@ took a screenshot."; diff --git a/SessionMessagingKit/Sending & Receiving/Data Extraction/DataExtractionNotificationInfoMessage.swift b/SessionMessagingKit/Sending & Receiving/Data Extraction/DataExtractionNotificationInfoMessage.swift index df2477e25..18ceef7f5 100644 --- a/SessionMessagingKit/Sending & Receiving/Data Extraction/DataExtractionNotificationInfoMessage.swift +++ b/SessionMessagingKit/Sending & Receiving/Data Extraction/DataExtractionNotificationInfoMessage.swift @@ -19,10 +19,10 @@ final class DataExtractionNotificationInfoMessage : TSInfoMessage { let sessionID = thread.contactSessionID() let displayName = Storage.shared.getContact(with: sessionID)?.displayName(for: .regular) ?? sessionID switch messageType { - case .screenshotNotification: return "\(displayName) took a screenshot." + case .screenshotNotification: return String(format: NSLocalizedString("screenshot_taken", comment: ""), displayName) case .mediaSavedNotification: // TODO: Use referencedAttachmentTimestamp to tell the user * which * media was saved - return "Media saved by \(displayName)." + return String(format: NSLocalizedString("meida_saved", comment: ""), displayName) default: preconditionFailure() } }