Skip to content

Commit

Permalink
Merge pull request #504 from hirotake111/japanese_translation
Browse files Browse the repository at this point in the history
add Japanese translation
  • Loading branch information
GyulyVGC committed May 19, 2024
2 parents 5b01b57 + 1b72383 commit c0db799
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All Sniffnet releases with the relative changes are documented in this file.
- Russian - [#496](https://github.com/GyulyVGC/sniffnet/pull/496)
- 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)

## [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
15 changes: 14 additions & 1 deletion resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ z
ı
ł
ń
Ś
ś
Ş
ş
Expand Down Expand Up @@ -334,23 +333,28 @@ z
Expand All @@ -360,15 +364,20 @@ z
Expand All @@ -380,6 +389,7 @@ z
Expand Down Expand Up @@ -463,6 +473,7 @@ z
Expand Down Expand Up @@ -549,6 +560,7 @@ z
Expand Down Expand Up @@ -583,6 +595,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.
21 changes: 21 additions & 0 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub fn general_translation(language: Language) -> &'static str {
Language::DE => "Allgemein",
Language::PL => "Ogólne",
Language::RU => "Общие",
Language::JA => "一般",
_ => "General",
}
}
Expand All @@ -26,6 +27,7 @@ pub fn zoom_translation(language: Language) -> &'static str {
}
Language::PL => "Powiększenie",
Language::RU => "Масштаб интерфейса",
Language::JA => "ズーム",
_ => "Zoom",
}
}
Expand All @@ -40,6 +42,7 @@ pub fn mmdb_files_translation(language: Language) -> &'static str {
Language::PL => "Pliki bazy danych",
Language::RU => "Файлы базы данных",
Language::RO => "Fișiere bază de date",
Language::JA => "データベース ファイル",
_ => "Database files",
}
}
Expand All @@ -54,6 +57,7 @@ pub fn params_not_editable_translation(language: Language) -> &'static str {
Language::PL => "Następujące parametry nie mogą być modyfikowane podczas analizy",
Language::RU => "Следующие параметры не могут быть изменены во время анализа трафика",
Language::RO => "Următorii parametri nu sunt modificabili în timpul analizei",
Language::JA => "以下のパラメーターは分析中は変更できません",
_ => "The following parameters can't be modified during the analysis",
}
}
Expand All @@ -68,6 +72,7 @@ pub fn custom_style_translation(language: Language) -> &'static str {
Language::PL => "Niestandardowy styl",
Language::RU => "Свой стиль",
Language::RO => "Temă personalizată",
Language::JA => "カスタム スタイル",
_ => "Custom style",
}
}
Expand All @@ -80,6 +85,7 @@ pub fn copy_translation(language: Language) -> &'static str {
Language::DE => "Kopieren",
Language::PL => "Kopiuj",
Language::RU => "Скопировать",
Language::JA => "コピー",
_ => "Copy",
}
}
Expand All @@ -90,6 +96,7 @@ pub fn port_translation(language: Language) -> &'static str {
Language::ES => "Puerto",
Language::IT => "Porta",
Language::RU => "Порт",
Language::JA => "ポート",
_ => "Port",
}
}
Expand All @@ -104,6 +111,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str {
Language::PL => "Nieprawidłowe filtry",
Language::RU => "Неверный формат фильтров",
Language::RO => "Filtre invalide",
Language::JA => "無効なフィルター",
_ => "Invalid filters",
}
}
Expand All @@ -117,6 +125,7 @@ pub fn messages_translation(language: Language) -> &'static str {
Language::PL => "Wiadomości",
Language::RU => "Сообщения",
Language::RO => "Mesaje",
Language::JA => "メッセージ",
_ => "Messages",
}
}
Expand All @@ -131,6 +140,7 @@ pub fn link_type_translation(language: Language) -> &'static str {
Language::PL => "Rodzaj połączenia", // "Typ łącza"?
Language::RU => "Тип соединения",
Language::RO => "Tipul conexiunii",
Language::JA => "リンク タイプ",
_ => "Link type",
}
}
Expand All @@ -148,6 +158,7 @@ pub fn unsupported_link_type_translation(
Language::PL => "Rodzaj połączenia powiązany z tym adapterem nie jest jeszcze obsługiwany przez Sniffnet...",
Language::RU => "Тип соединения, связанный с этим адаптером, пока не поддерживается Sniffnet...",
Language::RO => "Tipul conexiunii asociate acestui adaptor de rețea nu este încă suportat de Sniffnet...",
Language::JA => "このアダプターのリンク タイプは Sniffnet ではまだサポートされていません...",
_ => "The link type associated with this adapter is not supported by Sniffnet yet...",
}.to_string();

