From c563f096b39f8034259067fb57aae37052ec8ae6 Mon Sep 17 00:00:00 2001 From: George Shuklin Date: Thu, 18 May 2023 19:00:45 +0300 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20None=20=3D>=20=D0=BD=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D0=B3=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit none_translation is used in few places (notably, under 'dropped packets'), so neutral translation is needed. --- src/translations/translations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/translations/translations.rs b/src/translations/translations.rs index 37020ed2..e112a183 100644 --- a/src/translations/translations.rs +++ b/src/translations/translations.rs @@ -1001,7 +1001,7 @@ pub fn none_translation(language: Language) -> String { Language::RO => "niciunul", Language::KO => "없음", Language::TR => "hiç biri", - Language::RU => "не выбран", + Language::RU => "ничего", Language::PT => "nenhum", Language::EL => "κανένα", Language::FA => "هیچ کدام", From d8d44f215c25885bcd972af942697e27ebd439a1 Mon Sep 17 00:00:00 2001 From: George Shuklin Date: Thu, 18 May 2023 19:24:53 +0300 Subject: [PATCH 2/3] feat: Russian translation. --- src/translations/translations_2.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/translations/translations_2.rs b/src/translations/translations_2.rs index 76cf89d8..d38e0e3a 100644 --- a/src/translations/translations_2.rs +++ b/src/translations/translations_2.rs @@ -30,6 +30,7 @@ pub fn connection_details_translation(language: Language) -> &'static str { match language { Language::EN => "Connection details", Language::IT => "Dettagli della connessione", + Language::RU => "Подробнее о соединении", _ => "Connection details", } } @@ -38,6 +39,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str { match language { Language::EN => "Dropped packets", Language::IT => "Pacchetti mancati", + Language::RU => "Потеряно пакетов", _ => "Dropped packets", } } @@ -46,6 +48,7 @@ pub fn data_representation_translation(language: Language) -> &'static str { match language { Language::EN => "Data representation", Language::IT => "Rappresentazione dei dati", + Language::RU => "Показывать в виде", // there is selector below: "байтов" or "пакетов" _ => "Data representation", } } @@ -54,6 +57,7 @@ pub fn host_translation(language: Language) -> &'static str { match language { Language::EN => "Network host", Language::IT => "Host di rete", + Language::RU => "Сетевой хост", _ => "Network host", } } @@ -62,6 +66,7 @@ pub fn only_top_30_hosts_translation(language: Language) -> &'static str { match language { Language::EN => "Only the top 30 hosts are displayed here", Language::IT => "Solo i maggiori 30 host sono mostrati qui", + Language::RU => "Тут показываются только первые 30 хостов", _ => "Only the top 30 hosts are displayed here", } } @@ -70,6 +75,7 @@ pub fn sort_by_translation(language: Language) -> &'static str { match language { Language::EN => "Sort by", Language::IT => "Ordina per", + Language::RU => "Сортировка", _ => "Sort by", } } @@ -78,6 +84,7 @@ pub fn local_translation(language: Language) -> String { match language { Language::EN => "Local network", Language::IT => "Rete locale", + Language::RU => "Локальная сеть", _ => "Local network", } .to_string() @@ -87,6 +94,7 @@ pub fn unknown_translation(language: Language) -> String { match language { Language::EN => "Unknown location", Language::IT => "Localizzazione sconosciuta", + Language::RU => "Неизвестный регион", _ => "Unknown location", } .to_string() @@ -96,6 +104,7 @@ pub fn your_network_adapter_translation(language: Language) -> String { match language { Language::EN => "Your network adapter", Language::IT => "La tua scheda di rete", + Language::RU => "Ваш сетевой адаптер", _ => "Your network adapter", } .to_string() @@ -105,6 +114,7 @@ pub fn socket_address_translation(language: Language) -> &'static str { match language { Language::EN => "Socket address", Language::IT => "Indirizzo del socket", + Language::RU => "Адрес сокекта", _ => "Socket address", } } @@ -113,6 +123,7 @@ pub fn mac_address_translation(language: Language) -> &'static str { match language { Language::EN => "MAC address", Language::IT => "Indirizzo MAC", + Language::RU => "MAC адрес", _ => "MAC address", } } @@ -121,6 +132,7 @@ pub fn source_translation(language: Language) -> &'static str { match language { Language::EN => "Source", Language::IT => "Sorgente", + Language::RU => "Источник", _ => "Source", } } @@ -129,6 +141,7 @@ pub fn destination_translation(language: Language) -> &'static str { match language { Language::EN => "Destination", Language::IT => "Destinazione", + Language::RU => "Получатель", _ => "Destination", } } @@ -137,6 +150,7 @@ pub fn fqdn_translation(language: Language) -> &'static str { match language { Language::EN => "Fully qualified domain name", Language::IT => "Nome di dominio completo", + Language::RU => "Полное доменное имя", _ => "Fully qualified domain name", } } @@ -145,6 +159,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str { match language { Language::EN => "Administrative entity", Language::IT => "Entità amministrativa", + Language::RU => "Имя автономной системы", _ => "Administrative entity", } } @@ -153,6 +168,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str { match language { Language::EN => "Transmitted data", Language::IT => "Dati trasmessi", + Language::RU => "Передано данных", _ => "Transmitted data", } } @@ -161,6 +177,7 @@ pub fn country_translation(language: Language) -> &'static str { match language { Language::EN => "Country", Language::IT => "Paese", + Language::RU => "Страна", _ => "Country", } } @@ -169,6 +186,7 @@ pub fn domain_name_translation(language: Language) -> &'static str { match language { Language::EN => "Domain name", Language::IT => "Nome di dominio", + Language::RU => "Доменное имя", _ => "Domain name", } } @@ -177,6 +195,7 @@ pub fn only_show_favorites_translation(language: Language) -> &'static str { match language { Language::EN => "Only show favorites", Language::IT => "Mostra solo i preferiti", + Language::RU => "Показывать только избранные", _ => "Only show favorites", } } @@ -185,6 +204,7 @@ pub fn search_filters_translation(language: Language) -> &'static str { match language { Language::EN => "Search filters", Language::IT => "Filtri di ricerca", + Language::RU => "Фильтры для поиска", _ => "Search filters", } } @@ -193,6 +213,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str { match language { Language::EN => "No result available according to the specified search filters", Language::IT => "Nessun risultato disponibile secondo i filtri di ricerca specificati", + Language::RU => "После применения выбранных фильтров результат поиска пустой", _ => "No result available according to the specified search filters", } } @@ -206,6 +227,7 @@ pub fn showing_results_translation( match language { Language::EN => format!("Showing {start}-{end} of {total} total results"), Language::IT => format!("Sono mostrati {start}-{end} di {total} risultati totali"), + Language::RU => format!("Показываются {start}-{end} из {total} общего числа результатов"), _ => format!("Showing {start}-{end} of {total} total results"), } } @@ -215,6 +237,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str { match language { Language::EN => "Apply color gradients", Language::IT => "Applica sfumature di colore", + Language::RU => "Применить цветовой градиент", // recheck _ => "Apply color gradients", } } From 7c81b3e89d7c51c89c790ca3cddf1aebd6af9e98 Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Fri, 26 May 2023 14:06:40 +0200 Subject: [PATCH 3/3] added RU to updated languages --- src/gui/pages/settings_language_page.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/pages/settings_language_page.rs b/src/gui/pages/settings_language_page.rs index 62aa2d87..9685ad9d 100644 --- a/src/gui/pages/settings_language_page.rs +++ b/src/gui/pages/settings_language_page.rs @@ -61,7 +61,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container { ) .push(vertical_space(Fixed(20.0))); - if ![Language::EN, Language::IT, Language::SV].contains(&sniffer.language) { + if ![Language::EN, Language::IT, Language::SV, Language::RU].contains(&sniffer.language) { content = content .push( Container::new(