Updated on 2026-08-14

This commit is contained in:
Tangem 2022-11-30 11:29:27 +03:00
parent 06afe233fb
commit 9eab9e1a6e
25 changed files with 43 additions and 45 deletions

View file

@ -12,9 +12,11 @@ import com.tangem.wallet.R
class ApproveWcSessionDialog {
companion object {
fun create(session: WalletConnectSession, networks: List<Blockchain>, context: Context): AlertDialog {
val sessionBlockchain = requireNotNull(session.wallet.blockchain) { "session network is null" }
val message = context.getString(
R.string.wallet_connect_request_session_start,
session.peerMeta.name,
sessionBlockchain.fullName,
session.peerMeta.url,
)
return AlertDialog.Builder(context).apply {
@ -22,7 +24,7 @@ class ApproveWcSessionDialog {
setMessage(message)
setPositiveButton(context.getText(R.string.common_start)) { _, _ ->
store.dispatch(GlobalAction.HideDialog)
store.dispatch(WalletConnectAction.ChooseNetwork(session.wallet.blockchain!!))
store.dispatch(WalletConnectAction.ChooseNetwork(sessionBlockchain))
}
if (networks.size > 1) {
setNeutralButton(context.getText(R.string.wallet_connect_select_network)) { _, _ ->

View file

@ -18,7 +18,7 @@ class RequestFeeErrorDialog {
val errorMessage = dialog.error.customMessage
return AlertDialog.Builder(context).apply {
setTitle(R.string.send_error_fee_request_failed)
setTitle(R.string.common_fee_error)
setMessage(context.getString(R.string.alert_failed_to_send_transaction_message, errorMessage))
setNegativeButton(R.string.alert_button_send_feedback) { _, _ ->
store.dispatch(GlobalAction.SendEmail(SendTransactionFailedEmail(errorMessage)))

View file

@ -128,7 +128,7 @@ class BalanceWidget(
tvErrorTitle.text = fragment.getText(R.string.wallet_error_no_account)
tvErrorDescriptions.text =
fragment.getString(
R.string.wallet_error_no_account_subtitle_format,
R.string.no_account_generic,
data.amountToCreateAccount, data.currencySymbol
)
}

View file

@ -340,7 +340,7 @@ class WalletDetailsFragment : Fragment(R.layout.fragment_wallet_details),
lBalanceError.tvErrorTitle.text = getText(R.string.wallet_error_no_account)
lBalanceError.tvErrorDescriptions.text =
getString(
R.string.wallet_error_no_account_subtitle_format,
R.string.no_account_generic,
data.amountToCreateAccount, data.currencySymbol,
)
}

View file

@ -14,7 +14,7 @@ class SignedHashesWarningDialog {
return AlertDialog.Builder(context).apply {
setTitle(context.getString(R.string.warning_important_security_info))
setMessage(R.string.alert_signed_hashes_message)
setPositiveButton(R.string.alert_button_i_understand) { _, _ ->
setPositiveButton(R.string.common_understand) { _, _ ->
store.dispatch(WalletAction.Warnings.CheckHashesCount.SaveCardId)
store.dispatch(
GlobalAction.HideWarningMessage(

View file

@ -51,7 +51,7 @@
android:id="@+id/chb_understand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/alert_button_i_understand"
android:text="@string/common_understand"
android:textStyle="bold"
android:visibility="gone"
app:buttonTint="@color/accent"

View file

@ -43,14 +43,14 @@
style="@style/TapChip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wallet_address_chip_default" />
android:text="@string/address_type_default" />
<com.google.android.material.chip.Chip
android:id="@+id/chip_legacy"
style="@style/TapChip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wallet_address_chip_legacy" />
android:text="@string/address_type_legacy" />
</com.google.android.material.chip.ChipGroup>

View file

@ -51,7 +51,7 @@
android:id="@+id/chb_understand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/alert_button_i_understand"
android:text="@string/common_understand"
android:textStyle="bold"
android:visibility="gone"
app:buttonTint="@color/accent"

View file

@ -60,14 +60,14 @@
style="@style/TapChip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wallet_address_chip_default" />
android:text="@string/address_type_default" />
<com.google.android.material.chip.Chip
android:id="@+id/chip_legacy"
style="@style/TapChip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wallet_address_chip_legacy" />
android:text="@string/address_type_legacy" />
</com.google.android.material.chip.ChipGroup>
@ -127,7 +127,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:src="@drawable/ic_inactive"
android:text="@string/wallet_address_button_copy"
android:text="@string/common_copy"
android:textAlignment="center"
android:textColor="@color/colorSecondary"
app:chipBackgroundColor="@color/blue_pale"
@ -148,7 +148,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:src="@drawable/ic_inactive"
android:text="@string/wallet_address_button_share"
android:text="@string/common_share"
android:textAlignment="center"
android:textColor="@color/colorSecondary"
app:chipBackgroundColor="@color/blue_pale"

View file

@ -18,7 +18,7 @@
<string name="wallet_balance_loading">Die Bilanz wird aufgeladen…</string>
<string name="wallet_balance_blockchain_unreachable">Blockchain ist nicht erreichbar</string>
<string name="wallet_error_no_account">Das Konto ist nicht erstellt</string>
<string name="wallet_error_no_account_subtitle_format">%s+ %s aufladen um ein Konto zu erstellen</string>
<string name="no_account_generic">Laden Sie %s+ %s auf um ein Konto zu erstellen</string>
<string name="wallet_error_empty_card">Leere Karte</string>
<string name="wallet_error_empty_card_subtitle">Erstellen Sie ein Wallet um die Tangem-Karte verwenden zu können</string>
<string name="wallet_error_unsupported_blockchain">Diese Karte wird nicht unterstützt</string>

View file

@ -6,7 +6,7 @@
<string name="send_error_dust_amount_format">Minimaler Betrag ist %s</string>
<string name="send_error_dust_change">Restbestand zu klein</string>
<string name="send_error_no_target_account">Das Zielkonto ist nicht erstellt. Der abzusendende Betrag soll %s + Gebühr oder mehr sein</string>
<string name="send_error_fee_request_failed">Erhalt der Gebühr fehlgeschlagen</string>
<string name="common_fee_error">Erhalt der Gebühr fehlgeschlagen</string>
<string name="send_error_unknown">Unbekannter Fehler</string>
<string name="xtz_withdrawal_message_warning">Damit Sie beim nächsten Aufladen Ihrer Brieftasche keine erhöhte Provision zahlen, soll der Betrag um %s XTZ reduziert werden</string>
<string name="xtz_withdrawal_message_reduce">Um %s XTZ reduzieren</string>

View file

@ -19,7 +19,7 @@
<string name="wallet_balance_loading">Solde est en cours de téléchargement …</string>
<string name="wallet_balance_blockchain_unreachable">Blockchain est inaccessible</string>
<string name="wallet_error_no_account">Compte n\'est pas créé</string>
<string name="wallet_error_no_account_subtitle_format">Téléchargez %s +%s pour créer un compte</string>
<string name="no_account_generic">Pour créer un compte, téléchargez %s+ %s</string>
<string name="wallet_error_empty_card">Carte vide</string>
<string name="wallet_error_empty_card_subtitle">Créez un portefeuille pour commencer à utiliser votre carte Tangem</string>
<string name="wallet_error_unsupported_blockchain">Cette carte n\'est pas prise en charge</string>

View file

@ -6,7 +6,7 @@
<string name="send_error_dust_amount_format">Le montant minimal est de %s</string>
<string name="send_error_dust_change">Le reste est trop petit</string>
<string name="send_error_no_target_account">Le compte cible n\'a pas été créé. Le montant à envoyer doit être de %s + commissions ou plus</string>
<string name="send_error_fee_request_failed">Échec de réception des commissions</string>
<string name="common_fee_error">Échec de réception des commissions</string>
<string name="send_error_unknown">Erreur inconnue</string>
<string name="send_validation_invalid_address">Adresse incorrecte</string>
<string name="send_validation_invalid_amount">Somme incorrecte</string>

View file

@ -17,7 +17,7 @@
<string name="wallet_balance_loading">Il saldo sta per essere caricato…</string>
<string name="wallet_balance_blockchain_unreachable">Blockchain non raggiungibile</string>
<string name="wallet_error_no_account">Conto non creato</string>
<string name="wallet_error_no_account_subtitle_format">Carica %s+ %s per creare un conto</string>
<string name="no_account_generic">Scarica %s+ %s per creare un account</string>
<string name="wallet_error_empty_card">Carta vuota</string>
<string name="wallet_error_empty_card_subtitle">Crea un portafoglio per iniziare ad utilizzare la tua carta Tangem </string>
<string name="wallet_error_unsupported_blockchain">Questa carta non è supportata</string>

View file

@ -8,7 +8,7 @@
<string name="send_error_unknown">Errore sconosciuto</string>
<string name="send_validation_amount_exceeds_balance">L\'importo supera il saldo</string>
<string name="send_error_no_target_account">Il conto totale non è stato creato L\'importo da inviare deve essere %s + commissione o maggiore</string>
<string name="send_error_fee_request_failed">Impossibile ottenere la commissione</string>
<string name="common_fee_error">Impossibile ottenere la commissione</string>
<string name="send_validation_invalid_address">Indirizzo non valido</string>
<string name="send_validation_invalid_amount">Importo non valido</string>
<string name="send_validation_invalid_total">Il totale supera il saldo</string>

View file

@ -19,7 +19,7 @@
<string name="wallet_balance_loading">Загрузка баланса…</string>
<string name="wallet_balance_blockchain_unreachable">Блокчейн недоступен</string>
<string name="wallet_error_no_account">Аккаунт не создан</string>
<string name="wallet_error_no_account_subtitle_format">Загрузите %s+ %s для создания учетной записи</string>
<string name="no_account_generic">Пополните счет на %s+ %s, чтобы создать аккаунт</string>
<string name="wallet_error_empty_card">Карта пуста</string>
<string name="wallet_error_empty_card_subtitle">Создайте кошелек, чтобы начать пользоваться картой Tangem</string>
<string name="wallet_error_unsupported_blockchain">Эта карта не поддерживается</string>
@ -89,8 +89,8 @@
<string name="wallet_button_buy">Купить</string>
<string name="wallet_button_sell">Продать</string>
<string name="wallet_button_trade">Торговать</string>
<string name="wallet_address_chip_default">По умолчанию</string>
<string name="wallet_address_chip_legacy">Устаревший</string>
<string name="address_type_default">По умолчанию</string>
<string name="address_type_legacy">Устаревший</string>
<string name="wallet_error_empty_twin_card">Создать кошелек</string>
<string name="wallet_error_empty_twin_card_subtitle">Сгенерируйте ключи кошелька на обеих картах, чтобы начать использовать свои Twin карты</string>
<string name="twins_onboarding_subtitle">Один кошелек. Две карты.</string>
@ -139,15 +139,13 @@
<string name="custom_token_token_symbol_input_title">Символ токена</string>
<string name="custom_token_derivation_path_input_title">Деривация по BIP44</string>
<string name="custom_token_derivation_path_default">По-умолчанию</string>
<string name="wallet_address_button_copy">Копировать</string>
<string name="wallet_address_button_share">Поделиться</string>
<string name="token_details_send_blocked_tx_format">Пожалуйста, дождитесь завершения транзакции %s, чтобы иметь возможность отправить средства</string>
<string name="warning_failed_to_verify_card_title">Проверка подлинности не удалась</string>
<string name="warning_failed_to_verify_card_message">Эта карта может быть производственным образцом или подделкой</string>
<string name="warning_important_security_info">Важная информация о безопасности \u26A0</string>
<string name="warning_signed_tx_previously">Эта карта ранее подписывала транзакции</string>
<string name="warning_button_learn_more">Узнать подробнее</string>
<string name="alert_button_i_understand">Я понял</string>
<string name="common_understand">Я понял</string>
<string name="warning_low_signatures_format">На этой карте доступно только %s подписей. Вы должны вывести все свои средства.</string>
<string name="common_disconnect">Отключить</string>
<string name="common_sign">Подписать</string>

View file

@ -5,7 +5,7 @@
<string name="send_error_invalid_fee_value">Неверная комиссия</string>
<string name="send_error_dust_amount_format">Минимальная сумма: %s</string>
<string name="send_error_dust_change">Сдача слишком мала</string>
<string name="send_error_fee_request_failed">Не удалось получить комиссию</string>
<string name="common_fee_error">Не удалось получить комиссию</string>
<string name="send_error_no_target_account">Аккаунт получателя не создан. Сумма для отправки должна быть %s + комиссия или больше</string>
<string name="send_error_unknown">Неизвестная ошибка</string>
<string name="send_validation_invalid_address">Неверный адрес</string>

View file

@ -25,7 +25,7 @@
<string name="wallet_balance_blockchain_unreachable">Blockchain is unreachable</string>
<string name="wallet_error_no_account">Account is not created</string>
<string name="wallet_error_no_account_subtitle_format">Load %s+ %s to create account</string>
<string name="no_account_generic">Load %s+ %s to create account</string>
<string name="wallet_error_empty_card">Empty card</string>
<string name="wallet_error_empty_card_subtitle">Create wallet to start using Tangem card</string>
<string name="wallet_error_unsupported_blockchain">This card is not supported</string>

View file

@ -5,7 +5,7 @@
<string name="send_error_invalid_fee_value">Invalid Fee</string>
<string name="send_error_dust_amount_format">Minimum amount is %s</string>
<string name="send_error_dust_change">Change is too small</string>
<string name="send_error_fee_request_failed">Failed to get fee</string>
<string name="common_fee_error">Failed to get fee</string>
<string name="send_error_no_target_account">Target account is not created. Amount to send should be %s + fee or more</string>
<string name="send_error_unknown">Unknown error</string>
<string name="send_validation_invalid_address">Invalid address</string>

View file

@ -4,8 +4,8 @@
<string name="wallet_button_buy" translatable="false">Buy</string>
<string name="wallet_button_sell" translatable="false">Sell</string>
<string name="wallet_button_trade" translatable="false">Trade</string>
<string name="wallet_address_chip_default" translatable="false">Default</string>
<string name="wallet_address_chip_legacy" translatable="false">Legacy</string>
<string name="address_type_default" translatable="false">Default</string>
<string name="address_type_legacy" translatable="false">Legacy</string>
<string name="wallet_error_empty_twin_card" translatable="false">Create twin wallet</string>
<string name="wallet_error_empty_twin_card_subtitle" translatable="false"> Generate wallet keys on both cards to start using your Twins</string>
@ -69,8 +69,6 @@
//Details
<string name="add_tokens_subtitle_format" translatable="false">%s tokens</string>
<string name="wallet_address_button_copy" translatable="false">Copy</string>
<string name="wallet_address_button_share" translatable="false">Share</string>
<string name="token_details_send_blocked_tx_format" translatable="false">Please wait for %s transaction to complete to be able to send funds</string>
<string name="warning_failed_to_verify_card_title" translatable="false">Authenticity check failed</string>
@ -84,7 +82,7 @@
\n\nDo not accept this card as physical payment from someone you don\'t trust.
\n\nIt\'s perfectly safe in all other respects.
\n\nTangem is the only hardware wallet to offer signature count protection.</string>
<string name="alert_button_i_understand" translatable="false">I understand</string>
<string name="common_understand" translatable="false">I understand</string>
<string name="warning_low_signatures_format" translatable="false">There are only %s signatures available on this card. You must withdraw all of your funds.</string>
@ -251,6 +249,6 @@ Amount to pay: %s</string>
<string name="feedback_preface_scan_failed" translatable="false">Please tell us what card do you have?</string>
<string name="feedback_preface_tx_failed" translatable="false">Please tell us more about your issue. Every small detail can help.</string>
<string name="feedback_preface_support" translatable="false">Hi support team,</string>
<string name="feedback_data_collection_message" translatable="false">Following information is optional. You can erase it if you dont want to share it.</string>
<string name="feedback_data_collection_message" translatable="false">Following information is optional. You can erase it if you don\'t want to share it.</string>
</resources>

View file

@ -26,7 +26,7 @@
<string name="story_currencies_title">Thousands of Currencies</string>
<string name="story_currencies_description">A hardware wallet for your Bitcoin, Ethereum and many more currencies simultaneously all in one card</string>
<string name="story_web3_title">DeFi Compatible</string>
<string name="story_web3_description">Exchange, buy NFTs, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_web3_description">Exchange, buy NFT\'s, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_finish_title">The Wallet for Everyone</string>
<string name="story_finish_description">Use it on the go, anywhere, anytime. No wires or batteries. Just tap the card to your phone when you need your crypto.</string>
<string name="home_button_order">Order</string>
@ -68,7 +68,7 @@
<string name="card_settings_change_access_code">Change access code</string>
<string name="card_settings_change_access_code_footer">Access code will be changed on this card only</string>
<string name="scan_card_settings_title">Get your card ready!</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card youve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card you\'ve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_button">Scan Card</string>
<string name="app_settings_title">App settings</string>
<string name="app_settings_saved_wallet">Keep the wallet in the app</string>

View file

@ -26,7 +26,7 @@
<string name="story_currencies_title">Thousands of Currencies</string>
<string name="story_currencies_description">A hardware wallet for your Bitcoin, Ethereum and many more currencies simultaneously all in one card</string>
<string name="story_web3_title">DeFi Compatible</string>
<string name="story_web3_description">Exchange, buy NFTs, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_web3_description">Exchange, buy NFT\'s, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_finish_title">The Wallet for Everyone</string>
<string name="story_finish_description">Use it on the go, anywhere, anytime. No wires or batteries. Just tap the card to your phone when you need your crypto.</string>
<string name="home_button_order">Order</string>
@ -68,7 +68,7 @@
<string name="card_settings_change_access_code">Change access code</string>
<string name="card_settings_change_access_code_footer">Access code will be changed on this card only</string>
<string name="scan_card_settings_title">Get your card ready!</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card youve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card you\'ve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_button">Scan Card</string>
<string name="app_settings_title">App settings</string>
<string name="app_settings_saved_wallet">Keep the wallet in the app</string>

View file

@ -26,7 +26,7 @@
<string name="story_currencies_title">Thousands of Currencies</string>
<string name="story_currencies_description">A hardware wallet for your Bitcoin, Ethereum and many more currencies simultaneously all in one card</string>
<string name="story_web3_title">DeFi Compatible</string>
<string name="story_web3_description">Exchange, buy NFTs, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_web3_description">Exchange, buy NFT\'s, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_finish_title">The Wallet for Everyone</string>
<string name="story_finish_description">Use it on the go, anywhere, anytime. No wires or batteries. Just tap the card to your phone when you need your crypto.</string>
<string name="home_button_order">Order</string>
@ -68,7 +68,7 @@
<string name="card_settings_change_access_code">Change access code</string>
<string name="card_settings_change_access_code_footer">Access code will be changed on this card only</string>
<string name="scan_card_settings_title">Get your card ready!</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card youve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card you\'ve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_button">Scan Card</string>
<string name="app_settings_title">App settings</string>
<string name="app_settings_saved_wallet">Keep the wallet in the app</string>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="common_share">Share</string>
<string name="common_copy">Copy</string>
<string name="common_share" translatable="false">Share</string>
<string name="common_copy" translatable="false">Copy</string>
</resources>

View file

@ -26,7 +26,7 @@
<string name="story_currencies_title">Thousands of Currencies</string>
<string name="story_currencies_description">A hardware wallet for your Bitcoin, Ethereum and many more currencies simultaneously all in one card</string>
<string name="story_web3_title">DeFi Compatible</string>
<string name="story_web3_description">Exchange, buy NFTs, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_web3_description">Exchange, buy NFT\'s, make loans and deposits in more than 100 different decentralized services</string>
<string name="story_finish_title">The Wallet for Everyone</string>
<string name="story_finish_description">Use it on the go, anywhere, anytime. No wires or batteries. Just tap the card to your phone when you need your crypto.</string>
<string name="home_button_order">Order</string>
@ -60,7 +60,7 @@
<string name="russian_bank_card_warning_title">Russian bank cards are not accepted at the moment</string>
<string name="russian_bank_card_warning_subtitle">Do you have a bank card of another country or a UnionPay card?</string>
<string name="common_yes">Yes</string>
<string name="common_no">No</string>
<string name="common_no" translatable="false">No</string>
<string name="details_ask_a_question">Chat</string>
<string name="chat_bot_name">Tangem Bot</string>
<string name="card_settings_title">Card Settings</string>
@ -68,7 +68,7 @@
<string name="card_settings_change_access_code">Change access code</string>
<string name="card_settings_change_access_code_footer">Access code will be changed on this card only</string>
<string name="scan_card_settings_title">Get your card ready!</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card youve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_message">Scan the card to change its settings. The changes will impact only the card you\'ve scanned and will not affect other cards tied to your wallet.</string>
<string name="scan_card_settings_button">Scan Card</string>
<string name="app_settings_title">App settings</string>
<string name="app_settings_saved_wallet">Keep the wallet in the app</string>