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 Ukrainian translation to v1.2 #216

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
2 changes: 2 additions & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ z
Ș
ș
ț
ʼ
Ά
Έ
Ή
Expand Down Expand Up @@ -187,6 +188,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.
17 changes: 6 additions & 11 deletions src/gui/pages/settings_language_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,12 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message> {
)
.push(vertical_space(Fixed(20.0)));

if ![
Language::EN,
Language::IT,
Language::SV,
Language::RU,
Language::DE,
Language::TR,
Language::FA,
Language::ES,
Language::KO,
Language::ZH,
if [
Language::EL,
Language::FR,
Language::PL,
Language::PT,
Language::RO,
]
.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 @@ -15,6 +15,7 @@ pub fn new_version_available_translation(language: Language) -> &'static str {
Language::ES => "Hay una nueva versión disponible en GitHub",
Language::KO => "GitHub에 새로운 버전이 출시되었습니다.",
Language::ZH => "新版本已在 Github 发布",
Language::UK => "Нова версія доступна на GitHub",
_ => "A newer version is available on GitHub",
}
}
Expand All @@ -33,6 +34,7 @@ pub fn inspect_translation(language: Language) -> &'static str {
Language::FA => "بازرسی",
Language::KO => "검사",
Language::ZH => "检索",
Language::UK => "Інспектувати",
_ => "Inspect",
}
}
Expand All @@ -49,6 +51,7 @@ pub fn connection_details_translation(language: Language) -> &'static str {
Language::ES => "Detalles de la Conexión",
Language::KO => "연결 상세",
Language::ZH => "连接详情",
Language::UK => "Деталі зʼєднання",
_ => "Connection details",
}
}
Expand All @@ -65,6 +68,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str {
Language::ES => "Paquetes perdidos",
Language::KO => "손실 패킷",
Language::ZH => "丢包计数",
Language::UK => "Пропущені пакети",
_ => "Dropped packets",
}
}
Expand All @@ -81,6 +85,7 @@ pub fn data_representation_translation(language: Language) -> &'static str {
Language::ES => "Representación de los datos",
Language::KO => "데이터 단위",
Language::ZH => "图表数据",
Language::UK => "Представлення даних",
_ => "Data representation",
}
}
Expand All @@ -97,6 +102,7 @@ pub fn host_translation(language: Language) -> &'static str {
Language::ES => "Host de red",
Language::KO => "네트워크 호스트",
Language::ZH => "主机",
Language::UK => "Мережевий хост",
_ => "Network host",
}
}
Expand All @@ -113,6 +119,7 @@ pub fn only_top_30_hosts_translation(language: Language) -> &'static str {
Language::ES => "Aquí sólo se muestran los 30 mejores anfitriones",
Language::KO => "상위 30개의 호스트만 노출됩니다",
Language::ZH => "仅展示前 30 个主机",
Language::UK => "Лише верхні 30 хостів відображаються тут",
_ => "Only the top 30 hosts are displayed here",
}
}
Expand All @@ -129,6 +136,7 @@ pub fn sort_by_translation(language: Language) -> &'static str {
Language::ES => "Ordenar por",
Language::KO => "정렬",
Language::ZH => "排序",
Language::UK => "Сортувати за",
_ => "Sort by",
}
}
Expand All @@ -145,6 +153,7 @@ pub fn local_translation(language: Language) -> String {
Language::ES => "Red local",
Language::KO => "로컬 네트워크",
Language::ZH => "局域网",
Language::UK => "Локальна мережа",
_ => "Local network",
}
.to_string()
Expand All @@ -162,6 +171,7 @@ pub fn unknown_translation(language: Language) -> String {
Language::ES => "Localización desconocida",
Language::KO => "알 수 없는 위치",
Language::ZH => "未知",
Language::UK => "Невідома локація",
_ => "Unknown location",
}
.to_string()
Expand All @@ -179,6 +189,7 @@ pub fn your_network_adapter_translation(language: Language) -> String {
Language::ES => "Su adaptador de red",
Language::KO => "네트워크 어댑터",
Language::ZH => "你的网络适配器",
Language::UK => "Ваш мережевий адаптер",
_ => "Your network adapter",
}
.to_string()
Expand All @@ -196,6 +207,7 @@ pub fn socket_address_translation(language: Language) -> &'static str {
Language::ES => "Dirección del socket",
Language::KO => "소켓 어드레스",
Language::ZH => "套接字地址",
Language::UK => "Адреса сокета",
_ => "Socket address",
}
}
Expand All @@ -212,6 +224,7 @@ pub fn mac_address_translation(language: Language) -> &'static str {
Language::ES => "Dirección MAC",
Language::KO => "맥 어드레스",
Language::ZH => "MAC 地址",
Language::UK => "MAC-адреса",
_ => "MAC address",
}
}
Expand All @@ -228,6 +241,7 @@ pub fn source_translation(language: Language) -> &'static str {
Language::ES => "Origen",
Language::KO => "소스",
Language::ZH => "源",
Language::UK => "Джерело",
_ => "Source",
}
}
Expand All @@ -243,6 +257,7 @@ pub fn destination_translation(language: Language) -> &'static str {
Language::ES => "Destino",
Language::KO => "목적지",
Language::ZH => "目标",
Language::UK => "Призначення",
_ => "Destination",
}
}
Expand All @@ -259,6 +274,7 @@ pub fn fqdn_translation(language: Language) -> &'static str {
Language::ES => "Nombre de dominio completo",
Language::KO => "절대 도메인 네임",
Language::ZH => "FQDN",
Language::UK => "Повністю визначене доменне ім'я",
_ => "Fully qualified domain name",
}
}
Expand All @@ -275,6 +291,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str {
Language::ES => "Entidad Administrativa",
Language::KO => "관리 엔티티",
Language::ZH => "ASN 信息",
Language::UK => "Адміністративна одиниця",
_ => "Autonomous System name",
}
}
Expand All @@ -291,6 +308,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str {
Language::ES => "Datos transmitidos",
Language::KO => "수신된 데이터",
Language::ZH => "数据传输",
Language::UK => "Передані дані",
_ => "Transmitted data",
}
}
Expand All @@ -307,6 +325,7 @@ pub fn country_translation(language: Language) -> &'static str {
Language::ES => "País",
Language::KO => "국가",
Language::ZH => "国家",
Language::UK => "Країна",
_ => "Country",
}
}
Expand All @@ -323,6 +342,7 @@ pub fn domain_name_translation(language: Language) -> &'static str {
Language::ES => "Nombre de dominio",
Language::KO => "도메인 네임",
Language::ZH => "域名",
Language::UK => "Доменне ім'я",
_ => "Domain name",
}
}
Expand All @@ -339,6 +359,7 @@ pub fn only_show_favorites_translation(language: Language) -> &'static str {
Language::ES => "Mostrar solo los favoritos",
Language::KO => "즐겨찾기만 보기",
Language::ZH => "仅显示收藏",
Language::UK => "Показувати лише обрані",
_ => "Only show favorites",
}
}
Expand All @@ -355,6 +376,7 @@ pub fn search_filters_translation(language: Language) -> &'static str {
Language::ES => "Filtros de búsqueda",
Language::KO => "검색 필터",
Language::ZH => "搜索条件",
Language::UK => "Фільтри пошуку",
_ => "Search filters",
}
}
Expand All @@ -371,6 +393,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str {
Language::ES => "No hay resultados disponibles según los filtros de búsqueda especificados",
Language::KO => "해당 검색 필터로 검색된 결과가 없습니다.",
Language::ZH => "没有符合条件的条目",
Language::UK => "Немає результатів згідно з обраними фільтрами пошуку",
_ => "No result available according to the specified search filters",
}
}
Expand All @@ -392,6 +415,7 @@ pub fn showing_results_translation(
Language::ES => format!("Mostrando {start}-{end} de {total} resultados totales"),
Language::KO => format!("총 {total}개의 결과 중 {start}-{end}을(를) 보여줍니다"),
Language::ZH => format!("显示累计 {total} 条目中第 {start}-{end} 个"),
Language::UK => format!("Показано {start}-{end} з {total} загальних результатів"),
_ => format!("Showing {start}-{end} of {total} total results"),
}
}
Expand All @@ -409,6 +433,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str {
Language::ES => "Aplicar gradientes de color",
Language::KO => "그라디언트 색상 적용",
Language::ZH => "应用渐变色",
Language::UK => "Застосувати кольорові градієнти",
_ => "Apply color gradients",
}
}