Skip to content

Commit

Permalink
added Persian translation for v1.3 (commented: RTL not supported yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed May 31, 2024
1 parent 2e88334 commit 9163e95
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,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 @@ -9,6 +9,7 @@ use crate::{Language, StyleType};
pub fn general_translation(language: Language) -> &'static str {
match language {
Language::EN | Language::RO => "General",
// Language::FA => "عمومی",
Language::ES => "Generales",
Language::IT => "Generali",
Language::FR => "Général",
Expand All @@ -26,6 +27,7 @@ pub fn zoom_translation(language: Language) -> &'static str {
Language::EN | Language::IT | Language::ES | Language::FR | Language::DE | Language::RO => {
"Zoom"
}
// Language::FA => "بزرگنمایی",
Language::PL => "Powiększenie",
Language::RU => "Масштаб интерфейса",
Language::JA => "ズーム",
Expand All @@ -37,6 +39,7 @@ pub fn zoom_translation(language: Language) -> &'static str {
pub fn mmdb_files_translation(language: Language) -> &'static str {
match language {
Language::EN => "Database files",
// Language::FA => "پرونده های پایگاه داده",
Language::ES => "Archivos de la base de datos",
Language::IT => "File di database",
Language::FR => "Fichiers de la base de données",
Expand All @@ -53,6 +56,7 @@ pub fn mmdb_files_translation(language: Language) -> &'static str {
pub fn params_not_editable_translation(language: Language) -> &'static str {
match language {
Language::EN => "The following parameters can't be modified during the analysis",
// Language::FA => "مولفه های روبرو هنگام تحلیل قابل تغییر نیستند",
Language::ES => "Los siguientes parámetros no pueden modificarse durante el análisis",
Language::IT => "I seguenti parametri non sono modificabili durante l'analisi",
Language::FR => "Les paramètres suivants ne peuvent pas être modifiés durant l'analyse",
Expand All @@ -69,6 +73,7 @@ pub fn params_not_editable_translation(language: Language) -> &'static str {
pub fn custom_style_translation(language: Language) -> &'static str {
match language {
Language::EN => "Custom style",
// Language::FA => "شیوه سفارشی",
Language::ES => "Estilo personalizado",
Language::IT => "Stile personalizzato",
Language::FR => "Style personnalisé",
Expand All @@ -85,6 +90,7 @@ pub fn custom_style_translation(language: Language) -> &'static str {
pub fn copy_translation(language: Language) -> &'static str {
match language {
Language::EN => "Copy",
// Language::FA => "رونوشت",
Language::IT | Language::ES => "Copia",
Language::FR | Language::RO => "Copie",
Language::DE => "Kopieren",
Expand All @@ -101,6 +107,7 @@ pub fn port_translation(language: Language) -> &'static str {
Language::EN | Language::FR | Language::DE | Language::PL | Language::RO | Language::UZ => {
"Port"
}
// Language::FA => "درگاه",
Language::ES => "Puerto",
Language::IT => "Porta",
Language::RU => "Порт",
Expand All @@ -112,6 +119,7 @@ pub fn port_translation(language: Language) -> &'static str {
pub fn invalid_filters_translation(language: Language) -> &'static str {
match language {
Language::EN => "Invalid filters",
// Language::FA => "صافی نامعتبر",
Language::ES => "Filtros inválidos",
Language::IT => "Filtri non validi",
Language::FR => "Filtres invalides",
Expand All @@ -128,6 +136,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str {
pub fn messages_translation(language: Language) -> &'static str {
match language {
Language::EN | Language::FR => "Messages",
// Language::FA => "پیام ها",
Language::ES => "Mensajes",
Language::IT => "Messaggi",
Language::DE => "Nachrichten",
Expand All @@ -143,6 +152,7 @@ pub fn messages_translation(language: Language) -> &'static str {
pub fn link_type_translation(language: Language) -> &'static str {
match language {
Language::EN => "Link type",
// Language::FA => "نوع پیوند",
Language::ES => "Tipo de conexión",
Language::IT => "Tipo di collegamento",
Language::FR => "Type de connexion",
Expand All @@ -162,6 +172,7 @@ pub fn unsupported_link_type_translation(
) -> Text<'static, StyleType> {
let mut string = match language {
Language::EN => "The link type associated with this adapter is not supported by Sniffnet yet...",
// Language::FA => "نوع پیوند مرتبط با این مبدل هنوز توسط Sniffnet پشتیبانی نمی شود...",
Language::ES => "La conexión asociada con este adaptador aún no esta implementada en Sniffnet...",
Language::IT => "Il tipo di collegamento associato a questo adattatore di rete non è ancora supportato da Sniffnet...",
Language::FR => "Le type de connexion associé à cet adaptateur n'est pas encore supporté par Sniffnet...",
Expand All @@ -182,6 +193,7 @@ pub fn unsupported_link_type_translation(
pub fn style_from_file_translation(language: Language) -> &'static str {
match language {
Language::EN => "Select style from a file",
// Language::FA => "انتخاب شیوه از یک پرونده",
Language::ES => "Selecciona el estilo desde un archivo",
Language::IT => "Seleziona lo stile da un file",
Language::FR => "Sélectionner un style à partir d'un fichier",
Expand All @@ -198,6 +210,7 @@ pub fn style_from_file_translation(language: Language) -> &'static str {
pub fn database_from_file_translation(language: Language) -> &'static str {
match language {
Language::EN => "Select database file",
// Language::FA => "پرونده پایگاه داده را انتخاب کنید",
Language::ES => "Selecciona un archivo de base de datos",
Language::IT => "Seleziona file di database",
Language::FR => "Sélection d'un fichier de base de données",
Expand All @@ -214,6 +227,7 @@ pub fn database_from_file_translation(language: Language) -> &'static str {
pub fn filter_by_host_translation(language: Language) -> &'static str {
match language {
Language::EN => "Filter by network host",
// Language::FA => "صافی بر اساس میزبان شبکه",
Language::ES => "Filtra por host de red",
Language::IT => "Filtra per host di rete",
Language::FR => "Filtrer par réseau hôte",
Expand All @@ -230,6 +244,7 @@ pub fn filter_by_host_translation(language: Language) -> &'static str {
pub fn service_translation(language: Language) -> &'static str {
match language {
Language::EN | Language::FR | Language::DE => "Service",
// Language::FA => "خدمت",
Language::ES => "Servicio",
Language::IT => "Servizio",
Language::PL => "Usługa",
Expand All @@ -244,6 +259,7 @@ pub fn service_translation(language: Language) -> &'static str {
pub fn export_capture_translation(language: Language) -> &'static str {
match language {
Language::EN => "Export capture file",
// Language::FA => "خروجی گرفتن پرونده تسخیری",
Language::IT => "Esporta file di cattura",
Language::FR => "Exporter le fichier de capture",
Language::DE => "Aufzeichnungsdatei exportieren",
Expand All @@ -260,6 +276,7 @@ pub fn export_capture_translation(language: Language) -> &'static str {
pub fn directory_translation(language: Language) -> &'static str {
match language {
Language::EN => "Directory",
// Language::FA => "پوشه",
Language::IT => "Cartella",
Language::FR => "Répertoire",
Language::DE => "Ordner",
Expand All @@ -274,6 +291,7 @@ pub fn directory_translation(language: Language) -> &'static str {
pub fn select_directory_translation(language: Language) -> &'static str {
match language {
Language::EN => "Select destination directory",
// Language::FA => "انتخاب پوشه مقصد",
Language::IT => "Seleziona cartella di destinazione",
Language::FR => "Sélectionner le répertoire de destination",
Language::DE => "Zielorder wählen",
Expand All @@ -289,6 +307,7 @@ pub fn select_directory_translation(language: Language) -> &'static str {
pub fn file_name_translation(language: Language) -> &'static str {
match language {
Language::EN => "File name",
// Language::FA => "نام پرونده",
Language::IT => "Nome del file",
Language::FR => "Nom du fichier",
Language::DE => "Dateiname",
Expand All @@ -304,6 +323,7 @@ pub fn file_name_translation(language: Language) -> &'static str {
pub fn thumbnail_mode_translation(language: Language) -> &'static str {
match language {
Language::EN => "Thumbnail mode",
// Language::FA => "حالت تصویر بندانگشتی",
Language::IT => "Modalità miniatura",
Language::FR => "Mode miniature",
Language::DE => "Bild-in-Bild Modus",
Expand All @@ -319,6 +339,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str {
pub fn learn_more_translation(language: Language) -> &'static str {
match language {
Language::EN => "Do you want to learn more?",
// Language::FA => "آیا می خواهید بیشتر یاد بگیرید؟",
Language::IT => "Vuoi saperne di più?",
Language::FR => "Voulez-vous en savoir davantage?",
Language::DE => "Mehr erfahren",
Expand Down

0 comments on commit 9163e95

Please sign in to comment.