fix: greek byte notification

This commit is contained in:
Giuliano Bellini s294739 2023-04-21 22:15:35 +02:00
parent 23e6f30784
commit 920e037a7b
2 changed files with 5 additions and 5 deletions

View file

@ -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));

View file

@ -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(),
}
}