Expand All @@ -166,6 +177,7 @@ pub fn style_from_file_translation(language: Language) -> &'static str {
Language::PL => "Wybierz styl z pliku",
Language::RU => "Выберите тему из файла",
Language::RO => "Selectează tema dintr-un fișier",
Language::JA => "ファイルからスタイルを選択してください",
_ => "Select style from a file",
}
}
Expand All @@ -180,6 +192,7 @@ pub fn database_from_file_translation(language: Language) -> &'static str {
Language::PL => "Wybierz plik bazy danych",
Language::RU => "Выберите файл базы данных",
Language::RO => "Selectează fișier bază de date",
Language::JA => "データベース ファイルを選択してください",
_ => "Select database file",
}
}
Expand All @@ -194,6 +207,7 @@ pub fn filter_by_host_translation(language: Language) -> &'static str {
Language::PL => "Filtruj według hosta sieciowego",
Language::RU => "Фильтр по сетевому хосту",
Language::RO => "Filtrează după host-ul de rețea",
Language::JA => "ネットワーク ホストでフィルター",
_ => "Filter by network host",
}
}
Expand All @@ -206,6 +220,7 @@ pub fn service_translation(language: Language) -> &'static str {
Language::PL => "Usługa",
Language::RU => "Сервис",
Language::RO => "Serviciu",
Language::JA => "サービス",
_ => "Service",
}
}
Expand All @@ -219,6 +234,7 @@ pub fn export_capture_translation(language: Language) -> &'static str {
Language::PL => "Eksportuj plik przechwytywania",
Language::RU => "Экспорт файла захвата",
Language::RO => "Export fișier captură",
Language::JA => "キャプチャ ファイルをエクスポート",
_ => "Export capture file",
}
}
Expand All @@ -233,6 +249,7 @@ pub fn directory_translation(language: Language) -> &'static str {
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::RU => "Директория",
Language::RO => "Director",
Language::JA => "ディレクトリー",
_ => "Directory",
}
}
Expand All @@ -246,6 +263,7 @@ pub fn select_directory_translation(language: Language) -> &'static str {
Language::PL => "Wybierz katalog docelowy", // "Wybierz folder docelowy"?
Language::RU => "Выберите директорию назначения",
Language::RO => "Selectează directorul destinație",
Language::JA => "宛先のディレクトリーを選択する",
_ => "Select destination directory",
}
}
Expand All @@ -259,6 +277,7 @@ pub fn file_name_translation(language: Language) -> &'static str {
Language::PL => "Nazwa pliku",
Language::RU => "Имя файла",
Language::RO => "Nume fișier",
Language::JA => "ファイル ネーム",
_ => "File name",
}
}
Expand All @@ -272,6 +291,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str {
Language::PL => "Tryb miniatury",
Language::RU => "Режим миниатюры",
Language::RO => "Mod thumbnail",
Language::JA => "サムネイル モード",
_ => "Thumbnail mode",
}
}
Expand All @@ -285,6 +305,7 @@ pub fn learn_more_translation(language: Language) -> &'static str {
Language::PL => "Chcesz dowiedzieć się więcej?",
Language::RU => "Хотите узнать больше?",
Language::RO => "Vrei să înveți mai multe?",
Language::JA => "もっと知りたいですか?",
_ => "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 @@ -115,6 +115,7 @@ impl Language {
| Language::PL
| Language::RU
| Language::RO
| Language::JA
)
}
}
Expand Down

0 comments on commit c0db799

Please sign in to comment.