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( diff --git a/src/translations/translations.rs b/src/translations/translations.rs index da0ae641..8c3541e2 100644 --- a/src/translations/translations.rs +++ b/src/translations/translations.rs @@ -1052,7 +1052,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 => "هیچ کدام", diff --git a/src/translations/translations_2.rs b/src/translations/translations_2.rs index a77f4617..7300e96b 100644 --- a/src/translations/translations_2.rs +++ b/src/translations/translations_2.rs @@ -32,6 +32,7 @@ pub fn connection_details_translation(language: Language) -> &'static str { match language { Language::EN => "Connection details", Language::IT => "Dettagli della connessione", + Language::RU => "Подробнее о соединении", Language::SV => "Anslutningsdetaljer", _ => "Connection details", } @@ -41,6 +42,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str { match language { Language::EN => "Dropped packets", Language::IT => "Pacchetti mancati", + Language::RU => "Потеряно пакетов", Language::SV => "Tappade paket", _ => "Dropped packets", } @@ -50,6 +52,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 "пакетов" Language::SV => "Datarepresentation", _ => "Data representation", } @@ -59,6 +62,7 @@ pub fn host_translation(language: Language) -> &'static str { match language { Language::EN => "Network host", Language::IT => "Host di rete", + Language::RU => "Сетевой хост", Language::SV => "Nätverksvärd", _ => "Network host", } @@ -68,6 +72,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 хостов", Language::SV => "Endast de 30 främsta värdarna visas här", _ => "Only the top 30 hosts are displayed here", } @@ -77,6 +82,7 @@ pub fn sort_by_translation(language: Language) -> &'static str { match language { Language::EN => "Sort by", Language::IT => "Ordina per", + Language::RU => "Сортировка", Language::SV => "Sortera efter", _ => "Sort by", } @@ -86,6 +92,7 @@ pub fn local_translation(language: Language) -> String { match language { Language::EN => "Local network", Language::IT => "Rete locale", + Language::RU => "Локальная сеть", Language::SV => "Lokalt nätverk", _ => "Local network", } @@ -96,6 +103,7 @@ pub fn unknown_translation(language: Language) -> String { match language { Language::EN => "Unknown location", Language::IT => "Localizzazione sconosciuta", + Language::RU => "Неизвестный регион", Language::SV => "Okänd plats", _ => "Unknown location", } @@ -106,6 +114,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 => "Ваш сетевой адаптер", Language::SV => "Din nätverksadapter", _ => "Your network adapter", } @@ -116,6 +125,7 @@ pub fn socket_address_translation(language: Language) -> &'static str { match language { Language::EN => "Socket address", Language::IT => "Indirizzo del socket", + Language::RU => "Адрес сокекта", Language::SV => "Socketadress", _ => "Socket address", } @@ -125,6 +135,7 @@ pub fn mac_address_translation(language: Language) -> &'static str { match language { Language::EN => "MAC address", Language::IT => "Indirizzo MAC", + Language::RU => "MAC адрес", Language::SV => "MAC-adress", _ => "MAC address", } @@ -134,6 +145,7 @@ pub fn source_translation(language: Language) -> &'static str { match language { Language::EN => "Source", Language::IT => "Sorgente", + Language::RU => "Источник", Language::SV => "Källa", _ => "Source", } @@ -143,6 +155,7 @@ pub fn destination_translation(language: Language) -> &'static str { match language { Language::EN | Language::SV => "Destination", Language::IT => "Destinazione", + Language::RU => "Получатель", _ => "Destination", } } @@ -151,6 +164,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 => "Полное доменное имя", Language::SV => "Fullständigt domännamn", _ => "Fully qualified domain name", } @@ -160,6 +174,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str { match language { Language::EN => "Administrative entity", Language::IT => "Entità amministrativa", + Language::RU => "Имя автономной системы", Language::SV => "Administrativ enhet", _ => "Administrative entity", } @@ -169,6 +184,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str { match language { Language::EN => "Transmitted data", Language::IT => "Dati trasmessi", + Language::RU => "Передано данных", Language::SV => "Överförd data", _ => "Transmitted data", } @@ -178,6 +194,7 @@ pub fn country_translation(language: Language) -> &'static str { match language { Language::EN => "Country", Language::IT => "Paese", + Language::RU => "Страна", Language::SV => "Land", _ => "Country", } @@ -187,6 +204,7 @@ pub fn domain_name_translation(language: Language) -> &'static str { match language { Language::EN => "Domain name", Language::IT => "Nome di dominio", + Language::RU => "Доменное имя", Language::SV => "Domännamn", _ => "Domain name", } @@ -196,6 +214,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 => "Показывать только избранные", Language::SV => "Visa endast favoriter", _ => "Only show favorites", } @@ -205,6 +224,7 @@ pub fn search_filters_translation(language: Language) -> &'static str { match language { Language::EN => "Search filters", Language::IT => "Filtri di ricerca", + Language::RU => "Фильтры для поиска", Language::SV => "Sökfilter", _ => "Search filters", } @@ -214,6 +234,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 => "После применения выбранных фильтров результат поиска пустой", Language::SV => "Inga resultat tillgängliga utifrån de angivna sökfilterna", _ => "No result available according to the specified search filters", } @@ -228,6 +249,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} общего числа результатов"), Language::SV => format!("Visar {start}-{end} av {total} totala resultat"), _ => format!("Showing {start}-{end} of {total} total results"), } @@ -238,6 +260,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 Language::SV => "Applicera färggradient", _ => "Apply color gradients", }