Skip to content

Commit

Permalink
Merge pull request #575 from Embers-of-the-Fire/patch-1
Browse files Browse the repository at this point in the history
[I18N: ZH] Translate V1.3
  • Loading branch information
GyulyVGC authored Aug 2, 2024
2 parents d7a9089 + 48291cc commit 3f6f07b
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All Sniffnet releases with the relative changes are documented in this file.

## [UNRELEASED]
- Updated Chinese translation to v1.3 ([#575](https://github.com/GyulyVGC/sniffnet/pull/575))

## [1.3.1] - 2024-07-22
- Thumbnail mode improvements ([#512](https://github.com/GyulyVGC/sniffnet/pull/512))
- Support IPinfo ASN and Country databases ([#558](https://github.com/GyulyVGC/sniffnet/pull/558) — fixes [#533](https://github.com/GyulyVGC/sniffnet/issues/533))
Expand Down
30 changes: 30 additions & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ z
Expand Down Expand Up @@ -419,11 +420,13 @@ z
使
Expand All @@ -432,20 +435,24 @@ z
Expand All @@ -462,10 +469,12 @@ z
Expand All @@ -476,8 +485,10 @@ z
Expand All @@ -486,9 +497,12 @@ z
Expand All @@ -506,13 +520,18 @@ z
Expand All @@ -529,6 +548,7 @@ z
Expand All @@ -538,10 +558,12 @@ z
Expand All @@ -567,6 +589,7 @@ z
Expand All @@ -577,11 +600,14 @@ z
Expand All @@ -591,6 +617,7 @@ z
Expand All @@ -599,6 +626,7 @@ z
Expand Down Expand Up @@ -637,11 +665,13 @@ 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.
21 changes: 21 additions & 0 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub fn general_translation(language: Language) -> &'static str {
Language::JA => "一般",
Language::UZ => "Asosiy",
Language::SV => "Allmänt",
Language::ZH => "通用",
_ => "General",
}
}
Expand All @@ -37,6 +38,7 @@ pub fn zoom_translation(language: Language) -> &'static str {
Language::RU => "Масштаб интерфейса",
Language::JA => "ズーム",
Language::UZ => "Kattalashtirish",
Language::ZH => "缩放",
_ => "Zoom",
}
}
Expand All @@ -55,6 +57,7 @@ pub fn mmdb_files_translation(language: Language) -> &'static str {
Language::JA => "データベース ファイル",
Language::UZ => "Ma'lumotlar bazasi fayllari",
Language::SV => "Databasfiler",
Language::ZH => "数据库文件",
_ => "Database files",
}
}
Expand All @@ -73,6 +76,7 @@ pub fn params_not_editable_translation(language: Language) -> &'static str {
Language::JA => "以下のパラメーターは分析中は変更できません",
Language::UZ => "Tahlil vaqtida quydagi parametrlarni o'zgartirib bo'lmaydi",
Language::SV => "Följande parametrar kan inte ändras under analysen",
Language::ZH => "以下参数在分析过程中不能修改",
_ => "The following parameters can't be modified during the analysis",
}
}
Expand All @@ -91,6 +95,7 @@ pub fn custom_style_translation(language: Language) -> &'static str {
Language::JA => "カスタム スタイル",
Language::UZ => "Moslashtirilgan uslub",
Language::SV => "Anpassad stil",
Language::ZH => "自定义样式",
_ => "Custom style",
}
}
Expand All @@ -107,6 +112,7 @@ pub fn copy_translation(language: Language) -> &'static str {
Language::JA => "コピー",
Language::UZ => "Nusxalash",
Language::SV => "Kopia",
Language::ZH => "复制",
_ => "Copy",
}
}
Expand All @@ -125,6 +131,7 @@ pub fn port_translation(language: Language) -> &'static str {
Language::IT => "Porta",
Language::RU => "Порт",
Language::JA => "ポート",
Language::ZH => "端口",
_ => "Port",
}
}
Expand All @@ -143,6 +150,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str {
Language::JA => "無効なフィルター",
Language::UZ => "Noto'g'ri filterlar",
Language::SV => "Ogiltiga filter",
Language::ZH => "无效的过滤器",
_ => "Invalid filters",
}
}
Expand All @@ -160,6 +168,7 @@ pub fn messages_translation(language: Language) -> &'static str {
Language::JA => "メッセージ",
Language::UZ => "Xabarlar",
Language::SV => "Meddelanden",
Language::ZH => "信息",
_ => "Messages",
}
}
Expand All @@ -178,6 +187,7 @@ pub fn link_type_translation(language: Language) -> &'static str {
Language::JA => "リンク タイプ",
Language::UZ => "Havola turi",
Language::SV => "Länktyp",
Language::ZH => "链接类型",
_ => "Link type",
}
}
Expand All @@ -199,6 +209,7 @@ pub fn unsupported_link_type_translation(
Language::JA => "このアダプターのリンク タイプは Sniffnet ではまだサポートされていません...",
Language::UZ => "Ushbu adapter bilan bog'langan havola turi hozircha Sniffnet tomonidan qo'llab quvvatlanmaydi...",
Language::SV => "Länktypen associerad med denna adapter stöds inte av Sniffnet än...",
Language::ZH => "Sniffnet 尚不支持与此适配器关联的链接类型...",
_ => "The link type associated with this adapter is not supported by Sniffnet yet...",
};

