From fc6430d8417ee897bda842ab698b4954af417700 Mon Sep 17 00:00:00 2001 From: mkadir Date: Sun, 29 Jun 2025 00:07:56 +0500 Subject: [PATCH 1/4] [UPDATE] v1.4 translation & fix --- .github/workflows/rust.yml | 4 +++- src/translations/translations_2.rs | 2 +- src/translations/translations_3.rs | 10 +++++----- src/translations/translations_4.rs | 15 +++++++++++++++ 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 85f91c520..42820f4fe 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,11 +43,13 @@ jobs: - name: Install Windows dependencies if: matrix.os == 'windows' && github.event_name != 'pull_request' + env: + NPCAP_OEM_URL: ${{ secrets.NPCAP_OEM_URL }} run: | Invoke-WebRequest -Uri "https://npcap.com/dist/npcap-sdk-1.13.zip" -OutFile "C:/npcap-sdk.zip" Expand-Archive -LiteralPath C:/npcap-sdk.zip -DestinationPath C:/npcap-sdk echo "LIB=C:/npcap-sdk/Lib/x64" >> $env:GITHUB_ENV - Invoke-WebRequest -Uri ${{secrets.NPCAP_OEM_URL}} -OutFile C:/npcap-oem.exe + Invoke-WebRequest -Uri "$env:NPCAP_OEM_URL" -OutFile C:/npcap-oem.exe C:/npcap-oem.exe /S - name: fmt diff --git a/src/translations/translations_2.rs b/src/translations/translations_2.rs index 97dc6417a..b043c22d7 100644 --- a/src/translations/translations_2.rs +++ b/src/translations/translations_2.rs @@ -75,7 +75,7 @@ pub fn connection_details_translation(language: Language) -> &'static str { Language::PL => "Szczegóły połączenia", Language::FR => "Détails de la connexion", Language::JA => "接続の詳細", - Language::UZ => "Ulanish tafsilotlari", + Language::UZ => "Ulanish ma'lumotlari", Language::PT => "Detalhes da conexão", Language::VI => "Thông tin kết nối", Language::ID => "Rincian koneksi", diff --git a/src/translations/translations_3.rs b/src/translations/translations_3.rs index 25f5e4918..7ed1c2ed3 100644 --- a/src/translations/translations_3.rs +++ b/src/translations/translations_3.rs @@ -95,7 +95,7 @@ pub fn params_not_editable_translation(language: Language) -> &'static str { Language::RU => "Следующие параметры не могут быть изменены во время анализа трафика", Language::RO => "Următorii parametri nu sunt modificabili în timpul analizei", Language::JA => "以下のパラメーターは分析中は変更できません", - Language::UZ => "Tahlil vaqtida quydagi parametrlarni o'zgartirib bo'lmaydi", + Language::UZ => "Tahlil vaqtida quyidagi parametrlarni o'zgartirib bo'lmaydi", Language::SV => "Följande parametrar kan inte ändras under analysen", Language::VI => "Các tham số sau không thể bị thay đổi khi đang phân tích", Language::ZH => "以下参数在分析过程中不能修改", @@ -195,7 +195,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str { Language::RU => "Неверный формат фильтров", Language::RO => "Filtre invalide", Language::JA => "無効なフィルター", - Language::UZ => "Noto'g'ri filterlar", + Language::UZ => "Noto'g'ri filtrlar", Language::SV => "Ogiltiga filter", Language::VI => "Bộ lọc không khả dụng", Language::ZH => "无效的过滤器", @@ -385,7 +385,7 @@ pub fn filter_by_host_translation(language: Language) -> &'static str { Language::RU => "Фильтр по сетевому хосту", Language::RO => "Filtrează după host-ul de rețea", Language::JA => "ネットワーク ホストでフィルター", - Language::UZ => "Tarmoq host bo'yicha filterlash", + Language::UZ => "Tarmoq xosti bo'yicha filtrlash", Language::SV => "Filtrera efter nätverksvärd", Language::VI => "Lọc bởi máy chủ mạng", Language::ZH => "按网络主机筛选", @@ -433,7 +433,7 @@ pub fn export_capture_translation(language: Language) -> &'static str { Language::RU => "Экспорт файла захвата", Language::RO => "Export fișier captură", Language::JA => "キャプチャ ファイルをエクスポート", - Language::UZ => "Cap faylni export qilish", + Language::UZ => "Cap faylni eksport qilish", Language::SV => "Exportera inspelningsfil", Language::VI => "Xuất tập tin đã bắt", Language::ZH => "导出捕获文件", @@ -536,7 +536,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str { Language::RU => "Режим миниатюры", Language::RO => "Mod thumbnail", Language::JA => "サムネイル モード", - Language::UZ => "Eskiz rejim", + Language::UZ => "Kichik rasm rejimi", Language::SV => "Miniatyrläge", Language::VI => "Chế độ thu nhỏ", Language::ZH => "缩略图模式", diff --git a/src/translations/translations_4.rs b/src/translations/translations_4.rs index 41f96f856..db40a1594 100644 --- a/src/translations/translations_4.rs +++ b/src/translations/translations_4.rs @@ -12,6 +12,7 @@ pub fn reserved_address_translation(language: Language, info: &str) -> String { Language::PT => format!("Endereço reservado ({info})"), Language::UK => format!("Зарезервована адреса ({info})"), Language::ZH_TW => format!("保留的網路位址 ({info})"), + Language::UZ => format!("Rezervlangan manzil ({info})"), _ => format!("Reserved address ({info})"), } } @@ -21,6 +22,7 @@ pub fn share_feedback_translation(language: Language) -> &'static str { Language::EN => "Share your feedback", Language::IT => "Condividi il tuo feedback", Language::ZH_TW => "分享您的意見回饋", + Language::UZ => "Fikr-mulohazalaringizni ulashing", _ => "Share your feedback", } } @@ -30,6 +32,7 @@ pub fn excluded_translation(language: Language) -> &'static str { match language { Language::EN => "Excluded", Language::IT => "Esclusi", + Language::UZ => "Chiqarib tashlangan", Language::ZH_TW => "已排除", _ => "Excluded", } @@ -39,6 +42,7 @@ pub fn import_capture_translation(language: Language) -> &'static str { match language { Language::EN => "Import capture file", Language::IT => "Importa file di cattura", + Language::UZ => "Tahlil faylini import qilish", _ => "Import capture file", } } @@ -47,6 +51,7 @@ pub fn select_capture_translation(language: Language) -> &'static str { match language { Language::EN => "Select capture file", Language::IT => "Seleziona file di cattura", + Language::UZ => "Tahlil faylini tanlang", _ => "Select capture file", } } @@ -64,6 +69,11 @@ pub fn reading_from_pcap_translation<'a>(language: Language, file: &str) -> Text {file_name_translation}: {file}\n\n\ Sei sicuro che il file che hai selezionato non sia vuoto?" ), + Language::UZ => format!( + "Faylni o'qish...\n\n\ + {file_name_translation}: {file}\n\n\ + Fayl bo'sh emasligiga aminmisiz ?" + ), _ => format!( "Reading packets from file...\n\n\ {file_name_translation}: {file}\n\n\ @@ -76,6 +86,7 @@ pub fn data_exceeded_translation(language: Language) -> &'static str { match language { Language::EN => "Data threshold exceeded", Language::IT => "Soglia di dati superata", + Language::UZ => "Ma'lumotlar chegarasidan oshib ketdi", _ => "Data threshold exceeded", } } @@ -85,6 +96,7 @@ pub fn bits_exceeded_translation(language: Language) -> &'static str { match language { Language::EN => "Bits threshold exceeded", Language::IT => "Soglia di bit superata", + Language::UZ => "Bitlar chegarasidan oshib ketdi", _ => "Bits threshold exceeded", } } @@ -93,6 +105,7 @@ pub fn bits_exceeded_translation(language: Language) -> &'static str { pub fn bits_translation(language: Language) -> &'static str { match language { Language::EN | Language::IT => "Bits", + Language::UZ => "Bitlar", _ => "Bits", } } @@ -102,6 +115,7 @@ pub fn pause_translation(language: Language) -> &'static str { match language { Language::EN => "Pause", Language::IT => "Pausa", + Language::UZ => "To'xtatish", _ => "Pause", } } @@ -111,6 +125,7 @@ pub fn resume_translation(language: Language) -> &'static str { match language { Language::EN => "Resume", Language::IT => "Riprendi", + Language::UZ => "Davom ettirish", _ => "Resume", } } From 950dd64efe229b39587f54b862f27ef8d96ef0e2 Mon Sep 17 00:00:00 2001 From: GyulyVGC Date: Thu, 24 Jul 2025 12:37:51 +0200 Subject: [PATCH 2/4] update CHANGELOG --- CHANGELOG.md | 1 + src/translations/types/language.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8faa8aca..a7604354e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All Sniffnet releases with the relative changes are documented in this file. - Added Dutch translation 🇳🇱 ([#854](https://github.com/GyulyVGC/sniffnet/pull/854)) - Updated some of the existing translations to v1.4: - German ([#833](https://github.com/GyulyVGC/sniffnet/pull/833)) + - Uzbek ([#834](https://github.com/GyulyVGC/sniffnet/pull/834)) ## [1.4.0] - 2025-06-27 - Import PCAP files ([#795](https://github.com/GyulyVGC/sniffnet/pull/795) — fixes [#283](https://github.com/GyulyVGC/sniffnet/issues/283)) diff --git a/src/translations/types/language.rs b/src/translations/types/language.rs index 4d8dd5711..6092f077e 100644 --- a/src/translations/types/language.rs +++ b/src/translations/types/language.rs @@ -121,7 +121,7 @@ impl Language { pub fn is_up_to_date(self) -> bool { matches!( self, - Language::EN | Language::IT | Language::NL | Language::DE + Language::EN | Language::IT | Language::NL | Language::DE | Language::UZ ) } } From a1f4d65191769d5fa16934ac093ff42986655fe3 Mon Sep 17 00:00:00 2001 From: GyulyVGC Date: Thu, 24 Jul 2025 12:43:48 +0200 Subject: [PATCH 3/4] minor fix to UZ translation --- src/translations/translations_4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/translations/translations_4.rs b/src/translations/translations_4.rs index 1f167e689..2646a4fde 100644 --- a/src/translations/translations_4.rs +++ b/src/translations/translations_4.rs @@ -92,7 +92,7 @@ pub fn reading_from_pcap_translation<'a>(language: Language, file: &str) -> Text Language::UZ => format!( "Faylni o'qish...\n\n\ {file_name_translation}: {file}\n\n\ - Fayl bo'sh emasligiga aminmisiz ?" + Fayl bo'sh emasligiga aminmisiz?" ), _ => format!( "Reading packets from file...\n\n\ From 3f7846d2f215f387e9f65c6774d07f95a522d019 Mon Sep 17 00:00:00 2001 From: GyulyVGC Date: Thu, 24 Jul 2025 12:45:36 +0200 Subject: [PATCH 4/4] minor fix --- src/translations/translations_4.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/translations/translations_4.rs b/src/translations/translations_4.rs index 2646a4fde..00d8c7501 100644 --- a/src/translations/translations_4.rs +++ b/src/translations/translations_4.rs @@ -129,7 +129,6 @@ pub fn bits_exceeded_translation(language: Language) -> &'static str { pub fn bits_translation(language: Language) -> &'static str { match language { Language::EN | Language::IT | Language::NL | Language::DE => "Bits", - Language::EN | Language::IT => "Bits", Language::UZ => "Bitlar", _ => "Bits", }