Skip to content

Commit

Permalink
Merge pull request #205 from eatingdm/patch-2
Browse files Browse the repository at this point in the history
Added Korean translation for additional text
  • Loading branch information
GyulyVGC authored May 31, 2023
2 parents f091b0b + bfbbe62 commit d69f404
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,13 @@ z
Expand All @@ -516,6 +518,7 @@ z
Expand All @@ -525,6 +528,7 @@ z
Expand All @@ -537,8 +541,11 @@ z
Expand All @@ -553,7 +560,9 @@ z
Expand All @@ -565,13 +574,15 @@ z
Expand All @@ -582,6 +593,7 @@ z
Expand Down Expand Up @@ -609,11 +621,13 @@ z
Expand All @@ -625,7 +639,11 @@ z
Expand All @@ -636,6 +654,7 @@ z
Expand All @@ -649,6 +668,7 @@ z
Expand Down
Binary file modified resources/fonts/subset/sarasa-mono-sc-bold.subset.ttf
Binary file not shown.
Binary file modified resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions src/gui/pages/settings_language_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message> {
Language::TR,
Language::FA,
Language::ES,
Language::KO,
]
.contains(&sniffer.language)
{
Expand Down
25 changes: 25 additions & 0 deletions src/translations/translations_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub fn new_version_available_translation(language: Language) -> &'static str {
Language::DE => "Eine neue Version ist auf GitHub verfügbar",
Language::TR => "Daha yeni bir versiyon GitHub'ta mevcut",
Language::ES => "Hay una nueva versión disponible en GitHub",
Language::KO => "GitHub에 새로운 버전이 출시되었습니다.",
_ => "A newer version is available on GitHub",
}
}
Expand All @@ -29,6 +30,7 @@ pub fn inspect_translation(language: Language) -> &'static str {
Language::SV => "Inspektera",
Language::TR => "İncele",
Language::FA => "بازرسی",
Language::KO => "검사",
_ => "Inspect",
}
}
Expand All @@ -43,6 +45,7 @@ pub fn connection_details_translation(language: Language) -> &'static str {
Language::TR => "Bağlantı detayları",
Language::FA => "مشخصات اتصال",
Language::ES => "Detalles de la Conexión",
Language::KO => "연결 상세",
_ => "Connection details",
}
}
Expand All @@ -57,6 +60,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str {
Language::TR => "Düşen paketler",
Language::FA => "بسته های رها شده",
Language::ES => "Paquetes perdidos",
Language::KO => "손실 패킷",
_ => "Dropped packets",
}
}
Expand All @@ -71,6 +75,7 @@ pub fn data_representation_translation(language: Language) -> &'static str {
Language::TR => "Veri gösterimi",
Language::FA => "بازنمایی داده ها", // TODO: or نمایندگی داده ها depending on context
Language::ES => "Representación de los datos",
Language::KO => "데이터 단위",
_ => "Data representation",
}
}
Expand All @@ -85,6 +90,7 @@ pub fn host_translation(language: Language) -> &'static str {
Language::TR => "Ağ sunucusu",
Language::FA => "میزبان شبکه",
Language::ES => "Host de red",
Language::KO => "네트워크 호스트",
_ => "Network host",
}
}
Expand All @@ -99,6 +105,7 @@ pub fn only_top_30_hosts_translation(language: Language) -> &'static str {
Language::TR => "Sadece ilk 30 sunucu burda gösterilmektedir",
Language::FA => "تنها ۳۰ میزبان برتر در اینجا نمایش داده شده اند",
Language::ES => "Aquí sólo se muestran los 30 mejores anfitriones",
Language::KO => "상위 30개의 호스트만 노출됩니다",
_ => "Only the top 30 hosts are displayed here",
}
}
Expand All @@ -113,6 +120,7 @@ pub fn sort_by_translation(language: Language) -> &'static str {
Language::TR => "Şuna göre sırala",
Language::FA => "مرتب سازی بر اساس",
Language::ES => "Ordenar por",
Language::KO => "정렬",
_ => "Sort by",
}
}
Expand All @@ -127,6 +135,7 @@ pub fn local_translation(language: Language) -> String {
Language::TR => "Yerel ağ",
Language::FA => "شبکه محلی",
Language::ES => "Red local",
Language::KO => "로컬 네트워크",
_ => "Local network",
}
.to_string()
Expand All @@ -142,6 +151,7 @@ pub fn unknown_translation(language: Language) -> String {
Language::TR => "Bilinmeyen yer",
Language::FA => "محل نامعلوم",
Language::ES => "Localización desconocida",
Language::KO => "알 수 없는 위치",
_ => "Unknown location",
}
.to_string()
Expand All @@ -157,6 +167,7 @@ pub fn your_network_adapter_translation(language: Language) -> String {
Language::TR => "Ağ adaptörün",
Language::FA => "مبدل شبکه شما",
Language::ES => "Su adaptador de red",
Language::KO => "네트워크 어댑터",
_ => "Your network adapter",
}
.to_string()
Expand All @@ -172,6 +183,7 @@ pub fn socket_address_translation(language: Language) -> &'static str {
Language::TR => "Soket adresi",
Language::FA => "پریز شبکه",
Language::ES => "Dirección del socket",
Language::KO => "소켓 어드레스",
_ => "Socket address",
}
}
Expand All @@ -186,6 +198,7 @@ pub fn mac_address_translation(language: Language) -> &'static str {
Language::TR => "MAC adresi",
Language::FA => "آدرس MAC",
Language::ES => "Dirección MAC",
Language::KO => "맥 어드레스",
_ => "MAC address",
}
}
Expand All @@ -200,6 +213,7 @@ pub fn source_translation(language: Language) -> &'static str {
Language::TR => "Kaynak",
Language::FA => "منبع",
Language::ES => "Origen",
Language::KO => "소스",
_ => "Source",
}
}
Expand All @@ -213,6 +227,7 @@ pub fn destination_translation(language: Language) -> &'static str {
Language::TR => "Hedef",
Language::FA => "مقصد",
Language::ES => "Destino",
Language::KO => "목적지",
_ => "Destination",
}
}
Expand All @@ -227,6 +242,7 @@ pub fn fqdn_translation(language: Language) -> &'static str {
Language::TR => "Tam nitelikli alan adı",
Language::FA => "نام دامنه جامع الشرایط",
Language::ES => "Nombre de dominio completo",
Language::KO => "절대 도메인 네임",
_ => "Fully qualified domain name",
}
}
Expand All @@ -241,6 +257,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str {
Language::TR => "Yönetim varlığı",
Language::FA => "واحد اجرایی", // TODO: or واحد اداری depending on context
Language::ES => "Entidad Administrativa",
Language::KO => "관리 엔티티",
_ => "Autonomous System name",
}
}
Expand All @@ -255,6 +272,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str {
Language::TR => "Aktarılan veri",
Language::FA => "دادهٔ منتقل شده",
Language::ES => "Datos transmitidos",
Language::KO => "수신된 데이터",
_ => "Transmitted data",
}
}
Expand All @@ -269,6 +287,7 @@ pub fn country_translation(language: Language) -> &'static str {
Language::TR => "Ülke",
Language::FA => "کشور",
Language::ES => "País",
Language::KO => "국가",
_ => "Country",
}
}
Expand All @@ -283,6 +302,7 @@ pub fn domain_name_translation(language: Language) -> &'static str {
Language::TR => "Alan adı",
Language::FA => "نام دامنه",
Language::ES => "Nombre de dominio",
Language::KO => "도메인 네임",
_ => "Domain name",
}
}
Expand All @@ -297,6 +317,7 @@ pub fn only_show_favorites_translation(language: Language) -> &'static str {
Language::TR => "Sadece favorileri göster",
Language::FA => "فقط پسندیده ها را نمایش بده",
Language::ES => "Mostrar solo los favoritos",
Language::KO => "즐겨찾기만 보기",
_ => "Only show favorites",
}
}
Expand All @@ -311,6 +332,7 @@ pub fn search_filters_translation(language: Language) -> &'static str {
Language::TR => "Arama filtresi",
Language::FA => "صافی های جستجو",
Language::ES => "Filtros de búsqueda",
Language::KO => "검색 필터",
_ => "Search filters",
}
}
Expand All @@ -325,6 +347,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str {
Language::TR => "Belirtilen arama filtrelerine göre herhangi bir sonuç bulunmamaktadır",
Language::FA => "هیچ نتیجه ای بر اساس صافی های جستجوی تعیین شده وجود ندارد",
Language::ES => "No hay resultados disponibles según los filtros de búsqueda especificados",
Language::KO => "해당 검색 필터로 검색된 결과가 없습니다.",
_ => "No result available according to the specified search filters",
}
}
Expand All @@ -344,6 +367,7 @@ pub fn showing_results_translation(
Language::TR => format!("{total} sonuç içinde {start}-{end}"),
Language::FA => format!("نمایش {start}-{end} از تمامی {total} نتیجه"),
Language::ES => format!("Mostrando {start}-{end} de {total} resultados totales"),
Language::KO => format!("총 {total}개의 결과 중 {start}-{end}을(를) 보여줍니다"),
_ => format!("Showing {start}-{end} of {total} total results"),
}
}
Expand All @@ -359,6 +383,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str {
Language::TR => "Renk grandyanı uygula",
Language::FA => "اعمال گرادیان های رنگ",
Language::ES => "Aplicar gradientes de color",
Language::KO => "그라디언트 색상 적용",
_ => "Apply color gradients",
}
}

0 comments on commit d69f404

Please sign in to comment.