From 31326ebe59670e2e432b79a0363c65c4d725cc2c Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 31 Dec 2024 20:27:55 +0300 Subject: [PATCH] Updated on 2026-08-14 --- core/res/src/main/res/values-de/strings.xml | 6 ++-- core/res/src/main/res/values-es/strings.xml | 6 ++-- core/res/src/main/res/values-fr/strings.xml | 6 ++-- core/res/src/main/res/values-ru/strings.xml | 6 ++-- .../src/main/res/values-uk-rUA/strings.xml | 6 ++-- core/res/src/main/res/values/strings.xml | 6 ++-- .../wallet/state/model/WalletAlertState.kt | 2 ++ .../presentation/wallet/ui/WalletAlert.kt | 13 +++++++ .../intents/WalletWarningsClickIntents.kt | 34 +++++++++++++++---- 9 files changed, 66 insertions(+), 19 deletions(-) diff --git a/core/res/src/main/res/values-de/strings.xml b/core/res/src/main/res/values-de/strings.xml index b428791460..6e3db49a06 100644 --- a/core/res/src/main/res/values-de/strings.xml +++ b/core/res/src/main/res/values-de/strings.xml @@ -1067,8 +1067,10 @@ Gefällt dir Tangem? Du musst deinen Token zuordnen, bevor du Token erhalten kannst Netzmietgebühr erforderlich - Haben Sie schon einmal unser Support-Team über die App kontaktiert? - Wir haben ein Problem im Support-System von Tangem festgestellt + Vielen Dank! Alles erledigt! Keine weiteren Maßnahmen erforderlich. + Sie werden jetzt auf die offizielle Tangem-Website weitergeleitet. Bitte lesen und befolgen Sie dort die Anweisungen. + Haben Sie jemals das Support-Team von Tangem direkt über diese Anwendung kontaktiert? + Verpflichtendes Sicherheitsupdate %1$s ist ein Vermögenswert im %2$s Netzwerk. Um eine %3$s Transaktion durchzuführen, musst du etwas %4$s (%5$s) einzahlen, um die Netzwerkgebühr zu decken. Unzureichende %1$s zur Deckung der Netzgebühr Das Solana-Netz ist überlastet. Wenn deine Transaktion nicht innerhalb von 2 Minuten bearbeitet wird, wiederhole bitte die Transaktion. diff --git a/core/res/src/main/res/values-es/strings.xml b/core/res/src/main/res/values-es/strings.xml index 9d93bea2d7..ad2f784c78 100644 --- a/core/res/src/main/res/values-es/strings.xml +++ b/core/res/src/main/res/values-es/strings.xml @@ -1065,8 +1065,10 @@ ¿Disfrutando de Tangem? Deba asociar su token antes de recibir tokens Se requiere tarifa de alquiler de red - ¿Alguna vez te has puesto en contacto con nuestro equipo de soporte a través de la aplicación? - Hemos encontrado un problema en el sistema de soporte de Tangem + ¡Gracias! ¡Todo está listo! No se requieren más acciones. + Ahora será redirigido al sitio web oficial de Tangem. Por favor, lea y siga las instrucciones allí indicadas. + ¿Alguna vez contactó al equipo de soporte de Tangem directamente desde esta aplicación? + Actualización de seguridad obligatoria %1$s un activo en la red %2$s. Para realizar una transacción %3$s, deposite %4$s (%5$s) para cubrir la tarifa de red. %1$s insuficiente para cubrir la tarifa de red La red Solana está congestionada. Si su transacción no se procesa dentro de 2 minutos, repita la transacción. diff --git a/core/res/src/main/res/values-fr/strings.xml b/core/res/src/main/res/values-fr/strings.xml index 0b54ff6140..2f0c658d65 100644 --- a/core/res/src/main/res/values-fr/strings.xml +++ b/core/res/src/main/res/values-fr/strings.xml @@ -1067,8 +1067,10 @@ Vous appréciez Tangem ? Vous devez associer votre jeton avant de recevoir des jetons Frais de location de réseau requis - Avez-vous déjà contacté notre équipe d\'assistance via l\'application ? - Nous avons trouvé un problème dans le système de support de Tangem + Merci ! Tout est en ordre ! Aucune autre action n\'est requise. + Vous allez être redirigé vers le site officiel de Tangem. Veuillez lire et suivre les instructions qui y sont indiquées. + Avez-vous déjà contacté l\'équipe de support Tangem directement depuis cette application ? + Mise à jour de sécurité obligatoire %1$s s\'agit d\'un actif du réseau %2$s. Pour effectuer une transaction %3$s, vous devez déposer une certaine quantité de %4$s (%5$s) pour couvrir les frais de réseau. %1$s insuffisant pour couvrir les frais de réseau Le réseau Solana est encombré. Si votre transaction n\'est pas traitée dans les 2 minutes, veuillez répéter la transaction. diff --git a/core/res/src/main/res/values-ru/strings.xml b/core/res/src/main/res/values-ru/strings.xml index c650c893b0..191593c0bb 100644 --- a/core/res/src/main/res/values-ru/strings.xml +++ b/core/res/src/main/res/values-ru/strings.xml @@ -1086,8 +1086,10 @@ Нравится Tangem? Вам необходимо провести ассоциацию токена для того, чтобы иметь возможность принимать его Необходима плата за аренду сети - Вы когда-либо связывались с нашей службой поддержки через приложение? - Мы обнаружили проблему в системе поддержки Tangem + Спасибо! Всё в порядке! Дальнейшие действия не требуются. + Вы будете перенаправлены на официальный сайт Tangem. Пожалуйста, прочитайте и выполните указанные там инструкции. + Вы когда-либо обращались в службу поддержки Tangem напрямую из этого приложения? + Обязательное обновление безопасности %1$s - это монета в сети %2$s. Для совершения транзакции %3$s, вам необходимо внести немного %4$s (%5$s), чтобы покрыть комиссию сети. Недостаточно %1$s для оплаты комиссии сети Сеть Солана испытывает высокую нагрузку. Если Ваша транзакция не прошла в течение 2 минут, повторите её отправку. diff --git a/core/res/src/main/res/values-uk-rUA/strings.xml b/core/res/src/main/res/values-uk-rUA/strings.xml index 21ecc9653a..5203d19d26 100644 --- a/core/res/src/main/res/values-uk-rUA/strings.xml +++ b/core/res/src/main/res/values-uk-rUA/strings.xml @@ -1087,8 +1087,10 @@ Подобається Tangem? Вам необхідно провести асоціацію токена, щоб мати можливість приймати його Необхідна плата за оренду мережі - Ви коли-небудь зверталися до нашої служби підтримки через застосунок? - Ми виявили проблему в системі підтримки Tangem + Дякуємо! Все добре! Подальших дій не потрібно. + Ви будете перенаправлені на офіційний сайт Tangem. Будь ласка, прочитайте та виконайте вказані там інструкції. + Ви коли-небудь зверталися до служби підтримки Tangem безпосередньо з цього додатку? + Обов’язкове оновлення безпеки %1$s є активом у мережі %2$s. Щоб здійснити транзакцію %3$s, ви повинні внести певну суму %4$s (%5$s), щоб покрити комісію мережі. Недостатньо %1$s для покриття комісії мережі Мережа Солана зазнає високого навантаження. Якщо транзакція не пройшла протягом 2 хвилин, повторіть транзакцію. diff --git a/core/res/src/main/res/values/strings.xml b/core/res/src/main/res/values/strings.xml index e7fb1e3a4a..7f19088018 100644 --- a/core/res/src/main/res/values/strings.xml +++ b/core/res/src/main/res/values/strings.xml @@ -1067,8 +1067,10 @@ Enjoying Tangem? You must associate your token before receiving tokens Network rent fee required - Have you ever contacted our support team through the app? - We found an issue in Tangem\'s support system + Thank you! All set! No further actions required. + You will now be redirected to the official Tangem website. Please read and follow instructions there. + Have you ever contacted the Tangem support team directly through this application? + Mandatory security update %1$s is an asset in the %2$s network. To make a %3$s transaction, you must deposit some %4$s (%5$s) to cover the network fee. Insufficient %1$s to cover network fee The Solana network is congested. If your transaction is not processed within 2 minutes, please repeat the transaction. diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/model/WalletAlertState.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/model/WalletAlertState.kt index 6103f851d0..63855cabc5 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/model/WalletAlertState.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/model/WalletAlertState.kt @@ -28,6 +28,8 @@ internal sealed interface WalletAlertState { abstract val errorTextProvider: (String) -> TextReference? } + data class SimpleOkAlert(val message: TextReference, val onOkClick: () -> Unit) : WalletAlertState + data class DefaultAlert( override val title: TextReference?, override val message: TextReference, diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletAlert.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletAlert.kt index ca9ee260f3..f323d5ed9a 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletAlert.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletAlert.kt @@ -16,6 +16,19 @@ internal fun WalletAlert(state: WalletAlertState, onDismiss: () -> Unit) { when (state) { is WalletAlertState.Basic -> BasicAlert(state, onDismiss) is WalletAlertState.TextInput -> TextInputAlert(state, onDismiss) + is WalletAlertState.SimpleOkAlert -> { + BasicDialog( + message = state.message.resolveReference(), + confirmButton = DialogButtonUM( + onClick = { + state.onOkClick() + onDismiss() + }, + ), + onDismissDialog = onDismiss, + isDismissable = false, + ) + } } } diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletWarningsClickIntents.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletWarningsClickIntents.kt index 9333f60fc3..cf1994333a 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletWarningsClickIntents.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/viewmodels/intents/WalletWarningsClickIntents.kt @@ -293,11 +293,22 @@ internal class WalletWarningsClickIntentsImplementor @Inject constructor( analyticsEventHandler.send(MainScreen.NoticeSeedPhraseSupportButtonYes) - viewModelScope.launch { - seedPhraseNotificationUseCase.confirm(userWalletId = userWallet.walletId) + walletEventSender.send( + event = WalletEvent.ShowAlert( + state = WalletAlertState.SimpleOkAlert( + message = resourceReference(R.string.warning_seedphrase_issue_answer_yes), + onOkClick = { + viewModelScope.launch { + seedPhraseNotificationUseCase.confirm(userWalletId = userWallet.walletId) - urlOpener.openUrl(url = TangemBlogUrlBuilder.build(post = TangemBlogUrlBuilder.Post.SeedNotify)) - } + urlOpener.openUrl( + url = TangemBlogUrlBuilder.build(post = TangemBlogUrlBuilder.Post.SeedNotify), + ) + } + }, + ), + ), + ) } override fun onSeedPhraseNotificationDecline() { @@ -305,9 +316,18 @@ internal class WalletWarningsClickIntentsImplementor @Inject constructor( analyticsEventHandler.send(MainScreen.NoticeSeedPhraseSupportButtonNo) - viewModelScope.launch { - seedPhraseNotificationUseCase.decline(userWalletId = userWallet.walletId) - } + walletEventSender.send( + event = WalletEvent.ShowAlert( + state = WalletAlertState.SimpleOkAlert( + message = resourceReference(R.string.warning_seedphrase_issue_answer_no), + onOkClick = { + viewModelScope.launch { + seedPhraseNotificationUseCase.decline(userWalletId = userWallet.walletId) + } + }, + ), + ), + ) } private fun getSelectedUserWallet(): UserWallet? {