From 3b099b03060ee03a84c2772dcc7c1a232098af52 Mon Sep 17 00:00:00 2001 From: AmadeusGraves <18572939+AmadeusGraves@users.noreply.github.com> Date: Sat, 20 May 2023 21:42:59 +0200 Subject: [PATCH 1/3] Update translations_2.rs Update Spanish --- src/translations/translations_2.rs | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/translations/translations_2.rs b/src/translations/translations_2.rs index 76cf89d8..652d0480 100644 --- a/src/translations/translations_2.rs +++ b/src/translations/translations_2.rs @@ -9,6 +9,7 @@ pub fn new_version_available_translation(language: Language) -> &'static str { Language::RU => "Новая версия доступна на GitHub", Language::EL => "Μια νεότερη έκδοση είναι διαθέσιμη στο GitHub", Language::FA => "یک نسخه جدیدتر روی GitHub موجود است", + Language::ES => "Hay una nueva versión disponible en GitHub", _ => "A newer version is available on GitHub", } } @@ -30,6 +31,7 @@ pub fn connection_details_translation(language: Language) -> &'static str { match language { Language::EN => "Connection details", Language::IT => "Dettagli della connessione", + Language::ES => "Detalles de la Conexión", _ => "Connection details", } } @@ -38,6 +40,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str { match language { Language::EN => "Dropped packets", Language::IT => "Pacchetti mancati", + Language::ES => "Paquetes perdidos", _ => "Dropped packets", } } @@ -46,6 +49,7 @@ pub fn data_representation_translation(language: Language) -> &'static str { match language { Language::EN => "Data representation", Language::IT => "Rappresentazione dei dati", + Language::ES => "Representación de los datos", _ => "Data representation", } } @@ -54,6 +58,7 @@ pub fn host_translation(language: Language) -> &'static str { match language { Language::EN => "Network host", Language::IT => "Host di rete", + Language::ES => "Host de red", _ => "Network host", } } @@ -62,6 +67,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::ES => "Aquí sólo se muestran los 30 mejores anfitriones", _ => "Only the top 30 hosts are displayed here", } } @@ -70,6 +76,7 @@ pub fn sort_by_translation(language: Language) -> &'static str { match language { Language::EN => "Sort by", Language::IT => "Ordina per", + Language::ES => "Ordenar por", _ => "Sort by", } } @@ -78,6 +85,7 @@ pub fn local_translation(language: Language) -> String { match language { Language::EN => "Local network", Language::IT => "Rete locale", + Language::ES => "Red local", _ => "Local network", } .to_string() @@ -87,6 +95,7 @@ pub fn unknown_translation(language: Language) -> String { match language { Language::EN => "Unknown location", Language::IT => "Localizzazione sconosciuta", + Language::ES => "Localización desconocida", _ => "Unknown location", } .to_string() @@ -96,6 +105,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::ES => "Su adaptador de red", _ => "Your network adapter", } .to_string() @@ -105,6 +115,7 @@ pub fn socket_address_translation(language: Language) -> &'static str { match language { Language::EN => "Socket address", Language::IT => "Indirizzo del socket", + Language::ES => "Dirección del socket", _ => "Socket address", } } @@ -113,6 +124,7 @@ pub fn mac_address_translation(language: Language) -> &'static str { match language { Language::EN => "MAC address", Language::IT => "Indirizzo MAC", + Language::ES => "Dirección MAC", _ => "MAC address", } } @@ -121,6 +133,7 @@ pub fn source_translation(language: Language) -> &'static str { match language { Language::EN => "Source", Language::IT => "Sorgente", + Language::ES => "Origen", _ => "Source", } } @@ -129,6 +142,7 @@ pub fn destination_translation(language: Language) -> &'static str { match language { Language::EN => "Destination", Language::IT => "Destinazione", + Language::ES => "Destino", _ => "Destination", } } @@ -137,6 +151,7 @@ pub fn fqdn_translation(language: Language) -> &'static str { match language { Language::EN => "Fully qualified domain name", Language::IT => "Nome di dominio completo", + Language::ES => "Nombre de dominio completo", _ => "Fully qualified domain name", } } @@ -145,6 +160,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str { match language { Language::EN => "Administrative entity", Language::IT => "Entità amministrativa", + Language::ES => "Entidad Administrativa", _ => "Administrative entity", } } @@ -153,6 +169,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str { match language { Language::EN => "Transmitted data", Language::IT => "Dati trasmessi", + Language::ES => "Datos transmitidos", _ => "Transmitted data", } } @@ -161,6 +178,7 @@ pub fn country_translation(language: Language) -> &'static str { match language { Language::EN => "Country", Language::IT => "Paese", + Language::ES => "País", _ => "Country", } } @@ -169,6 +187,7 @@ pub fn domain_name_translation(language: Language) -> &'static str { match language { Language::EN => "Domain name", Language::IT => "Nome di dominio", + Language::ES => "Nombre de dominio", _ => "Domain name", } } @@ -177,6 +196,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::ES => "Mostrar solo los favoritos", _ => "Only show favorites", } } @@ -185,6 +205,7 @@ pub fn search_filters_translation(language: Language) -> &'static str { match language { Language::EN => "Search filters", Language::IT => "Filtri di ricerca", + Language::ES => "Filtros de búsqueda", _ => "Search filters", } } @@ -193,19 +214,21 @@ 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::ES => "No hay resultados disponibles según los filtros de búsqueda especificados", _ => "No result available according to the specified search filters", } } pub fn showing_results_translation( language: Language, - start: usize, + start: usize,format!("Mostrando {start}-{end} de {total} resultados totales") end: usize, total: usize, ) -> String { match language { Language::EN => format!("Showing {start}-{end} of {total} total results"), Language::IT => format!("Sono mostrati {start}-{end} di {total} risultati totali"), + Language::ES => format!("Mostrando {start}-{end} de {total} resultados totales"), _ => format!("Showing {start}-{end} of {total} total results"), } } @@ -215,6 +238,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str { match language { Language::EN => "Apply color gradients", Language::IT => "Applica sfumature di colore", + Language::ES => "Aplicar gradientes de color", _ => "Apply color gradients", } } From 5a4311ad5dc34f105712568145d609dca5b5d819 Mon Sep 17 00:00:00 2001 From: AmadeusGraves <18572939+AmadeusGraves@users.noreply.github.com> Date: Sat, 20 May 2023 22:04:56 +0200 Subject: [PATCH 2/3] Update translations_2.rs Review changes on spanish update --- src/translations/translations_2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/translations/translations_2.rs b/src/translations/translations_2.rs index 652d0480..86397ff2 100644 --- a/src/translations/translations_2.rs +++ b/src/translations/translations_2.rs @@ -221,7 +221,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str { pub fn showing_results_translation( language: Language, - start: usize,format!("Mostrando {start}-{end} de {total} resultados totales") + start: usize, end: usize, total: usize, ) -> String { From ded3fb1d7d04049971586bc42b106046e275d656 Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Tue, 30 May 2023 11:44:00 +0200 Subject: [PATCH 3/3] added ES to updated languages --- src/gui/pages/settings_language_page.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/pages/settings_language_page.rs b/src/gui/pages/settings_language_page.rs index 45acce68..7caaa9fb 100644 --- a/src/gui/pages/settings_language_page.rs +++ b/src/gui/pages/settings_language_page.rs @@ -69,6 +69,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container { Language::DE, Language::TR, Language::FA, + Language::ES, ] .contains(&sniffer.language) {