Skip to content

Commit

Permalink
Merge pull request #398 from clr-cera/Portuguese-translations_2
Browse files Browse the repository at this point in the history
Portuguese Translation Extension - Translations_2
  • Loading branch information
GyulyVGC authored Nov 5, 2023
2 parents b6a3f6f + 5c456f6 commit dd2ac72
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 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 @@ -59,7 +59,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message, Renderer<
.push(vertical_space(Fixed(25.0)))
.push(col_language_radio_all);

if [Language::EL, Language::PT].contains(&sniffer.language) {
if sniffer.language.eq(&Language::EL) {
content = content.push(vertical_space(Fixed(20.0))).push(
Container::new(
Text::new("The selected language is not fully updated to version 1.2").font(font),
Expand Down
29 changes: 25 additions & 4 deletions src/translations/translations_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn new_version_available_translation(language: Language) -> &'static str {
Language::FR => "Une nouvelle version est disponible!",
Language::JA => "新しいバージョンが利用可能になりました!",
Language::UZ => "Yangi versiya mavjud!",
_ => "A newer version is available!",
Language::PT => "Uma nova versão está disponível!",
}
}

Expand All @@ -45,6 +45,7 @@ pub fn inspect_translation(language: Language) -> &'static str {
Language::RO => "Inspectați",
Language::JA => "検査",
Language::UZ => "Tekshirish",
Language::PT => "Inspecionar",
_ => "Inspect",
}
}
Expand All @@ -68,6 +69,7 @@ pub fn connection_details_translation(language: Language) -> &'static str {
Language::FR => "Détails de la connexion",
Language::JA => "接続の詳細",
Language::UZ => "Ulanish tafsilotlari",
Language::PT => "Detalhes da conexão",
_ => "Connection details",
}
}
Expand All @@ -91,6 +93,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str {
Language::FR => "Packets perdus",
Language::JA => "ドロップしたパケット",
Language::UZ => "Yig'ilgan paketlar",
Language::PT => "Pacotes perdidos",
_ => "Dropped packets",
}
}
Expand All @@ -114,6 +117,7 @@ pub fn data_representation_translation(language: Language) -> &'static str {
Language::FR => "Représentation de données",
Language::JA => "データ表示",
Language::UZ => "Ma'lumotlarni taqdim etish",
Language::PT => "Representação dos dados",
_ => "Data representation",
}
}
Expand All @@ -137,6 +141,7 @@ pub fn host_translation(language: Language) -> &'static str {
Language::FR => "Host réseaux",
Language::JA => "ネットワーク ホスト",
Language::UZ => "Tarmoq serveri",
Language::PT => "Host da rede",
_ => "Network host",
}
}
Expand All @@ -160,6 +165,7 @@ pub fn only_top_30_hosts_translation(language: Language) -> &'static str {
Language::FR => "Seuls les 30 premiers hôtes sont affichés ici",
Language::JA => "上位 30 件のホストのみが表示されます",
Language::UZ => "Bu erda faqat dastlabki 30 ta server ko'rsatiladi",
Language::PT => "Apenas os 30 melhores hosts são expostos aqui",
_ => "Only the top 30 hosts are displayed here",
}
}
Expand All @@ -174,7 +180,7 @@ pub fn sort_by_translation(language: Language) -> &'static str {
Language::DE => "Sortieren nach",
Language::TR => "Şuna göre sırala",
// Language::FA => "مرتب سازی بر اساس",
Language::ES => "Ordenar por",
Language::ES | Language::PT => "Ordenar por",
Language::KO => "정렬",
Language::ZH => "排序",
Language::UK => "Сортувати за",
Expand Down Expand Up @@ -206,6 +212,7 @@ pub fn local_translation(language: Language) -> String {
Language::FR => "Réseau local",
Language::JA => "ローカル ネットワーク",
Language::UZ => "Mahalliy tarmoq",
Language::PT => "Rede local",
_ => "Local network",
}
.to_string()
Expand All @@ -230,6 +237,7 @@ pub fn unknown_translation(language: Language) -> String {
Language::FR => "Localisation inconnue",
Language::JA => "不明なロケーション",
Language::UZ => "Noma'lum joylashuv",
Language::PT => "Localização desconhecida",
_ => "Unknown location",
}
.to_string()
Expand All @@ -254,6 +262,7 @@ pub fn your_network_adapter_translation(language: Language) -> String {
Language::FR => "Votre carte réseau",
Language::JA => "自身のネットワーク アダプター",
Language::UZ => "Sizning tarmoq adapteringiz",
Language::PT => "Seu adaptador de rede",
_ => "Your network adapter",
}
.to_string()
Expand All @@ -278,6 +287,7 @@ pub fn socket_address_translation(language: Language) -> &'static str {
Language::FR => "Adresse du socket",
Language::JA => "ソケット アドレス",
Language::UZ => "Soket manzili",
Language::PT => "Endereço da socket",
_ => "Socket address",
}
}
Expand All @@ -301,6 +311,7 @@ pub fn mac_address_translation(language: Language) -> &'static str {
Language::FR => "Adresse MAC",
Language::JA => "MAC アドレス",
Language::UZ => "MAC manzili",
Language::PT => "Endereço MAC",
_ => "MAC address",
}
}
Expand All @@ -324,6 +335,7 @@ pub fn source_translation(language: Language) -> &'static str {
Language::FR => "Source",
Language::JA => "送信元",
Language::UZ => "Manba",
Language::PT => "Fonte",
_ => "Source",
}
}
Expand All @@ -337,7 +349,7 @@ pub fn destination_translation(language: Language) -> &'static str {
Language::DE => "Ziel",
Language::TR => "Hedef",
// Language::FA => "مقصد",
Language::ES => "Destino",
Language::ES | Language::PT => "Destino",
Language::KO => "목적지",
Language::ZH => "目标",
Language::UK => "Призначення",
Expand Down Expand Up @@ -368,6 +380,7 @@ pub fn fqdn_translation(language: Language) -> &'static str {
Language::PL => "Pełna nazwa domeny",
Language::FR => "Nom de domaine complètement qualifié",
Language::UZ => "To'liq domen nomi",
Language::PT => "Nome de domínio completo",
_ => "Fully qualified domain name",
}
}
Expand All @@ -391,6 +404,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str {
Language::FR => "Nom du système autonome",
Language::JA => "AS 名",
Language::UZ => "Avtonom tizim nomi",
Language::PT => "Entidade administrativa",
_ => "Autonomous System name",
}
}
Expand All @@ -414,6 +428,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str {
Language::FR => "Données transmises",
Language::JA => "転送データ",
Language::UZ => "Uzatilgan ma'lumotlar",
Language::PT => "Dados transmitidos",
_ => "Transmitted data",
}
}
Expand All @@ -428,7 +443,7 @@ pub fn country_translation(language: Language) -> &'static str {
Language::DE => "Land",
Language::TR => "Ülke",
// Language::FA => "کشور",
Language::ES => "País",
Language::ES | Language::PT => "País",
Language::KO => "국가",
Language::ZH => "国家",
Language::UK => "Країна",
Expand Down Expand Up @@ -460,6 +475,7 @@ pub fn domain_name_translation(language: Language) -> &'static str {
Language::FR => "Nom de domaine",
Language::JA => "ドメイン名",
Language::UZ => "Domen nomi",
Language::PT => "Nome do domínio",
_ => "Domain name",
}
}
Expand All @@ -483,6 +499,7 @@ pub fn only_show_favorites_translation(language: Language) -> &'static str {
Language::FR => "Afficher uniquement les favoris",
Language::JA => "お気に入りのみを表示する",
Language::UZ => "Faqat sevimlilarni ko'rsatish",
Language::PT => "Apenas mostrar os favoritos",
_ => "Only show favorites",
}
}
Expand All @@ -506,6 +523,7 @@ pub fn search_filters_translation(language: Language) -> &'static str {
Language::FR => "Filtres de recherche",
Language::JA => "検索フィルター",
Language::UZ => "Qidiruv filtrlari",
Language::PT => "Filtros de busca",
_ => "Search filters",
}
}
Expand All @@ -529,6 +547,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str {
Language::FR => "Aucun résultat disponible selon les filtres de recherche spécifiés",
Language::JA => "指定されたフィルター条件で表示できる結果はありません",
Language::UZ => "Belgilangan qidiruv filtrlari bo'yicha hech qanday natija mavjud emas",
Language::PT => "Nenhum resultado disponível de acordo com os filtros selecionados",
_ => "No result available according to the specified search filters",
}
}
Expand Down Expand Up @@ -557,6 +576,7 @@ pub fn showing_results_translation(
Language::FR => format!("Affichage de {start}-{end} de {total} résultats totaux"),
Language::JA => format!("{total} 件中の {start}-{end} 件を表示"),
Language::UZ => format!("Jami {total} natijadan {start}-{end} ko'rsatilyapti"),
Language::PT => format!("Mostrando {start}-{end} de {total} resultados totais"),
_ => format!("Showing {start}-{end} of {total} total results"),
}
}
Expand All @@ -581,6 +601,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str {
Language::FR => "Appliquer des gradients de couleur",
Language::JA => "グラデーションを適用する",
Language::UZ => "Rang gradientlarini qo'llang",
Language::PT => "Aplicar gradientes de cor",
_ => "Apply color gradients",
}
}

0 comments on commit dd2ac72

Please sign in to comment.