Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/translations/translations_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,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",
Expand Down
10 changes: 5 additions & 5 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,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 => "以下参数在分析过程中不能修改",
Expand Down Expand Up @@ -202,7 +202,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 => "无效的过滤器",
Expand Down Expand Up @@ -399,7 +399,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 => "按网络主机筛选",
Expand Down Expand Up @@ -449,7 +449,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 => "导出捕获文件",
Expand Down Expand Up @@ -556,7 +556,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 => "缩略图模式",
Expand Down
15 changes: 15 additions & 0 deletions src/translations/translations_4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub fn reserved_address_translation(language: Language, info: &str) -> String {
Language::ZH_TW => format!("保留的網路位址 ({info})"),
Language::NL => format!("Gereserveerd adres ({info})"),
Language::DE => format!("Reservierte Adresse ({info})"),
Language::UZ => format!("Rezervlangan manzil ({info})"),
_ => format!("Reserved address ({info})"),
}
}
Expand All @@ -25,6 +26,7 @@ pub fn share_feedback_translation(language: Language) -> &'static str {
Language::ZH_TW => "分享您的意見回饋",
Language::NL => "Deel uw feedback",
Language::DE => "Feedback geben",
Language::UZ => "Fikr-mulohazalaringizni ulashing",
_ => "Share your feedback",
}
}
Expand All @@ -34,6 +36,7 @@ pub fn excluded_translation(language: Language) -> &'static str {
match language {
Language::EN => "Excluded",
Language::IT => "Esclusi",
Language::UZ => "Chiqarib tashlangan",
Language::ZH_TW => "已排除",
Language::NL => "Uitgesloten",
Language::DE => "Herausgefiltert",
Expand All @@ -47,6 +50,7 @@ pub fn import_capture_translation(language: Language) -> &'static str {
Language::IT => "Importa file di cattura",
Language::NL => "Importeer capture bestand",
Language::DE => "Aufzeichnungsdatei importieren",
Language::UZ => "Tahlil faylini import qilish",
_ => "Import capture file",
}
}
Expand All @@ -57,6 +61,7 @@ pub fn select_capture_translation(language: Language) -> &'static str {
Language::IT => "Seleziona file di cattura",
Language::NL => "Selecteer capture bestand",
Language::DE => "Aufzeichnungsdatei auswählen",
Language::UZ => "Tahlil faylini tanlang",
_ => "Select capture file",
}
}
Expand Down Expand Up @@ -84,6 +89,11 @@ pub fn reading_from_pcap_translation<'a>(language: Language, file: &str) -> Text
{file_name_translation}: {file}\n\n\
Bist du sicher, dass die gewählte Datei nicht leer ist?"
),
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\
Expand All @@ -98,6 +108,7 @@ pub fn data_exceeded_translation(language: Language) -> &'static str {
Language::IT => "Soglia di dati superata",
Language::NL => "Gegevenslimiet overschreden",
Language::DE => "Datenschwelle überschritten",
Language::UZ => "Ma'lumotlar chegarasidan oshib ketdi",
_ => "Data threshold exceeded",
}
}
Expand All @@ -109,6 +120,7 @@ pub fn bits_exceeded_translation(language: Language) -> &'static str {
Language::IT => "Soglia di bit superata",
Language::NL => "Bits limiet overschreden",
Language::DE => "Bitschwelle überschritten",
Language::UZ => "Bitlar chegarasidan oshib ketdi",
_ => "Bits threshold exceeded",
}
}
Expand All @@ -117,6 +129,7 @@ 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::UZ => "Bitlar",
_ => "Bits",
}
}
Expand All @@ -127,6 +140,7 @@ pub fn pause_translation(language: Language) -> &'static str {
Language::EN | Language::DE => "Pause",
Language::IT => "Pausa",
Language::NL => "Pauzeren",
Language::UZ => "To'xtatish",
_ => "Pause",
}
}
Expand All @@ -138,6 +152,7 @@ pub fn resume_translation(language: Language) -> &'static str {
Language::IT => "Riprendi",
Language::NL => "Hervatten",
Language::DE => "Fortsetzen",
Language::UZ => "Davom ettirish",
_ => "Resume",
}
}
2 changes: 1 addition & 1 deletion src/translations/types/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Expand Down
Loading