From b3a6d90a1bba5eadcd15094e8e02eb7c3ab2a731 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 5 May 2021 13:18:45 +1000 Subject: [PATCH] Add missing strings --- Session/Meta/Translations/de.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/en.lproj/Localizable.strings | 10 ++++++++++ Session/Meta/Translations/es.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/fa.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/fr.lproj/Localizable.strings | 9 +++++++++ .../Meta/Translations/id-ID.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/it.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/ja.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/pl.lproj/Localizable.strings | 9 +++++++++ .../Meta/Translations/pt_BR.lproj/Localizable.strings | 9 +++++++++ Session/Meta/Translations/ru.lproj/Localizable.strings | 10 ++++++++++ Session/Meta/Translations/sk.lproj/Localizable.strings | 10 ++++++++++ .../Meta/Translations/vi-VN.lproj/Localizable.strings | 9 +++++++++ .../Meta/Translations/zh_CN.lproj/Localizable.strings | 9 +++++++++ SessionMessagingKit/Database/OWSStorage.m | 4 ---- .../Database/Storage+ClosedGroups.swift | 2 -- 16 files changed, 129 insertions(+), 6 deletions(-) diff --git a/Session/Meta/Translations/de.lproj/Localizable.strings b/Session/Meta/Translations/de.lproj/Localizable.strings index b23a89c0f..ab8f65d23 100644 --- a/Session/Meta/Translations/de.lproj/Localizable.strings +++ b/Session/Meta/Translations/de.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Gestern"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Verschwindende Nachrichten"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Nachrichten dieser Unterhaltung werden nach %@ verschwinden."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Gruppe bearbeiten"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Anzeigen"; /* No comment provided by engineer. */ "OK" = "Okay"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ hat verschwindende Nachrichten deaktiviert."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ hat die Zeit für verschwindende Nachrichten auf %@ festgelegt."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Bild kann nicht aufgenommen werden."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Antippen und Halten zum Aufnehmen einer Sprachnachricht."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Sprachnachricht"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Du hast verschwindende Nachrichten deaktiviert."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Du hast die Zeit für verschwindende Nachrichten auf %@ festgelegt."; // MARK: - Session "continue_2" = "Fortsetzen"; "copy" = "Kopieren"; diff --git a/Session/Meta/Translations/en.lproj/Localizable.strings b/Session/Meta/Translations/en.lproj/Localizable.strings index a5c0b0820..b24891931 100644 --- a/Session/Meta/Translations/en.lproj/Localizable.strings +++ b/Session/Meta/Translations/en.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Yesterday"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Disappearing Messages"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Messages in this conversation will disappear after %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Edit Group"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Show"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ disabled disappearing messages."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ set disappearing message time to %@"; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Unable to capture image."; /* alert title */ @@ -392,6 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Tap and hold to record a voice message."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Voice Message"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "You disabled disappearing messages."; +/* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "You set disappearing message time to %@"; // MARK: - Session "continue_2" = "Continue"; "copy" = "Copy"; diff --git a/Session/Meta/Translations/es.lproj/Localizable.strings b/Session/Meta/Translations/es.lproj/Localizable.strings index 6d51310c1..cd73fb1c7 100644 --- a/Session/Meta/Translations/es.lproj/Localizable.strings +++ b/Session/Meta/Translations/es.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Ayer"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Desaparición de mensajes"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Los mensajes de este chat desaparecerán tras %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Editar grupo"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Ver"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ ha desactivado la desaparición de mensajes."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ ha fijado la desaparición de mensajes en %@."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Fallo al tomar foto."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Toca y mantén pulsado el icono del micrófono para grabar una nota de voz corta. Toca, arrastra hacia arriba y suelta para grabar notas de voz más largas."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Nota de voz"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Has desactivado la desaparición de mensajes."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Has fijado la desaparición de mensajes en %@."; // MARK: - Session "continue_2" = "Continuar"; "copy" = "Copiar"; diff --git a/Session/Meta/Translations/fa.lproj/Localizable.strings b/Session/Meta/Translations/fa.lproj/Localizable.strings index c0e225fd0..eb3084dd2 100644 --- a/Session/Meta/Translations/fa.lproj/Localizable.strings +++ b/Session/Meta/Translations/fa.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "دیروز"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "پیام‌های محوشونده"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "پیام های در این مکالمه بعد از %@ ناپدید خواهند شد."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "وایرایش گروه"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_NONE" = "هیچ نام و یا محتوایی وجود ندارد"; /* No comment provided by engineer. */ "OK" = "باشه"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ پیام‌های محوشونده را غیرفعال کرده است."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ زمان محوشدن پیام را روی %@ تنظیم کرده."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Unable to capture image."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "برای ضبط و ارسال پیام صوتی اینجا را لمس کرده و نگه دارید"; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "پیام صوتی"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "شما پیام‌های محوشونده را غیرفعال کردید."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "شما زمان محوشدن پیام‌ها را به %@ تنظیم کردید."; // MARK: - Session "continue_2" = "ادامه "; "copy" = "کپی کردن"; diff --git a/Session/Meta/Translations/fr.lproj/Localizable.strings b/Session/Meta/Translations/fr.lproj/Localizable.strings index 642731535..ef56450e5 100644 --- a/Session/Meta/Translations/fr.lproj/Localizable.strings +++ b/Session/Meta/Translations/fr.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Hier"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Messages éphémères"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Les messages de cette conversation disparaîtront dans %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Modifier le groupe"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Afficher"; /* No comment provided by engineer. */ "OK" = "Valider"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ a désactivé les messages éphémères."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ a défini l’expiration des messages éphémères à %@."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Impossible de capturer l’image."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Touchez et maintenez pour enregistrer un message vocal"; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Message vocal"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Vous avez désactivé les messages éphémères."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Vous avez défini l’expiration des messages éphémères à %@."; // MARK: - Session "continue_2" = "Continuer"; "copy" = "Copier"; diff --git a/Session/Meta/Translations/id-ID.lproj/Localizable.strings b/Session/Meta/Translations/id-ID.lproj/Localizable.strings index 043b23a18..7349629a5 100644 --- a/Session/Meta/Translations/id-ID.lproj/Localizable.strings +++ b/Session/Meta/Translations/id-ID.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Kemarin"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Pesan Menghilang"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Pesan dalam percakapan ini akan hilang setelah %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Ubah Grup"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_NONE" = "Tanpa Nama atau Isi"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@menonaktifkan pesan tersembunyi"; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@mengatur waktu penghilangan pesan menjadi %@"; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Unable to capture image."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Ketuk dan tahan untuk merekam suara pesan"; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Pesan suara"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Nonaktif pesan tersembunyi"; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Anda mengatur pesan tersembunyi pada %@."; // MARK: - Session "continue_2" = "Lanjut"; "copy" = "Salin"; diff --git a/Session/Meta/Translations/it.lproj/Localizable.strings b/Session/Meta/Translations/it.lproj/Localizable.strings index 03de76b5e..0e845962d 100644 --- a/Session/Meta/Translations/it.lproj/Localizable.strings +++ b/Session/Meta/Translations/it.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Ieri"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Messaggi a scomparsa"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "I messaggi in questa conversazione scompariranno dopo %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Modifica gruppo"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Mostra"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ ha disabilitato la scomparsa dei messaggi."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ ha impostato il tempo di scomparsa dei messaggi a %@."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Impossibile scattare foto."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Tieni premuto per registrare un messaggio vocale."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Messaggio vocale"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Hai disabilitato la scomparsa dei messaggi."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Hai impostato la scomparsa dei messaggi a %@."; // MARK: - Session "continue_2" = "Continua"; "copy" = "Copia"; diff --git a/Session/Meta/Translations/ja.lproj/Localizable.strings b/Session/Meta/Translations/ja.lproj/Localizable.strings index 6c5c93e70..033a835f6 100644 --- a/Session/Meta/Translations/ja.lproj/Localizable.strings +++ b/Session/Meta/Translations/ja.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "昨日"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "消えるメッセージ"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "この会話中のメッセージは%@後に消えます"; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "グループを編集"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "表示内容"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@がメッセージの消失をオフにしました"; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@がメッセージの消失時間を%@に設定しました"; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "画像はキャプチャできません"; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "タップを保持して音声録音"; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "音声メッセージ"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "消えるメッセージをオフにしました"; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "消えるメッセージの消失時間を%@に設定しました"; // MARK: - Session "continue_2" = "続行する"; "copy" = "コピーする"; diff --git a/Session/Meta/Translations/pl.lproj/Localizable.strings b/Session/Meta/Translations/pl.lproj/Localizable.strings index 84cf0d925..af4c18f54 100644 --- a/Session/Meta/Translations/pl.lproj/Localizable.strings +++ b/Session/Meta/Translations/pl.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Wczoraj"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Znikające wiadomości"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Wiadomości w tej rozmowie znikną po %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Edytuj grupę"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Pokaż"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ wyłączył(a) znikające wiadomości."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ ustawił(a) znikające wiadomości na %@."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Nie można wykonać zdjęcia."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Dotknij i przytrzymaj, aby nagrać wiadomość głosową."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Wiadomość głosowa"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Wyłączono znikające wiadomości."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Ustawiono czasomierz znikających wiadomości na %@."; // MARK: - Session "continue_2" = "Kontyntynuj"; "copy" = "Kopiuj"; diff --git a/Session/Meta/Translations/pt_BR.lproj/Localizable.strings b/Session/Meta/Translations/pt_BR.lproj/Localizable.strings index 13761ebcd..b0bcead0f 100644 --- a/Session/Meta/Translations/pt_BR.lproj/Localizable.strings +++ b/Session/Meta/Translations/pt_BR.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Ontem"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Mensagens efêmeras"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Mensagens nesta conversa desaparecem após %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Editar Grupo"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Exibir"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ desabilitou mensagens efêmeras."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ definiu a expiração da mensagem efêmera para %@."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Não foi possível capturar a imagem."; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Toque e segure para gravar uma mensagem de voz."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Mensagem de voz"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Você desabilitou mensagens efêmeras."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Você definiu a expiração de mensagens efêmeras para %@."; // MARK: - Session "continue_2" = "Continuar"; "copy" = "Copiar"; diff --git a/Session/Meta/Translations/ru.lproj/Localizable.strings b/Session/Meta/Translations/ru.lproj/Localizable.strings index 8575aded6..0f5ba7190 100644 --- a/Session/Meta/Translations/ru.lproj/Localizable.strings +++ b/Session/Meta/Translations/ru.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Вчера"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Исчезающие сообщения"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Сообщения в этой беседе исчезнут после %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Изменить группу"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Показывать"; /* No comment provided by engineer. */ "OK" = "Ок"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ отключил(а) исчезающие сообщения."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ установил(а) время исчезновения сообщений — %@."; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Невозможно сделать снимок."; /* alert title */ @@ -392,6 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Нажмите и удерживайте для записи голосового сообщения"; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Голосовое сообщение"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Вы отключили исчезающие сообщения."; +/* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "Вы установили время исчезновения сообщений — %@."; // MARK: - Session "continue_2" = "Продолжить"; "copy" = "Копировать"; diff --git a/Session/Meta/Translations/sk.lproj/Localizable.strings b/Session/Meta/Translations/sk.lproj/Localizable.strings index ff354ecc5..03090c32b 100644 --- a/Session/Meta/Translations/sk.lproj/Localizable.strings +++ b/Session/Meta/Translations/sk.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Včera"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Miznúce správy"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Messages in this conversation will disappear after %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Upraviť skupinu"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "Zobraziť"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ disabled disappearing messages."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ set disappearing message time to %@"; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Unable to capture image."; /* alert title */ @@ -392,6 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Tap and hold to record a voice message."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Hlasová správa"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "You disabled disappearing messages."; +/* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "You set disappearing message time to %@"; // MARK: - Session "continue_2" = "Pokračovať"; "copy" = "Kopírovať"; diff --git a/Session/Meta/Translations/vi-VN.lproj/Localizable.strings b/Session/Meta/Translations/vi-VN.lproj/Localizable.strings index 7def7b319..9a574a392 100644 --- a/Session/Meta/Translations/vi-VN.lproj/Localizable.strings +++ b/Session/Meta/Translations/vi-VN.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "Yesterday"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "Disappearing Messages"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "Messages in this conversation will disappear after %@."; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "Edit Group"; /* Label indicating media gallery is empty */ @@ -270,6 +272,10 @@ "NOTIFICATIONS_SHOW" = "Show"; /* No comment provided by engineer. */ "OK" = "OK"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ disabled disappearing messages."; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ set disappearing message time to %@"; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "Unable to capture image."; /* alert title */ @@ -398,7 +404,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "Tap and hold to record a voice message."; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "Voice Message"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "You disabled disappearing messages."; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "You set disappearing message time to %@"; // MARK: - Session "continue_2" = "Tiếp tục"; "copy" = "Sao chép"; diff --git a/Session/Meta/Translations/zh_CN.lproj/Localizable.strings b/Session/Meta/Translations/zh_CN.lproj/Localizable.strings index 04aaf05fe..12e6a82d1 100644 --- a/Session/Meta/Translations/zh_CN.lproj/Localizable.strings +++ b/Session/Meta/Translations/zh_CN.lproj/Localizable.strings @@ -152,6 +152,8 @@ "DATE_YESTERDAY" = "昨日"; /* table cell label in conversation settings */ "DISAPPEARING_MESSAGES" = "阅后即焚"; +/* Info Message when added to a group which has enabled disappearing messages. Embeds {{time amount}} before messages disappear, see the *_TIME_AMOUNT strings for context. */ +"DISAPPEARING_MESSAGES_CONFIGURATION_GROUP_EXISTING_FORMAT" = "此对话中的消息将在%@后消失。"; /* table cell label in conversation settings */ "EDIT_GROUP_ACTION" = "编辑群聊"; /* Label indicating media gallery is empty */ @@ -264,6 +266,10 @@ "NOTIFICATIONS_SHOW" = "显示"; /* No comment provided by engineer. */ "OK" = "好"; +/* Info Message when {{other user}} disables or doesn't support disappearing messages */ +"OTHER_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ 取消了阅后即焚。"; +/* Info Message when {{other user}} updates message expiration to {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"OTHER_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "%@ 设置了消息 %@ 后消失。"; /* alert title, generic error preventing user from capturing a photo */ "PHOTO_CAPTURE_GENERIC_ERROR" = "无法拍摄图片。"; /* alert title */ @@ -392,7 +398,10 @@ "VOICE_MESSAGE_TOO_SHORT_ALERT_MESSAGE" = "按住不放来录取语音消息。"; /* Title for the alert indicating the 'voice message' needs to be held to be held down to record. */ "VOICE_MESSAGE_TOO_SHORT_ALERT_TITLE" = "语音消息"; +/* Info Message when you disable disappearing messages */ +"YOU_DISABLED_DISAPPEARING_MESSAGES_CONFIGURATION" = "您取消了阅后即焚。"; /* Info message embedding a {{time amount}}, see the *_TIME_AMOUNT strings for context. */ +"YOU_UPDATED_DISAPPEARING_MESSAGES_CONFIGURATION" = "您设置了消息%@后消失。"; // MARK: - Session "continue_2" = "继续"; "copy" = "复制"; diff --git a/SessionMessagingKit/Database/OWSStorage.m b/SessionMessagingKit/Database/OWSStorage.m index 30c081e1c..01d4e9924 100644 --- a/SessionMessagingKit/Database/OWSStorage.m +++ b/SessionMessagingKit/Database/OWSStorage.m @@ -73,8 +73,6 @@ NSString *const kNSUserDefaults_DatabaseExtensionVersionMap = @"kNSUserDefaults_ // Specifically, it causes YDB's "view version" checks to fail. - (void)readWriteWithBlock:(void (^)(YapDatabaseReadWriteTransaction *transaction))block { - id delegate = self.delegate; - OWSBackgroundTask *_Nullable backgroundTask = nil; if (CurrentAppContext().isMainApp && !CurrentAppContext().isRunningTests) { backgroundTask = [OWSBackgroundTask backgroundTaskWithLabelStr:__PRETTY_FUNCTION__]; @@ -98,8 +96,6 @@ NSString *const kNSUserDefaults_DatabaseExtensionVersionMap = @"kNSUserDefaults_ completionQueue:(nullable dispatch_queue_t)completionQueue completionBlock:(nullable dispatch_block_t)completionBlock { - id delegate = self.delegate; - __block OWSBackgroundTask *_Nullable backgroundTask = nil; if (CurrentAppContext().isMainApp) { backgroundTask = [OWSBackgroundTask backgroundTaskWithLabelStr:__PRETTY_FUNCTION__]; diff --git a/SessionMessagingKit/Database/Storage+ClosedGroups.swift b/SessionMessagingKit/Database/Storage+ClosedGroups.swift index f09cdaa87..05e9fc1a5 100644 --- a/SessionMessagingKit/Database/Storage+ClosedGroups.swift +++ b/SessionMessagingKit/Database/Storage+ClosedGroups.swift @@ -6,9 +6,7 @@ extension Storage { } private static let closedGroupPublicKeyCollection = "SNClosedGroupPublicKeyCollection" - private static let closedGroupFormationTimestampCollection = "SNClosedGroupFormationTimestampCollection" - private static let closedGroupZombieMembersCollection = "SNClosedGroupZombieMembersCollection" public func getClosedGroupEncryptionKeyPairs(for groupPublicKey: String) -> [ECKeyPair] {