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

translations updated with v 1.3 for Uzbek lang #510

Merged
merged 3 commits into from
May 23, 2024
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 @@ -10,6 +10,7 @@ All Sniffnet releases with the relative changes are documented in this file.
- Polish - [#498](https://github.com/GyulyVGC/sniffnet/pull/498)
- Romanian - [#499](https://github.com/GyulyVGC/sniffnet/pull/499)
- Japanese - [#504](https://github.com/GyulyVGC/sniffnet/pull/504)
- Uzbek - [#510](https://github.com/GyulyVGC/sniffnet/pull/510)

## [1.3.0] - 2024-04-08
- Introduced thumbnail mode, enabling users to keep an eye on Sniffnet while doing other tasks ([#484](https://github.com/GyulyVGC/sniffnet/pull/484))
Expand Down
25 changes: 23 additions & 2 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub fn general_translation(language: Language) -> &'static str {
Language::PL => "Ogólne",
Language::RU => "Общие",
Language::JA => "一般",
Language::UZ => "Asosiy",
_ => "General",
}
}
Expand All @@ -28,6 +29,7 @@ pub fn zoom_translation(language: Language) -> &'static str {
Language::PL => "Powiększenie",
Language::RU => "Масштаб интерфейса",
Language::JA => "ズーム",
Language::UZ => "Kattalashtirish",
_ => "Zoom",
}
}
Expand All @@ -43,6 +45,7 @@ pub fn mmdb_files_translation(language: Language) -> &'static str {
Language::RU => "Файлы базы данных",
Language::RO => "Fișiere bază de date",
Language::JA => "データベース ファイル",
Language::UZ => "Ma'lumotlar bazasi fayllari",
_ => "Database files",
}
}
Expand All @@ -58,6 +61,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",
_ => "The following parameters can't be modified during the analysis",
}
}
Expand All @@ -73,6 +77,7 @@ pub fn custom_style_translation(language: Language) -> &'static str {
Language::RU => "Свой стиль",
Language::RO => "Temă personalizată",
Language::JA => "カスタム スタイル",
Language::UZ => "Moslashtirilgan uslub",
_ => "Custom style",
}
}
Expand All @@ -86,13 +91,16 @@ pub fn copy_translation(language: Language) -> &'static str {
Language::PL => "Kopiuj",
Language::RU => "Скопировать",
Language::JA => "コピー",
Language::UZ => "Nusxalash",
_ => "Copy",
}
}

pub fn port_translation(language: Language) -> &'static str {
match language {
Language::EN | Language::FR | Language::DE | Language::PL | Language::RO => "Port",
Language::EN | Language::FR | Language::DE | Language::PL | Language::RO | Language::UZ => {
"Port"
}
Language::ES => "Puerto",
Language::IT => "Porta",
Language::RU => "Порт",
Expand All @@ -112,6 +120,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str {
Language::RU => "Неверный формат фильтров",
Language::RO => "Filtre invalide",
Language::JA => "無効なフィルター",
Language::UZ => "Noto'g'ri filterlar",
_ => "Invalid filters",
}
}
Expand All @@ -126,6 +135,7 @@ pub fn messages_translation(language: Language) -> &'static str {
Language::RU => "Сообщения",
Language::RO => "Mesaje",
Language::JA => "メッセージ",
Language::UZ => "Xabarlar",
_ => "Messages",
}
}
Expand All @@ -141,6 +151,7 @@ pub fn link_type_translation(language: Language) -> &'static str {
Language::RU => "Тип соединения",
Language::RO => "Tipul conexiunii",
Language::JA => "リンク タイプ",
Language::UZ => "Havola turi",
_ => "Link type",
}
}
Expand All @@ -159,6 +170,7 @@ pub fn unsupported_link_type_translation(
Language::RU => "Тип соединения, связанный с этим адаптером, пока не поддерживается Sniffnet...",
Language::RO => "Tipul conexiunii asociate acestui adaptor de rețea nu este încă suportat de Sniffnet...",
Language::JA => "このアダプターのリンク タイプは Sniffnet ではまだサポートされていません...",
Language::UZ => "Ushbu adapter bilan bog'langan havola turi hozircha Sniffnet tomonidan qo'llab quvvatlanmaydi",
_ => "The link type associated with this adapter is not supported by Sniffnet yet...",
}.to_string();

Expand All @@ -178,6 +190,7 @@ pub fn style_from_file_translation(language: Language) -> &'static str {
Language::RU => "Выберите тему из файла",
Language::RO => "Selectează tema dintr-un fișier",
Language::JA => "ファイルからスタイルを選択してください",
Language::UZ => "Fayldan uslubni tanlang",
_ => "Select style from a file",
}
}
Expand All @@ -193,6 +206,7 @@ pub fn database_from_file_translation(language: Language) -> &'static str {
Language::RU => "Выберите файл базы данных",
Language::RO => "Selectează fișier bază de date",
Language::JA => "データベース ファイルを選択してください",
Language::UZ => "Ma'lumotlar bazasi faylini tanlang",
_ => "Select database file",
}
}
Expand All @@ -208,6 +222,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",
_ => "Filter by network host",
}
}
Expand All @@ -221,6 +236,7 @@ pub fn service_translation(language: Language) -> &'static str {
Language::RU => "Сервис",
Language::RO => "Serviciu",
Language::JA => "サービス",
Language::UZ => "Xizmat",
_ => "Service",
}
}
Expand All @@ -235,6 +251,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",
_ => "Export capture file",
}
}
Expand All @@ -246,7 +263,7 @@ pub fn directory_translation(language: Language) -> &'static str {
Language::IT => "Cartella",
Language::FR => "Répertoire",
Language::DE => "Ordner",
Language::PL => "Katalog", // Katalog usually refers to Linux based directory while "Folder" is more common between Windows users (e.g. windows explorer refers to directories as "Folders")
Language::PL | Language::UZ => "Katalog",
Language::RU => "Директория",
Language::RO => "Director",
Language::JA => "ディレクトリー",
Expand All @@ -264,6 +281,7 @@ pub fn select_directory_translation(language: Language) -> &'static str {
Language::RU => "Выберите директорию назначения",
Language::RO => "Selectează directorul destinație",
Language::JA => "宛先のディレクトリーを選択する",
Language::UZ => "Manzil katalogni tanlang",
_ => "Select destination directory",
}
}
Expand All @@ -278,6 +296,7 @@ pub fn file_name_translation(language: Language) -> &'static str {
Language::RU => "Имя файла",
Language::RO => "Nume fișier",
Language::JA => "ファイル ネーム",
Language::UZ => "Fayl nomi",
_ => "File name",
}
}
Expand All @@ -292,6 +311,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str {
Language::RU => "Режим миниатюры",
Language::RO => "Mod thumbnail",
Language::JA => "サムネイル モード",
Language::UZ => "Eskiz rejim",
_ => "Thumbnail mode",
}
}
Expand All @@ -306,6 +326,7 @@ pub fn learn_more_translation(language: Language) -> &'static str {
Language::RU => "Хотите узнать больше?",
Language::RO => "Vrei să înveți mai multe?",
Language::JA => "もっと知りたいですか?",
Language::UZ => "Ko'proq bilishni hohlaysizmi?",
_ => "Do you want to learn more?",
}
}
1 change: 1 addition & 0 deletions src/translations/types/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl Language {
| Language::RU
| Language::RO
| Language::JA
| Language::UZ
)
}
}
Expand Down