Skip to content

Commit

Permalink
Merge pull request #499 from ervinpopescu/translations_v1.3
Browse files Browse the repository at this point in the history
Romanian translations for v1.3
  • Loading branch information
GyulyVGC authored May 15, 2024
2 parents c0f1f70 + c2949cd commit 5868635
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All Sniffnet releases with the relative changes are documented in this file.
- German - [#495](https://github.com/GyulyVGC/sniffnet/pull/495)
- 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)

## [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
27 changes: 23 additions & 4 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{Language, StyleType};
// This is referred to settings (General settings)
pub fn general_translation(language: Language) -> &'static str {
match language {
Language::EN => "General",
Language::EN | Language::RO => "General",
Language::ES => "Generales",
Language::IT => "Generali",
Language::FR => "Général",
Expand All @@ -21,7 +21,9 @@ pub fn general_translation(language: Language) -> &'static str {

pub fn zoom_translation(language: Language) -> &'static str {
match language {
Language::EN | Language::IT | Language::ES | Language::FR | Language::DE => "Zoom",
Language::EN | Language::IT | Language::ES | Language::FR | Language::DE | Language::RO => {
"Zoom"
}
Language::PL => "Powiększenie",
Language::RU => "Масштаб интерфейса",
_ => "Zoom",
Expand All @@ -37,6 +39,7 @@ pub fn mmdb_files_translation(language: Language) -> &'static str {
Language::DE => "Datenbank Dateien",
Language::PL => "Pliki bazy danych",
Language::RU => "Файлы базы данных",
Language::RO => "Fișiere bază de date",
_ => "Database files",
}
}
Expand All @@ -50,6 +53,7 @@ pub fn params_not_editable_translation(language: Language) -> &'static str {
Language::DE => "Die folgenden Paramter können während der Analyse nicht verändert werden",
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",
_ => "The following parameters can't be modified during the analysis",
}
}
Expand All @@ -63,6 +67,7 @@ pub fn custom_style_translation(language: Language) -> &'static str {
Language::DE => "Benutzerdefinierter Stil",
Language::PL => "Niestandardowy styl",
Language::RU => "Свой стиль",
Language::RO => "Temă personalizată",
_ => "Custom style",
}
}
Expand All @@ -71,7 +76,7 @@ pub fn copy_translation(language: Language) -> &'static str {
match language {
Language::EN => "Copy",
Language::IT | Language::ES => "Copia",
Language::FR => "Copie",
Language::FR | Language::RO => "Copie",
Language::DE => "Kopieren",
Language::PL => "Kopiuj",
Language::RU => "Скопировать",
Expand All @@ -81,7 +86,7 @@ pub fn copy_translation(language: Language) -> &'static str {

pub fn port_translation(language: Language) -> &'static str {
match language {
Language::EN | Language::FR | Language::DE | Language::PL => "Port",
Language::EN | Language::FR | Language::DE | Language::PL | Language::RO => "Port",
Language::ES => "Puerto",
Language::IT => "Porta",
Language::RU => "Порт",
Expand All @@ -98,6 +103,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str {
Language::DE => "Ungültige Filter",
Language::PL => "Nieprawidłowe filtry",
Language::RU => "Неверный формат фильтров",
Language::RO => "Filtre invalide",
_ => "Invalid filters",
}
}
Expand All @@ -110,6 +116,7 @@ pub fn messages_translation(language: Language) -> &'static str {
Language::DE => "Nachrichten",
Language::PL => "Wiadomości",
Language::RU => "Сообщения",
Language::RO => "Mesaje",
_ => "Messages",
}
}
Expand All @@ -123,6 +130,7 @@ pub fn link_type_translation(language: Language) -> &'static str {
Language::DE => "Verbindungsart",
Language::PL => "Rodzaj połączenia", // "Typ łącza"?
Language::RU => "Тип соединения",
Language::RO => "Tipul conexiunii",
_ => "Link type",
}
}
Expand All @@ -139,6 +147,7 @@ pub fn unsupported_link_type_translation(
Language::DE => "Die Verbindungsart dieses Adapters wird noch nicht von Sniffnet unterstützt",
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...",
_ => "The link type associated with this adapter is not supported by Sniffnet yet...",
}.to_string();

