From bee36423da39b46c18d87f9e1ded25412eff9d02 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Tue, 1 Feb 2022 14:55:03 +1100 Subject: [PATCH] Fixed a couple of issue with sharing large attachments Added back localized attachment error messages Fixed an issue where sending an attachment could fail and the screen would be dismissed before the user had a chance to read the error --- .../ConversationVC+Interaction.swift | 29 +++++++++++++------ .../Translations/de.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/en.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/es.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/fa.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/fi.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/fr.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/hi.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/hr.lproj/Localizable.strings | 18 ++++++++++++ .../id-ID.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/it.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/ja.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/nl.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/pl.lproj/Localizable.strings | 18 ++++++++++++ .../pt_BR.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/ru.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/si.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/sk.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/sv.lproj/Localizable.strings | 18 ++++++++++++ .../Translations/th.lproj/Localizable.strings | 18 ++++++++++++ .../vi-VN.lproj/Localizable.strings | 18 ++++++++++++ .../zh-Hant.lproj/Localizable.strings | 18 ++++++++++++ .../zh_CN.lproj/Localizable.strings | 18 ++++++++++++ 23 files changed, 416 insertions(+), 9 deletions(-) diff --git a/Session/Conversations/ConversationVC+Interaction.swift b/Session/Conversations/ConversationVC+Interaction.swift index 61ff20d9f..4b0eb802a 100644 --- a/Session/Conversations/ConversationVC+Interaction.swift +++ b/Session/Conversations/ConversationVC+Interaction.swift @@ -1,6 +1,8 @@ +import UIKit import CoreServices import Photos import PhotosUI +import SignalUtilitiesKit extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuActionDelegate, ScrollToBottomButtonDelegate, SendMediaNavDelegate, UIDocumentPickerDelegate, AttachmentApprovalViewControllerDelegate, GifPickerViewControllerDelegate, @@ -79,11 +81,13 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc } func attachmentApproval(_ attachmentApproval: AttachmentApprovalViewController, didApproveAttachments attachments: [SignalAttachment], messageText: String?) { - sendAttachments(attachments, with: messageText ?? "") + sendAttachments(attachments, with: messageText ?? "") { [weak self] in + self?.dismiss(animated: true, completion: nil) + } + scrollToBottom(isAnimated: false) resetMentions() self.snInputView.text = "" - dismiss(animated: true) { } } func attachmentApprovalDidCancel(_ attachmentApproval: AttachmentApprovalViewController) { @@ -198,7 +202,7 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc if !attachment.hasError { self?.showAttachmentApprovalDialog(for: [ attachment ]) } else { - self?.showErrorAlert(for: attachment) + self?.showErrorAlert(for: attachment, onDismiss: nil) } } }.retainUntilComplete() @@ -248,11 +252,11 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc }) } - func sendAttachments(_ attachments: [SignalAttachment], with text: String) { + func sendAttachments(_ attachments: [SignalAttachment], with text: String, onComplete: (() -> ())? = nil) { guard !showBlockedModalIfNeeded() else { return } for attachment in attachments { if attachment.hasError { - return showErrorAlert(for: attachment) + return showErrorAlert(for: attachment, onDismiss: onComplete) } } let thread = self.thread @@ -272,6 +276,9 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc self?.scrollToBottom(isAnimated: false) }) self?.handleMessageSent() + + // Attachment successfully sent - dismiss the screen + onComplete?() }) } @@ -849,7 +856,7 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc dataSource.sourceFilename = fileName let attachment = SignalAttachment.voiceMessageAttachment(dataSource: dataSource, dataUTI: kUTTypeMPEG4Audio as String) guard !attachment.hasError else { - return showErrorAlert(for: attachment) + return showErrorAlert(for: attachment, onDismiss: nil) } // Send attachment sendAttachments([ attachment ], with: "") @@ -974,10 +981,14 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc } } - // MARK: Convenience - func showErrorAlert(for attachment: SignalAttachment) { + // MARK: - Convenience + + func showErrorAlert(for attachment: SignalAttachment, onDismiss: (() -> ())?) { let title = NSLocalizedString("ATTACHMENT_ERROR_ALERT_TITLE", comment: "") let message = attachment.localizedErrorDescription ?? SignalAttachment.missingDataErrorMessage - OWSAlerts.showAlert(title: title, message: message) + + OWSAlerts.showAlert(title: title, message: message, buttonTitle: nil) { _ in + onDismiss?() + } } } diff --git a/Session/Meta/Translations/de.lproj/Localizable.strings b/Session/Meta/Translations/de.lproj/Localizable.strings index ac1f796fe..0dded534f 100644 --- a/Session/Meta/Translations/de.lproj/Localizable.strings +++ b/Session/Meta/Translations/de.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Anhang"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Fehler beim Senden des Anhangs"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Bild kann nicht konvertiert werden."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Video kann nicht verarbeitet werden."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Bild kann nicht geparst werden."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Metadaten können nicht aus dem Bild entfernt werden."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Bildgröße kann nicht geändert werden."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Anhang ist zu groß."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Anhang besitzt ungültigen Inhalt."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Anhang besitzt ein ungültiges Dateiformat."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Anhang ist leer."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Auswählen des Dokuments gescheitert."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/en.lproj/Localizable.strings b/Session/Meta/Translations/en.lproj/Localizable.strings index cb912599d..3dd35931d 100644 --- a/Session/Meta/Translations/en.lproj/Localizable.strings +++ b/Session/Meta/Translations/en.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Attachment"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Error Sending Attachment"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Failed to choose document."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/es.lproj/Localizable.strings b/Session/Meta/Translations/es.lproj/Localizable.strings index ff1356af6..51ab3036d 100644 --- a/Session/Meta/Translations/es.lproj/Localizable.strings +++ b/Session/Meta/Translations/es.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Adjunto"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Fallo al enviar archivo adjunto"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Bild kann nicht konvertiert werden."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Video kann nicht verarbeitet werden."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Bild kann nicht geparst werden."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Metadaten können nicht aus dem Bild entfernt werden."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Bildgröße kann nicht geändert werden."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Anhang ist zu groß."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Anhang besitzt ungültigen Inhalt."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Anhang besitzt ein ungültiges Dateiformat."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Anhang ist leer."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Fallo al seleccionar documento."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/fa.lproj/Localizable.strings b/Session/Meta/Translations/fa.lproj/Localizable.strings index 50cac47b5..c261e3af3 100644 --- a/Session/Meta/Translations/fa.lproj/Localizable.strings +++ b/Session/Meta/Translations/fa.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "ضميمه"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "خطا در ارسال فایل ضمیمه"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "خطا در انتخاب سند."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/fi.lproj/Localizable.strings b/Session/Meta/Translations/fi.lproj/Localizable.strings index 21457f99b..73808ff68 100644 --- a/Session/Meta/Translations/fi.lproj/Localizable.strings +++ b/Session/Meta/Translations/fi.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Liite"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Virhe liitteen lähettämisessä"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Kuvaa ei voitu muuntaa."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Videon prosessointi ei onnistu."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Kuvaa ei voitu jäsentää."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Metatietojen poistaminen kuvasta ei onnistunut."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Kuvan kokoa ei voitu muuttaa."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Liitetiedosto on liian suuri."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Liitetiedoston sisältö on virheellinen."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Liitetiedoston muoto on virheellinen."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Liitetiedosto on tyhjä."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Dokumentin valinta epäonnistui."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/fr.lproj/Localizable.strings b/Session/Meta/Translations/fr.lproj/Localizable.strings index 615fb8779..898f200e0 100644 --- a/Session/Meta/Translations/fr.lproj/Localizable.strings +++ b/Session/Meta/Translations/fr.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Fichier joint"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Erreur d’envoi du fichier joint"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Impossible de convertir l’image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Impossible de traiter la vidéo."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Impossible d’analyser l’image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Impossible de supprimer les métadonnées de l’image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Impossible de redimensionner l’image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Le fichier joint est trop volumineux."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Le fichier joint comporte du contenu non valide."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Le fichier joint présente un format de fichier invalide."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Le fichier joint est vide."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Échec de sélection du document."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/hi.lproj/Localizable.strings b/Session/Meta/Translations/hi.lproj/Localizable.strings index d53d15728..1aa6f2581 100644 --- a/Session/Meta/Translations/hi.lproj/Localizable.strings +++ b/Session/Meta/Translations/hi.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "अटैचमेंट"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "अनुलग्नक भेजने में त्रुटि"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "दस्तावेज़ चुनने में विफल."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/hr.lproj/Localizable.strings b/Session/Meta/Translations/hr.lproj/Localizable.strings index befd956ac..37658f8bb 100644 --- a/Session/Meta/Translations/hr.lproj/Localizable.strings +++ b/Session/Meta/Translations/hr.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Privitak"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Pogreška kod slanja privitka"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Neuspješna pretvorba slike"; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Neuspješna obrada videozapisa."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Neuspješna analiza slike."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Neuspješno uklanjanje metapodataka iz slike."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Neuspješna promjena veličine slike."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Privitak je prevelik."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Privitak sadrži nevažeći sadržaj."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Privitak ima nevažeći format datoteke."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Privitak je prazan."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Odabir dokumenta neuspješan."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/id-ID.lproj/Localizable.strings b/Session/Meta/Translations/id-ID.lproj/Localizable.strings index 5cef83fe6..120c2bbcf 100644 --- a/Session/Meta/Translations/id-ID.lproj/Localizable.strings +++ b/Session/Meta/Translations/id-ID.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Lampiran"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Gagal Mengirim Lampiran"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Tidak dapat mengonversi gambar."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Video tidak dapat diproses."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Tidak dapat menguraikan gambar."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Tidak dapat menghapus metadata dari gambar."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Tidak dapat mengubah ukuran gambar."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Lampiran terlalu besar."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Lampiran memuat konten yang tidak valid."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Lampiran memiliki format berkas yang tidak valid."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Lampiran kosong."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Gagal memilih dokumen."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/it.lproj/Localizable.strings b/Session/Meta/Translations/it.lproj/Localizable.strings index b185d7686..bd197e62b 100644 --- a/Session/Meta/Translations/it.lproj/Localizable.strings +++ b/Session/Meta/Translations/it.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Allegato"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Errore invio allegato"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Nepavyko kovertuoti paveikslo."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Nepavyko apdoroti vaizdo įrašo."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Nepavyko išnagrinėti paveikslo."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Nepavyko pašalinti metaduomenų iš paveikslo."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Nepavyko pakeisti paveikslo dydžio."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Priedas yra per didelis."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Priede yra neteisingas turinys."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Priedas yra neteisingo failo formato."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Priedas yra tuščias."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Scelta del documento fallita."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/ja.lproj/Localizable.strings b/Session/Meta/Translations/ja.lproj/Localizable.strings index 8667f8fe3..cc2e1098d 100644 --- a/Session/Meta/Translations/ja.lproj/Localizable.strings +++ b/Session/Meta/Translations/ja.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "添付ファイル"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "添付ファイルの送信でエラー"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "画像を変換できません。"; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "動画を処理できません。"; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "画像をパースできません。"; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "画像からメタデータを消去できませんでした。"; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "画像のサイズを変更できません。"; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "添付ファイルが大きすぎます。"; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "添付ファイルが無効です。"; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "添付ファイルのフォーマットが不正です。"; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "添付ファイルの中身が空です。"; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "ドキュメントの選択に失敗しました"; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/nl.lproj/Localizable.strings b/Session/Meta/Translations/nl.lproj/Localizable.strings index a90e162bb..c3ba6a16f 100644 --- a/Session/Meta/Translations/nl.lproj/Localizable.strings +++ b/Session/Meta/Translations/nl.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Bijlage"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Versturen bijlage mislukt"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Kan afbeelding niet naar JPEG converteren."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Kan video niet verwerken."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Kan afbeelding niet verwerken."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Kan metagegevens niet uit afbeelding verwijderen."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Afbeelding verkleinen mislukt."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Bijlage is te groot."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Bijlage bevat inhoud die niet wordt ondersteund of niet correct is geformatteerd."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Bijlage is een bestandstype welke niet wordt ondersteund."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Bijlage is leeg."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Document kiezen mislukt."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/pl.lproj/Localizable.strings b/Session/Meta/Translations/pl.lproj/Localizable.strings index 869fed251..d91701ba2 100644 --- a/Session/Meta/Translations/pl.lproj/Localizable.strings +++ b/Session/Meta/Translations/pl.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Załącznik"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Wystąpił błąd podczas wysyłania załącznika"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Nie można przekonwertować obrazu."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Nie można przetworzyć wideo."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Nie można przetworzyć załączonej grafiki."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Nie można usunąć metadanych z obrazu."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Nie można zmienić rozmiaru obrazu."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Załącznik jest za duży."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Załącznik zawiera nieprawidłową zawartość."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Załącznik ma nieprawidłowy format pliku."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Załącznik jest pusty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Nie udało się wybrać dokumentu."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/pt_BR.lproj/Localizable.strings b/Session/Meta/Translations/pt_BR.lproj/Localizable.strings index 3acb3060f..0d2e9985e 100644 --- a/Session/Meta/Translations/pt_BR.lproj/Localizable.strings +++ b/Session/Meta/Translations/pt_BR.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Anexo"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Erro ao Enviar Anexo"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Impossível converter imagem."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Não foi possível processar o vídeo."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Não foi possível analisar a imagem."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Não foi possível suprimir os metadados da imagem."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Impossível redimensionar imagem."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Anexo excede o tamanho possível."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Anexo inclui conteúdo inválido."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Anexo tem um formato de arquivo inválido."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Anexo vazio."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Falha ao selecionar o documento."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/ru.lproj/Localizable.strings b/Session/Meta/Translations/ru.lproj/Localizable.strings index ae19b824a..0a46af259 100644 --- a/Session/Meta/Translations/ru.lproj/Localizable.strings +++ b/Session/Meta/Translations/ru.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Вложение"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Ошибка отправки вложения"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Не удалось выбрать документ."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/si.lproj/Localizable.strings b/Session/Meta/Translations/si.lproj/Localizable.strings index b2d4849c7..48940993f 100644 --- a/Session/Meta/Translations/si.lproj/Localizable.strings +++ b/Session/Meta/Translations/si.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Attachment"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Error Sending Attachment"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Failed to choose document."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/sk.lproj/Localizable.strings b/Session/Meta/Translations/sk.lproj/Localizable.strings index a225890fd..18c696cd6 100644 --- a/Session/Meta/Translations/sk.lproj/Localizable.strings +++ b/Session/Meta/Translations/sk.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Príloha"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Chyba pri posielaní prílohy"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Obrázok sa nepodarilo skonvertovať."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Video sa nepodarilo spracovať."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Obrázok sa nepodarilo spracovať."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Z obrázku sa nepodarilo odstrániť metadáta."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Nepodarilo sa zmeniť veľkosť obrázka."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Príloha je priliš veľká."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Príloha obsahuje neplatný obsah."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Príloha má neplatný formát súboru."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Príloha je prázdna."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Nepodarilo sa vybrať dokument."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/sv.lproj/Localizable.strings b/Session/Meta/Translations/sv.lproj/Localizable.strings index e3e3fdb36..3fe6d5ffd 100644 --- a/Session/Meta/Translations/sv.lproj/Localizable.strings +++ b/Session/Meta/Translations/sv.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Bilaga"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Fel vid sändning av bilaga"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Det går inte att konvertera bilden."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Det går inte att bearbeta videon."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Det går inte att tolka bilden."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Det går inte att ta bort metadata från bilden."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Det går inte att ändra storlek på bilden."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Bilagan är för stor."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Bilagan innehåller ogiltigt innehåll."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Bilagan har ett ogiltigt filformat."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Bilagan är tom."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Det gick inte att välja dokument."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/th.lproj/Localizable.strings b/Session/Meta/Translations/th.lproj/Localizable.strings index a4e943ecd..4372e87c0 100644 --- a/Session/Meta/Translations/th.lproj/Localizable.strings +++ b/Session/Meta/Translations/th.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "ไฟล์แนบ"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "ส่งไฟล์แนบโดนผิดพลาด"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "เลือกไฟล์ไม่ได้สำเร็จ"; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/vi-VN.lproj/Localizable.strings b/Session/Meta/Translations/vi-VN.lproj/Localizable.strings index 4c29a785f..efae3e3d2 100644 --- a/Session/Meta/Translations/vi-VN.lproj/Localizable.strings +++ b/Session/Meta/Translations/vi-VN.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "Attachment"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "Error Sending Attachment"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "Failed to choose document."; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/zh-Hant.lproj/Localizable.strings b/Session/Meta/Translations/zh-Hant.lproj/Localizable.strings index d4b6922aa..2f7d6e290 100644 --- a/Session/Meta/Translations/zh-Hant.lproj/Localizable.strings +++ b/Session/Meta/Translations/zh-Hant.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "附件"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "寄送附件時發生錯誤"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "Unable to convert image."; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "Unable to process video."; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "Unable to parse image."; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "Unable to remove metadata from image."; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "Unable to resize image."; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "Attachment is too large."; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "Attachment includes invalid content."; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "Attachment has an invalid file format."; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "Attachment is empty."; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "選取檔案時發生錯誤"; /* Alert body when picking a document fails because user picked a directory/bundle */ diff --git a/Session/Meta/Translations/zh_CN.lproj/Localizable.strings b/Session/Meta/Translations/zh_CN.lproj/Localizable.strings index 359a12684..9abccf9f3 100644 --- a/Session/Meta/Translations/zh_CN.lproj/Localizable.strings +++ b/Session/Meta/Translations/zh_CN.lproj/Localizable.strings @@ -26,6 +26,24 @@ "ATTACHMENT_DEFAULT_FILENAME" = "附件"; /* The title of the 'attachment error' alert. */ "ATTACHMENT_ERROR_ALERT_TITLE" = "附件发送错误"; +/* Attachment error message for image attachments which could not be converted to JPEG */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_JPEG" = "无法转换图片。"; +/* Attachment error message for video attachments which could not be converted to MP4 */ +"ATTACHMENT_ERROR_COULD_NOT_CONVERT_TO_MP4" = "无法处理该视频。"; +/* Attachment error message for image attachments which cannot be parsed */ +"ATTACHMENT_ERROR_COULD_NOT_PARSE_IMAGE" = "无法解析图片。"; +/* Attachment error message for image attachments in which metadata could not be removed */ +"ATTACHMENT_ERROR_COULD_NOT_REMOVE_METADATA" = "无法删除图片的元数据。"; +/* Attachment error message for image attachments which could not be resized */ +"ATTACHMENT_ERROR_COULD_NOT_RESIZE_IMAGE" = "无法调整图像大小。"; +/* Attachment error message for attachments whose data exceed file size limits */ +"ATTACHMENT_ERROR_FILE_SIZE_TOO_LARGE" = "附件过大。"; +/* Attachment error message for attachments with invalid data */ +"ATTACHMENT_ERROR_INVALID_DATA" = "附件中存在无效内容。"; +/* Attachment error message for attachments with an invalid file format */ +"ATTACHMENT_ERROR_INVALID_FILE_FORMAT" = "附件的文件格式无效。"; +/* Attachment error message for attachments without any data */ +"ATTACHMENT_ERROR_MISSING_DATA" = "附件为空。"; /* Alert title when picking a document fails for an unknown reason */ "ATTACHMENT_PICKER_DOCUMENTS_FAILED_ALERT_TITLE" = "文件选取失败。"; /* Alert body when picking a document fails because user picked a directory/bundle */