Expand All @@ -222,6 +233,7 @@ pub fn style_from_file_translation(language: Language) -> &'static str {
Language::JA => "ファイルからスタイルを選択してください",
Language::UZ => "Fayldan uslubni tanlang",
Language::SV => "Välj stil från en fil",
Language::ZH => "从文件中选择样式",
_ => "Select style from a file",
}
}
Expand All @@ -240,6 +252,7 @@ pub fn database_from_file_translation(language: Language) -> &'static str {
Language::JA => "データベース ファイルを選択してください",
Language::UZ => "Ma'lumotlar bazasi faylini tanlang",
Language::SV => "Välj databasfil",
Language::ZH => "选择数据库文件",
_ => "Select database file",
}
}
Expand All @@ -258,6 +271,7 @@ pub fn filter_by_host_translation(language: Language) -> &'static str {
Language::JA => "ネットワーク ホストでフィルター",
Language::UZ => "Tarmoq host bo'yicha filterlash",
Language::SV => "Filtrera efter nätverksvärd",
Language::ZH => "按网络主机筛选",
_ => "Filter by network host",
}
}
Expand All @@ -273,6 +287,7 @@ pub fn service_translation(language: Language) -> &'static str {
Language::RO => "Serviciu",
Language::JA => "サービス",
Language::UZ => "Xizmat",
Language::ZH => "服务",
_ => "Service",
}
}
Expand All @@ -290,6 +305,7 @@ pub fn export_capture_translation(language: Language) -> &'static str {
Language::JA => "キャプチャ ファイルをエクスポート",
Language::UZ => "Cap faylni export qilish",
Language::SV => "Exportera inspelningsfil",
Language::ZH => "导出捕获文件",
_ => "Export capture file",
}
}
Expand All @@ -306,6 +322,7 @@ pub fn directory_translation(language: Language) -> &'static str {
Language::RU => "Директория",
Language::RO => "Director",
Language::JA => "ディレクトリー",
Language::ZH => "目录",
_ => "Directory",
}
}
Expand All @@ -323,6 +340,7 @@ pub fn select_directory_translation(language: Language) -> &'static str {
Language::JA => "宛先のディレクトリーを選択する",
Language::UZ => "Manzil katalogni tanlang",
Language::SV => "Välj målkatalog",
Language::ZH => "选择目标目录",
_ => "Select destination directory",
}
}
Expand All @@ -340,6 +358,7 @@ pub fn file_name_translation(language: Language) -> &'static str {
Language::JA => "ファイル ネーム",
Language::UZ => "Fayl nomi",
Language::SV => "Filnamn",
Language::ZH => "文件名",
_ => "File name",
}
}
Expand All @@ -357,6 +376,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str {
Language::JA => "サムネイル モード",
Language::UZ => "Eskiz rejim",
Language::SV => "Miniatyrläge",
Language::ZH => "缩略图模式",
_ => "Thumbnail mode",
}
}
Expand All @@ -374,6 +394,7 @@ pub fn learn_more_translation(language: Language) -> &'static str {
Language::JA => "もっと知りたいですか?",
Language::UZ => "Ko'proq bilishni hohlaysizmi?",
Language::SV => "Vill du veta mer?",
Language::ZH => "想知道更多吗?",
_ => "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 @@ -118,6 +118,7 @@ impl Language {
| Language::JA
| Language::UZ
| Language::SV
| Language::ZH
)
}
}
Expand Down

0 comments on commit 3f6f07b

Please sign in to comment.