Skip to content

Commit

Permalink
Merge pull request #241 from ervinpopescu/main
Browse files Browse the repository at this point in the history
added Romanian translation v1.2
  • Loading branch information
GyulyVGC authored Jun 3, 2023
2 parents b4d13b6 + fadeae5 commit 6eb48d5
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
1 change: 1 addition & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,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.
10 changes: 1 addition & 9 deletions src/gui/pages/settings_language_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message> {
.push(vertical_space(Fixed(40.0)))
.push(col_language_radio_all);

if [
Language::EL,
Language::FR,
Language::PL,
Language::PT,
Language::RO,
]
.contains(&sniffer.language)
{
if [Language::EL, Language::FR, Language::PL, Language::PT].contains(&sniffer.language) {
content = content.push(vertical_space(Fixed(40.0))).push(
Container::new(
Text::new("The selected language is not fully updated to version 1.2").font(font),
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 @@ -16,6 +16,7 @@ pub fn new_version_available_translation(language: Language) -> &'static str {
Language::KO => "GitHub에 새로운 버전이 출시되었습니다.",
Language::ZH => "新版本已在 Github 发布",
Language::UK => "Нова версія доступна на GitHub",
Language::RO => "O versiune nouă este disponibilă pe GitHub",
_ => "A newer version is available on GitHub",
}
}
Expand All @@ -35,6 +36,7 @@ pub fn inspect_translation(language: Language) -> &'static str {
Language::KO => "검사",
Language::ZH => "检索",
Language::UK => "Інспектувати",
Language::RO => "Inspectați",
_ => "Inspect",
}
}
Expand All @@ -52,6 +54,7 @@ pub fn connection_details_translation(language: Language) -> &'static str {
Language::KO => "연결 상세",
Language::ZH => "连接详情",
Language::UK => "Деталі зʼєднання",
Language::RO => "Detalii conexiune",
_ => "Connection details",
}
}
Expand All @@ -69,6 +72,7 @@ pub fn dropped_packets_translation(language: Language) -> &'static str {
Language::KO => "손실 패킷",
Language::ZH => "丢包计数",
Language::UK => "Пропущені пакети",
Language::RO => "Pachete pierdute",
_ => "Dropped packets",
}
}
Expand All @@ -86,6 +90,7 @@ pub fn data_representation_translation(language: Language) -> &'static str {
Language::KO => "데이터 단위",
Language::ZH => "图表数据",
Language::UK => "Представлення даних",
Language::RO => "Reprezentarea datelor",
_ => "Data representation",
}
}
Expand All @@ -103,6 +108,7 @@ pub fn host_translation(language: Language) -> &'static str {
Language::KO => "네트워크 호스트",
Language::ZH => "主机",
Language::UK => "Мережевий хост",
Language::RO => "Host rețea",
_ => "Network host",
}
}
Expand All @@ -120,6 +126,7 @@ pub fn only_top_30_hosts_translation(language: Language) -> &'static str {
Language::KO => "상위 30개의 호스트만 노출됩니다",
Language::ZH => "仅展示前 30 个主机",
Language::UK => "Лише верхні 30 хостів відображаються тут",
Language::RO => "Doar primele 30 de host-uri sunt afișate aici",
_ => "Only the top 30 hosts are displayed here",
}
}
Expand All @@ -137,6 +144,7 @@ pub fn sort_by_translation(language: Language) -> &'static str {
Language::KO => "정렬",
Language::ZH => "排序",
Language::UK => "Сортувати за",
Language::RO => "Filtrează după",
_ => "Sort by",
}
}
Expand All @@ -154,6 +162,7 @@ pub fn local_translation(language: Language) -> String {
Language::KO => "로컬 네트워크",
Language::ZH => "局域网",
Language::UK => "Локальна мережа",
Language::RO => "Rețea locală",
_ => "Local network",
}
.to_string()
Expand All @@ -172,6 +181,7 @@ pub fn unknown_translation(language: Language) -> String {
Language::KO => "알 수 없는 위치",
Language::ZH => "未知",
Language::UK => "Невідома локація",
Language::RO => "Locație necunoscută",
_ => "Unknown location",
}
.to_string()
Expand All @@ -190,6 +200,7 @@ pub fn your_network_adapter_translation(language: Language) -> String {
Language::KO => "네트워크 어댑터",
Language::ZH => "你的网络适配器",
Language::UK => "Ваш мережевий адаптер",
Language::RO => "Adaptorul dvs. de rețea",
_ => "Your network adapter",
}
.to_string()
Expand All @@ -208,6 +219,7 @@ pub fn socket_address_translation(language: Language) -> &'static str {
Language::KO => "소켓 어드레스",
Language::ZH => "套接字地址",
Language::UK => "Адреса сокета",
Language::RO => "Adresa socket-ului",
_ => "Socket address",
}
}
Expand All @@ -225,6 +237,7 @@ pub fn mac_address_translation(language: Language) -> &'static str {
Language::KO => "맥 어드레스",
Language::ZH => "MAC 地址",
Language::UK => "MAC-адреса",
Language::RO => "Adresa MAC",
_ => "MAC address",
}
}
Expand All @@ -242,6 +255,7 @@ pub fn source_translation(language: Language) -> &'static str {
Language::KO => "소스",
Language::ZH => "源",
Language::UK => "Джерело",
Language::RO => "Sursă",
_ => "Source",
}
}
Expand All @@ -258,6 +272,7 @@ pub fn destination_translation(language: Language) -> &'static str {
Language::KO => "목적지",
Language::ZH => "目标",
Language::UK => "Призначення",
Language::RO => "Destinație",
_ => "Destination",
}
}
Expand All @@ -275,6 +290,7 @@ pub fn fqdn_translation(language: Language) -> &'static str {
Language::KO => "절대 도메인 네임",
Language::ZH => "FQDN",
Language::UK => "Повністю визначене доменне ім'я",
Language::RO => "Nume de domeniu complet calificat",
_ => "Fully qualified domain name",
}
}
Expand All @@ -292,6 +308,7 @@ pub fn administrative_entity_translation(language: Language) -> &'static str {
Language::KO => "관리 엔티티",
Language::ZH => "ASN 信息",
Language::UK => "Адміністративна одиниця",
Language::RO => "Numele sistemului autonom",
_ => "Autonomous System name",
}
}
Expand All @@ -309,6 +326,7 @@ pub fn transmitted_data_translation(language: Language) -> &'static str {
Language::KO => "수신된 데이터",
Language::ZH => "数据传输",
Language::UK => "Передані дані",
Language::RO => "Date transmise",
_ => "Transmitted data",
}
}
Expand All @@ -326,6 +344,7 @@ pub fn country_translation(language: Language) -> &'static str {
Language::KO => "국가",
Language::ZH => "国家",
Language::UK => "Країна",
Language::RO => "Țară",
_ => "Country",
}
}
Expand All @@ -343,6 +362,7 @@ pub fn domain_name_translation(language: Language) -> &'static str {
Language::KO => "도메인 네임",
Language::ZH => "域名",
Language::UK => "Доменне ім'я",
Language::RO => "Nume domeniu",
_ => "Domain name",
}
}
Expand All @@ -360,6 +380,7 @@ pub fn only_show_favorites_translation(language: Language) -> &'static str {
Language::KO => "즐겨찾기만 보기",
Language::ZH => "仅显示收藏",
Language::UK => "Показувати лише обрані",
Language::RO => "Arată doar favorite",
_ => "Only show favorites",
}
}
Expand All @@ -377,6 +398,7 @@ pub fn search_filters_translation(language: Language) -> &'static str {
Language::KO => "검색 필터",
Language::ZH => "搜索条件",
Language::UK => "Фільтри пошуку",
Language::RO => "Filtre de căutare",
_ => "Search filters",
}
}
Expand All @@ -394,6 +416,7 @@ pub fn no_search_results_translation(language: Language) -> &'static str {
Language::KO => "해당 검색 필터로 검색된 결과가 없습니다.",
Language::ZH => "没有符合条件的条目",
Language::UK => "Немає результатів згідно з обраними фільтрами пошуку",
Language::RO => "Niciun rezultat disponibil conform filtrelor de căutare specificate",
_ => "No result available according to the specified search filters",
}
}
Expand All @@ -416,6 +439,7 @@ pub fn showing_results_translation(
Language::KO => format!("총 {total}개의 결과 중 {start}-{end}을(를) 보여줍니다"),
Language::ZH => format!("显示累计 {total} 条目中第 {start}-{end} 个"),
Language::UK => format!("Показано {start}-{end} з {total} загальних результатів"),
Language::RO => format!("Se afișează {start}-{end} din {total} rezultate"),
_ => format!("Showing {start}-{end} of {total} total results"),
}
}
Expand All @@ -434,6 +458,7 @@ pub fn color_gradients_translation(language: Language) -> &'static str {
Language::KO => "그라디언트 색상 적용",
Language::ZH => "应用渐变色",
Language::UK => "Застосувати кольорові градієнти",
Language::RO => "Aplicați gradient de culoare",
_ => "Apply color gradients",
}
}

0 comments on commit 6eb48d5

Please sign in to comment.