From 8260479f1c31f7df7fc125006c349253c3276c16 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 18 Apr 2024 17:14:33 +0300 Subject: [PATCH] txs: empty list message --- locales/en.yml | 2 +- locales/ru.yml | 2 +- src/gui/views/wallets/wallet/txs.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 0174c25..2fb6799 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -14,7 +14,7 @@ wallets: await_conf_amount: Awaiting confirmation await_fin_amount: Awaiting finalization locked_amount: Locked - txs_empty: 'To receive/send coins use %{receive}/%{send} buttons at the bottom of the screen, to change wallet settings press %{settings}.' + txs_empty: 'To receive/send funds manually or through transport use %{message} or %{transport} buttons at the bottom of the screen, to change wallet settings press %{settings}.' title: Wallets create_desc: Create or import existing wallet from saved recovery phrase. add: Add wallet diff --git a/locales/ru.yml b/locales/ru.yml index 05d8a7e..e1ea856 100644 --- a/locales/ru.yml +++ b/locales/ru.yml @@ -14,7 +14,7 @@ wallets: await_conf_amount: Ожидает подтверждения await_fin_amount: Ожидает завершения locked_amount: Заблокировано - txs_empty: 'Для получения/отправки монет используйте кнопки %{receive}/%{send} внизу экрана, для изменения настроек кошелька нажмите %{settings}.' + txs_empty: 'Для получения/отправки монет вручную или через транспорт используйте кнопки %{message} или %{transport} внизу экрана, для изменения настроек кошелька нажмите %{settings}.' title: Кошельки create_desc: Создайте или импортируйте существующий кошелёк из сохранённой фразы восстановления. add: Добавить кошелёк diff --git a/src/gui/views/wallets/wallet/txs.rs b/src/gui/views/wallets/wallet/txs.rs index 4e1847c..03f6fc5 100644 --- a/src/gui/views/wallets/wallet/txs.rs +++ b/src/gui/views/wallets/wallet/txs.rs @@ -18,7 +18,7 @@ use grin_core::core::amount_to_hr_string; use grin_wallet_libwallet::{TxLogEntry, TxLogEntryType}; use crate::gui::Colors; -use crate::gui::icons::{ARROW_CIRCLE_DOWN, ARROW_CIRCLE_UP, CALENDAR_CHECK, CHECK_CIRCLE, DOTS_THREE_CIRCLE, DOWNLOAD, FILE_TEXT, GEAR_FINE, PROHIBIT, UPLOAD, X_CIRCLE}; +use crate::gui::icons::{ARROW_CIRCLE_DOWN, ARROW_CIRCLE_UP, BRIDGE, CALENDAR_CHECK, CHAT_CIRCLE_TEXT, CHECK_CIRCLE, DOTS_THREE_CIRCLE, FILE_TEXT, GEAR_FINE, PROHIBIT, X_CIRCLE}; use crate::gui::platform::PlatformCallbacks; use crate::gui::views::{Root, View}; use crate::gui::views::wallets::types::WalletTab; @@ -119,8 +119,8 @@ impl WalletInfo { View::center_content(ui, 96.0, |ui| { let empty_text = t!( "wallets.txs_empty", - "receive" => DOWNLOAD, - "send" => UPLOAD, + "message" => CHAT_CIRCLE_TEXT, + "transport" => BRIDGE, "settings" => GEAR_FINE ); ui.label(RichText::new(empty_text).size(16.0).color(Colors::INACTIVE_TEXT));