Skip to content

Commit

Permalink
Merge pull request #187 from amarao/RU_2
Browse files Browse the repository at this point in the history
Ru 2
  • Loading branch information
GyulyVGC authored May 26, 2023
2 parents d3aec1e + 7c81b3e commit 0836ddd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/pages/settings_language_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message> {
)
.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(
Expand Down
2 changes: 1 addition & 1 deletion src/translations/translations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => "هیچ کدام",
Expand Down
23 changes: 23 additions & 0 deletions src/translations/translations_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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"),
}
Expand All @@ -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",
}
Expand Down

0 comments on commit 0836ddd

Please sign in to comment.