Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ZH translation 2 #214

Merged
merged 3 commits into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ z
Expand All @@ -299,12 +301,14 @@ z
使
Expand All @@ -324,8 +328,11 @@ z
Expand All @@ -334,12 +341,15 @@ z
Expand All @@ -350,15 +360,20 @@ z
Expand All @@ -372,8 +387,10 @@ z
Expand All @@ -391,10 +408,12 @@ z
Expand All @@ -408,6 +427,8 @@ z
Expand All @@ -425,9 +446,13 @@ z
Expand All @@ -436,6 +461,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 @@ -71,6 +71,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message> {
Language::FA,
Language::ES,
Language::KO,
Language::ZH,
]
.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 @@ -14,6 +14,7 @@ pub fn new_version_available_translation(language: Language) -> &'static str {
Language::TR => "Daha yeni bir versiyon GitHub'ta mevcut",
Language::ES => "Hay una nueva versión disponible en GitHub",
Language::KO => "GitHub에 새로운 버전이 출시되었습니다.",
Language::ZH => "新版本已在 Github 发布",
_ => "A newer version is available on GitHub",
}
}
Expand All @@ -31,6 +32,7 @@ pub fn inspect_translation(language: Language) -> &'static str {
Language::TR => "İncele",
Language::FA => "بازرسی",
Language::KO => "검사",
Language::ZH => "检索",
_ => "Inspect",
}
}
Expand All @@ -46,6 +48,7 @@ pub fn connection_details_translation(language: Language) -> &'static str {
Language::FA => "مشخصات اتصال",
Language::ES => "Detalles de la Conexión",
Language::KO => "연결 상세",
Language::ZH => "连接详情",
_ => "Connection details",
}
}
Expand All @@ -61,6 +64,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str {
Language::FA => "بسته های رها شده",
Language::ES => "Paquetes perdidos",
Language::KO => "손실 패킷",
Language::ZH => "丢包计数",
_ => "Dropped packets",
}
}
Expand All @@ -76,6 +80,7 @@ pub fn data_representation_translation(language: Language) -> &'static str {
Language::FA => "بازنمایی داده ها", // TODO: or نمایندگی داده ها depending on context
Language::ES => "Representación de los datos",
Language::KO => "데이터 단위",
Language::ZH => "图表数据",
_ => "Data representation",
}
}
Expand All @@ -91,6 +96,7 @@ pub fn host_translation(language: Language) -> &'static str {
Language::FA => "میزبان شبکه",
Language::ES => "Host de red",
Language::KO => "네트워크 호스트",
Language::ZH => "主机",
_ => "Network host",
}
}
Expand All @@ -106,6 +112,7 @@ pub fn only_top_30_hosts_translation(language: Language) -> &'static str {
Language::FA => "تنها ۳۰ میزبان برتر در اینجا نمایش داده شده اند",
Language::ES => "Aquí sólo se muestran los 30 mejores anfitriones",
Language::KO => "상위 30개의 호스트만 노출됩니다",
Language::ZH => "仅展示前 30 个主机",
_ => "Only the top 30 hosts are displayed here",
}
}
Expand All @@ -121,6 +128,7 @@ pub fn sort_by_translation(language: Language) -> &'static str {
Language::FA => "مرتب سازی بر اساس",
Language::ES => "Ordenar por",
Language::KO => "정렬",
Language::ZH => "排序",
_ => "Sort by",
}
}
Expand All @@ -136,6 +144,7 @@ pub fn local_translation(language: Language) -> String {
Language::FA => "شبکه محلی",
Language::ES => "Red local",
Language::KO => "로컬 네트워크",
Language::ZH => "局域网",
_ => "Local network",
}
.to_string()
Expand All @@ -152,6 +161,7 @@ pub fn unknown_translation(language: Language) -> String {
Language::FA => "محل نامعلوم",
Language::ES => "Localización desconocida",
Language::KO => "알 수 없는 위치",
Language::ZH => "未知",
_ => "Unknown location",
}
.to_string()
Expand All @@ -168,6 +178,7 @@ pub fn your_network_adapter_translation(language: Language) -> String {
Language::FA => "مبدل شبکه شما",
Language::ES => "Su adaptador de red",
Language::KO => "네트워크 어댑터",
Language::ZH => "你的网络适配器",
_ => "Your network adapter",
}
.to_string()
Expand All @@ -184,6 +195,7 @@ pub fn socket_address_translation(language: Language) -> &'static str {
Language::FA => "پریز شبکه",
Language::ES => "Dirección del socket",
Language::KO => "소켓 어드레스",
Language::ZH => "套接字地址",
_ => "Socket address",
}
}
Expand All @@ -199,6 +211,7 @@ pub fn mac_address_translation(language: Language) -> &'static str {
Language::FA => "آدرس MAC",
Language::ES => "Dirección MAC",
Language::KO => "맥 어드레스",
Language::ZH => "MAC 地址",
_ => "MAC address",
}
}
Expand All @@ -214,6 +227,7 @@ pub fn source_translation(language: Language) -> &'static str {
Language::FA => "منبع",
Language::ES => "Origen",
Language::KO => "소스",
Language::ZH => "源",
_ => "Source",
}
}
Expand All @@ -228,6 +242,7 @@ pub fn destination_translation(language: Language) -> &'static str {
Language::FA => "مقصد",
Language::ES => "Destino",
Language::KO => "목적지",
Language::ZH => "目标",
_ => "Destination",
}
}
Expand All @@ -243,6 +258,7 @@ pub fn fqdn_translation(language: Language) -> &'static str {
Language::FA => "نام دامنه جامع الشرایط",
Language::ES => "Nombre de dominio completo",
Language::KO => "절대 도메인 네임",
Language::ZH => "FQDN",
_ => "Fully qualified domain name",
}
}
Expand All @@ -258,6 +274,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str {
Language::FA => "واحد اجرایی", // TODO: or واحد اداری depending on context
Language::ES => "Entidad Administrativa",
Language::KO => "관리 엔티티",
Language::ZH => "ASN 信息",
_ => "Autonomous System name",
}
}
Expand All @@ -273,6 +290,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str {
Language::FA => "دادهٔ منتقل شده",
Language::ES => "Datos transmitidos",
Language::KO => "수신된 데이터",
Language::ZH => "数据传输",
_ => "Transmitted data",
}
}
Expand All @@ -288,6 +306,7 @@ pub fn country_translation(language: Language) -> &'static str {
Language::FA => "کشور",
Language::ES => "País",
Language::KO => "국가",
Language::ZH => "国家",
_ => "Country",
}
}
Expand All @@ -303,6 +322,7 @@ pub fn domain_name_translation(language: Language) -> &'static str {
Language::FA => "نام دامنه",
Language::ES => "Nombre de dominio",
Language::KO => "도메인 네임",
Language::ZH => "域名",
_ => "Domain name",
}
}
Expand All @@ -318,6 +338,7 @@ pub fn only_show_favorites_translation(language: Language) -> &'static str {
Language::FA => "فقط پسندیده ها را نمایش بده",
Language::ES => "Mostrar solo los favoritos",
Language::KO => "즐겨찾기만 보기",
Language::ZH => "仅显示收藏",
_ => "Only show favorites",
}
}
Expand All @@ -333,6 +354,7 @@ pub fn search_filters_translation(language: Language) -> &'static str {
Language::FA => "صافی های جستجو",
Language::ES => "Filtros de búsqueda",
Language::KO => "검색 필터",
Language::ZH => "搜索条件",
_ => "Search filters",
}
}
Expand All @@ -348,6 +370,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str {
Language::FA => "هیچ نتیجه ای بر اساس صافی های جستجوی تعیین شده وجود ندارد",
Language::ES => "No hay resultados disponibles según los filtros de búsqueda especificados",
Language::KO => "해당 검색 필터로 검색된 결과가 없습니다.",
Language::ZH => "没有符合条件的条目",
_ => "No result available according to the specified search filters",
}
}
Expand All @@ -368,6 +391,7 @@ pub fn showing_results_translation(
Language::FA => format!("نمایش {start}-{end} از تمامی {total} نتیجه"),
Language::ES => format!("Mostrando {start}-{end} de {total} resultados totales"),
Language::KO => format!("총 {total}개의 결과 중 {start}-{end}을(를) 보여줍니다"),
Language::ZH => format!("显示累计 {total} 条目中第 {start}-{end} 个"),
_ => format!("Showing {start}-{end} of {total} total results"),
}
}
Expand All @@ -384,6 +408,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str {
Language::FA => "اعمال گرادیان های رنگ",
Language::ES => "Aplicar gradientes de color",
Language::KO => "그라디언트 색상 적용",
Language::ZH => "应用渐变色",
_ => "Apply color gradients",
}
}