From 0e07ce910aec5ed6cbe72052bcaf56dc00fb43a3 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 1 May 2024 05:19:47 +0300 Subject: [PATCH] ui: show amount on send over tor --- locales/en.yml | 2 +- locales/ru.yml | 2 +- src/gui/views/wallets/wallet/transport.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 9ec01dc..253a951 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -124,7 +124,7 @@ transport: incorrect_addr_err: 'Entered address is incorrect:' tor_send_error: An error occurred during sending over Tor, make sure receiver is online, transaction was canceled. tor_autorun_desc: Whether to launch Tor service on wallet opening to receive transactions synchronously. - tor_sending: Sending over Tor + tor_sending: 'Sending %{amount} ツ over Tor' tor_settings: Tor Settings network: self: Network diff --git a/locales/ru.yml b/locales/ru.yml index a732741..1a75350 100644 --- a/locales/ru.yml +++ b/locales/ru.yml @@ -124,7 +124,7 @@ transport: incorrect_addr_err: 'Введённый адрес неверен:' tor_send_error: Во время отправки через Tor произошла ошибка, убедитесь, что получатель находится онлайн, транзакция была отменена. tor_autorun_desc: Запускать ли Tor сервис при открытии кошелька для синхронного получения транзакций. - tor_sending: Отправка через Tor + tor_sending: 'Отправка %{amount} ツ через Tor' tor_settings: Настройки Tor network: self: Сеть diff --git a/src/gui/views/wallets/wallet/transport.rs b/src/gui/views/wallets/wallet/transport.rs index 6dacb84..3f3493a 100644 --- a/src/gui/views/wallets/wallet/transport.rs +++ b/src/gui/views/wallets/wallet/transport.rs @@ -616,7 +616,7 @@ impl WalletTransport { ui.vertical_centered(|ui| { View::small_loading_spinner(ui); ui.add_space(12.0); - ui.label(RichText::new(t!("transport.tor_sending")) + ui.label(RichText::new(t!("transport.tor_sending", "amount" => self.amount_edit)) .size(17.0) .color(Colors::GRAY)); });