Expand All @@ -156,6 +165,7 @@ pub fn style_from_file_translation(language: Language) -> &'static str {
Language::DE => "Stil aus einer Datei wählen",
Language::PL => "Wybierz styl z pliku",
Language::RU => "Выберите тему из файла",
Language::RO => "Selectează tema dintr-un fișier",
_ => "Select style from a file",
}
}
Expand All @@ -169,6 +179,7 @@ pub fn database_from_file_translation(language: Language) -> &'static str {
Language::DE => "Datenbank Datei auswählen",
Language::PL => "Wybierz plik bazy danych",
Language::RU => "Выберите файл базы данных",
Language::RO => "Selectează fișier bază de date",
_ => "Select database file",
}
}
Expand All @@ -182,6 +193,7 @@ pub fn filter_by_host_translation(language: Language) -> &'static str {
Language::DE => "Nach Netzwerk-Host filtern",
Language::PL => "Filtruj według hosta sieciowego",
Language::RU => "Фильтр по сетевому хосту",
Language::RO => "Filtrează după host-ul de rețea",
_ => "Filter by network host",
}
}
Expand All @@ -193,6 +205,7 @@ pub fn service_translation(language: Language) -> &'static str {
Language::IT => "Servizio",
Language::PL => "Usługa",
Language::RU => "Сервис",
Language::RO => "Serviciu",
_ => "Service",
}
}
Expand All @@ -205,6 +218,7 @@ pub fn export_capture_translation(language: Language) -> &'static str {
Language::DE => "Aufzeichnungsdatei exportieren",
Language::PL => "Eksportuj plik przechwytywania",
Language::RU => "Экспорт файла захвата",
Language::RO => "Export fișier captură",
_ => "Export capture file",
}
}
Expand All @@ -218,6 +232,7 @@ pub fn directory_translation(language: Language) -> &'static str {
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::RU => "Директория",
Language::RO => "Director",
_ => "Directory",
}
}
Expand All @@ -230,6 +245,7 @@ pub fn select_directory_translation(language: Language) -> &'static str {
Language::DE => "Zielorder wählen",
Language::PL => "Wybierz katalog docelowy", // "Wybierz folder docelowy"?
Language::RU => "Выберите директорию назначения",
Language::RO => "Selectează directorul destinație",
_ => "Select destination directory",
}
}
Expand All @@ -242,6 +258,7 @@ pub fn file_name_translation(language: Language) -> &'static str {
Language::DE => "Dateiname",
Language::PL => "Nazwa pliku",
Language::RU => "Имя файла",
Language::RO => "Nume fișier",
_ => "File name",
}
}
Expand All @@ -254,6 +271,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str {
Language::DE => "Bild-in-Bild Modus",
Language::PL => "Tryb miniatury",
Language::RU => "Режим миниатюры",
Language::RO => "Mod thumbnail",
_ => "Thumbnail mode",
}
}
Expand All @@ -266,6 +284,7 @@ pub fn learn_more_translation(language: Language) -> &'static str {
Language::DE => "Mehr erfahren",
Language::PL => "Chcesz dowiedzieć się więcej?",
Language::RU => "Хотите узнать больше?",
Language::RO => "Vrei să înveți mai multe?",
_ => "Do you want to learn more?",
}
}
8 changes: 7 additions & 1 deletion src/translations/types/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ impl Language {
pub fn is_up_to_date(self) -> bool {
matches!(
self,
Language::FR | Language::EN | Language::IT | Language::DE | Language::PL | Language::RU
Language::FR
| Language::EN
| Language::IT
| Language::DE
| Language::PL
| Language::RU
| Language::RO
)
}
}
Expand Down

0 comments on commit 5868635

Please sign in to comment.