diff --git a/CHANGELOG.md b/CHANGELOG.md index 33a4a8b6..c1821701 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/resources/fonts/full/subset_characters.txt b/resources/fonts/full/subset_characters.txt index 8b3e0b44..45e300ea 100644 --- a/resources/fonts/full/subset_characters.txt +++ b/resources/fonts/full/subset_characters.txt @@ -131,7 +131,6 @@ z ı ł ń -Ś ś Ş ş @@ -334,23 +333,28 @@ z ろ を ん +ァ ア ィ イ エ オ カ +キ ク グ ケ コ +サ シ ジ ス ズ +セ ソ タ ダ +チ ッ テ デ @@ -360,15 +364,20 @@ z ネ バ パ +ビ +ピ フ ブ プ +ベ ペ ホ ポ マ ム メ +モ +ャ ョ ラ リ @@ -380,6 +389,7 @@ z ー 一 上 +下 不 両 丢 @@ -463,6 +473,7 @@ z 字 它 定 +宛 家 将 小 @@ -549,6 +560,7 @@ z 滤 潜 点 +無 版 率 生 @@ -583,6 +595,7 @@ z 联 能 自 +般 色 节 藏 diff --git a/resources/fonts/subset/sarasa-mono-sc-bold.subset.ttf b/resources/fonts/subset/sarasa-mono-sc-bold.subset.ttf index 8d85fe7e..46065e19 100644 Binary files a/resources/fonts/subset/sarasa-mono-sc-bold.subset.ttf and b/resources/fonts/subset/sarasa-mono-sc-bold.subset.ttf differ diff --git a/resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf b/resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf index 964f94ea..429da8b0 100644 Binary files a/resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf and b/resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf differ diff --git a/src/translations/translations_3.rs b/src/translations/translations_3.rs index 3a2a2bdf..e0916ff4 100644 --- a/src/translations/translations_3.rs +++ b/src/translations/translations_3.rs @@ -15,6 +15,7 @@ pub fn general_translation(language: Language) -> &'static str { Language::DE => "Allgemein", Language::PL => "Ogólne", Language::RU => "Общие", + Language::JA => "一般", _ => "General", } } @@ -26,6 +27,7 @@ pub fn zoom_translation(language: Language) -> &'static str { } Language::PL => "Powiększenie", Language::RU => "Масштаб интерфейса", + Language::JA => "ズーム", _ => "Zoom", } } @@ -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", } } @@ -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", } } @@ -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", } } @@ -80,6 +85,7 @@ pub fn copy_translation(language: Language) -> &'static str { Language::DE => "Kopieren", Language::PL => "Kopiuj", Language::RU => "Скопировать", + Language::JA => "コピー", _ => "Copy", } } @@ -90,6 +96,7 @@ pub fn port_translation(language: Language) -> &'static str { Language::ES => "Puerto", Language::IT => "Porta", Language::RU => "Порт", + Language::JA => "ポート", _ => "Port", } } @@ -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", } } @@ -117,6 +125,7 @@ pub fn messages_translation(language: Language) -> &'static str { Language::PL => "Wiadomości", Language::RU => "Сообщения", Language::RO => "Mesaje", + Language::JA => "メッセージ", _ => "Messages", } } @@ -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", } } @@ -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(); @@ -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", } } @@ -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", } } @@ -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", } } @@ -206,6 +220,7 @@ pub fn service_translation(language: Language) -> &'static str { Language::PL => "Usługa", Language::RU => "Сервис", Language::RO => "Serviciu", + Language::JA => "サービス", _ => "Service", } } @@ -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", } } @@ -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", } } @@ -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", } } @@ -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", } } @@ -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", } } @@ -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?", } } diff --git a/src/translations/types/language.rs b/src/translations/types/language.rs index f2c7b45f..b397f3fa 100644 --- a/src/translations/types/language.rs +++ b/src/translations/types/language.rs @@ -115,6 +115,7 @@ impl Language { | Language::PL | Language::RU | Language::RO + | Language::JA ) } }