From 920e037a7be594fca2e7024bbd4e57f5bc923f3e Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Fri, 21 Apr 2023 22:15:35 +0200 Subject: [PATCH] fix: greek byte notification --- src/gui/pages/notifications_page.rs | 8 ++++---- src/translations/translations.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/pages/notifications_page.rs b/src/gui/pages/notifications_page.rs index 5c1fd450..9129bd27 100644 --- a/src/gui/pages/notifications_page.rs +++ b/src/gui/pages/notifications_page.rs @@ -242,10 +242,10 @@ fn bytes_notification_log( &(logged_notification.threshold / logged_notification.byte_multiple.get_multiplier()) .to_string(), ); - threshold_str.push_str(&format!( - " {}", - logged_notification.byte_multiple.get_char() - )); + let char_multiple = logged_notification.byte_multiple.get_char(); + if !char_multiple.is_empty() { + threshold_str.push_str(&format!(" {char_multiple}",)); + } threshold_str.push_str(&format!(" {}", per_second_translation(language))); let mut incoming_str = " - ".to_string(); incoming_str.push_str(incoming_translation(language)); diff --git a/src/translations/translations.rs b/src/translations/translations.rs index b1b8d791..df93c50c 100644 --- a/src/translations/translations.rs +++ b/src/translations/translations.rs @@ -1212,7 +1212,7 @@ pub fn threshold_translation(language: Language) -> String { Language::TR => "Eşik: ".to_string(), Language::RU => "Порог: ".to_string(), Language::PT => "Limite: ".to_string(), - Language::EL => "Όριο: ".to_string(), + Language::EL => "όριο: ".to_string(), } }