Skip to content

Commit d2566f8

Browse files
committed
minor fixes to HU and FA translations; updated CHANGELOG
1 parent 7c32877 commit d2566f8

9 files changed

Lines changed: 22 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All Sniffnet releases with the relative changes are documented in this file.
55
## [UNRELEASED]
66
- Support CIDR ranges in imported IP blacklists ([#1181](https://github.com/GyulyVGC/sniffnet/pull/1181))
77
- Show number of IP addresses and CIDR ranges in imported IP blacklists ([#1183](https://github.com/GyulyVGC/sniffnet/pull/1183))
8+
- Added Hungarian translation 🇭🇺 ([#1197](https://github.com/GyulyVGC/sniffnet/pull/1197))
89
- Updated some of the existing translations to v1.5:
910
- Ukrainian ([#1039](https://github.com/GyulyVGC/sniffnet/pull/1039))
1011
- German ([#1122](https://github.com/GyulyVGC/sniffnet/pull/1122))
@@ -13,6 +14,7 @@ All Sniffnet releases with the relative changes are documented in this file.
1314
- Indonesian ([#1145](https://github.com/GyulyVGC/sniffnet/pull/1145))
1415
- Swedish ([#1068](https://github.com/GyulyVGC/sniffnet/pull/1068))
1516
- Greek ([#1175](https://github.com/GyulyVGC/sniffnet/pull/1175))
17+
- Persian ([#1196](https://github.com/GyulyVGC/sniffnet/pull/1196))
1618
- Fix unseen hosts and services not appearing dimmed in thumbnail mode (fixes [#1142](https://github.com/GyulyVGC/sniffnet/issues/1142))
1719
- Fix `X-AppImage-Version` field in Linux AppImage metadata to correctly reflect the app version ([#1174](https://github.com/GyulyVGC/sniffnet/pull/1174) — fixes [#1003](https://github.com/GyulyVGC/sniffnet/issues/1003))
1820

resources/fonts/full/subset_characters.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ z
9898
Â
9999
Ä
100100
Å
101+
É
101102
Ê
102103
Î
103104
Ö
104105
×
106+
Ú
105107
Ü
106108
à
107109
á
@@ -141,6 +143,7 @@ z
141143
ı
142144
ł
143145
ń
146+
ő
144147
ř
145148
ś
146149
Ş
@@ -149,6 +152,7 @@ z
149152
ť
150153
ũ
151154
ů
155+
ű
152156
Ź
153157
ź
154158
ż
@@ -351,6 +355,7 @@ z
351355
352356
353357
358+
354359
355360
356361
288 Bytes
Binary file not shown.

src/gui/pages/inspect_page.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use iced::widget::scrollable::Direction;
44
use iced::widget::text::LineHeight;
55
use iced::widget::text_input::Side;
66
use iced::widget::tooltip::Position;
7-
use iced::widget::{button, combo_box, text_input, ComboBox, Space, Toggler, Tooltip};
87
use iced::widget::{Button, Column, Container, Row, Scrollable, Text, TextInput};
9-
use iced::{alignment, Alignment, Element, Length, Padding, Pixels};
8+
use iced::widget::{ComboBox, Space, Toggler, Tooltip, button, combo_box, text_input};
9+
use iced::{Alignment, Element, Length, Padding, Pixels, alignment};
1010

1111
use crate::gui::components::tab::get_pages_tabs;
1212
use crate::gui::components::types::my_modal::MyModal;

src/translations/translations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
use iced::widget::Text;
44

5-
use crate::translations::types::language::Language;
65
use crate::StyleType;
6+
use crate::translations::types::language::Language;
77

88
// pub fn choose_adapters_translation<'a>(language: Language) -> Text<'a, StyleType> {
99
// Text::new(match language {
@@ -646,7 +646,7 @@ pub fn no_addresses_translation(language: Language) -> &'static str {
646646
}
647647
Language::HU => {
648648
"Nem megfigyelhető a forgalom mivel a kiválasztott adapternek nincs aktív címe...\n\n\
649-
Ha biztos vagy benne, hogy csatlakozva vagy az internethet, próbálj meg egy másik adaptert használni."
649+
Ha biztos vagy benne, hogy csatlakozva vagy az internethez, próbálj meg egy másik adaptert használni."
650650
}
651651
}
652652
}
@@ -2449,7 +2449,7 @@ pub fn no_notifications_received_translation<'a>(language: Language) -> Text<'a,
24492449
}
24502450
Language::HU => {
24512451
"Semmi látnivaló...\n\n\
2452-
Amint érkezik egy értesítés, azt itt fogod látni."
2452+
Amint érkezik egy értesítés, azt itt fogod látni"
24532453
}
24542454
})
24552455
}

src/translations/translations_3.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ pub fn unsupported_link_type_translation(language: Language) -> &'static str {
356356
Language::EL => {
357357
"Ο τύπος σύνδεσης που σχετίζεται με αυτόν τον προσαρμογέα δεν υποστηρίζεται ακόμη από το Sniffnet..."
358358
}
359-
Language::HU => "Az ezzel az adapterrel asszociált link típust még nem támogatja a Sniffnet...",
359+
Language::HU => {
360+
"Az ezzel az adapterrel asszociált link típust még nem támogatja a Sniffnet..."
361+
}
360362
_ => "The link type associated with this adapter is not supported by Sniffnet yet...",
361363
}
362364
}

src/translations/translations_4.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ pub fn reading_from_pcap_translation(language: Language) -> &'static str {
142142
"Čtení paketů ze souuboru...\n\n\
143143
Jste si jistý že vybraný soubor není prázdný?"
144144
}
145-
// Language::FA => {
146-
// "در حال خواندن بسته‌ها از فایل...\n\n\
147-
// مطمئن هستید فایلی که انتخاب کرده‌اید خالی نیست؟"
148-
// }
145+
// Language::FA => {
146+
// "در حال خواندن بسته‌ها از فایل...\n\n\
147+
// مطمئن هستید فایلی که انتخاب کرده‌اید خالی نیست؟"
148+
// }
149149
Language::IT => {
150150
"Lettura pacchetti da file...\n\n\
151151
Sei sicuro che il file che hai selezionato non sia vuoto?"

src/translations/translations_5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub fn blacklisted_transmitted_translation(language: Language) -> &'static str {
9898
match language {
9999
Language::EN => "New data exchanged from a blacklisted IP",
100100
Language::IT => "Nuovi dati scambiati da un IP in blacklist",
101-
// Language::FA => "داده‌های جدیدی از یک IP موجود در لیست سیاه مبادله شد.",
101+
// Language::FA => "داده‌های جدیدی از یک IP موجود در لیست سیاه مبادله شد",
102102
Language::DE => "Neue Daten von einer IP auf der Blacklist ausgetauscht",
103103
Language::ZH => "与黑名单 IP 交换的新数据",
104104
Language::ZH_TW => "與黑名單 IP 交換的新資料",

src/translations/types/language.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
use std::fmt;
22

3-
use iced::widget::svg::Handle;
43
use iced::widget::Svg;
4+
use iced::widget::svg::Handle;
55
use serde::{Deserialize, Serialize};
66

7+
use crate::StyleType;
78
use crate::countries::flags_pictures::{
89
CN, CZ, DE, ES, FI, FR, GB, GR, HU, ICONS_SIZE_BIG, ID, IT, JP, KR, NL, PL, PT, RO, RU, SE, TR,
910
TW, UA, UZ, VN,
1011
};
11-
use crate::StyleType;
1212

1313
/// This enum defines the available languages.
1414
#[derive(PartialEq, Eq, Clone, Copy, Debug, Serialize, Deserialize, Hash, Default)]

0 commit comments

Comments
 (0)