Skip to content

Commit

Permalink
Merge pull request #690 from guilherme-demarchi/patch-1
Browse files Browse the repository at this point in the history
Translation Update - PT
  • Loading branch information
GyulyVGC authored Feb 1, 2025
2 parents f261da0 + b2c37e7 commit 8d7e417
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All Sniffnet releases with the relative changes are documented in this file.
## [UNRELEASED]
- Identify and tag unassigned/reserved "bogon" IP addresses ([#678](https://github.com/GyulyVGC/sniffnet/pull/678) — fixes [#209](https://github.com/GyulyVGC/sniffnet/issues/209))
- Show data agglomerates in _Inspect_ page table ([#684](https://github.com/GyulyVGC/sniffnet/pull/684) — fixes [#601](https://github.com/GyulyVGC/sniffnet/issues/601))
- Updated Portuguese translation to v1.3 ([#690](https://github.com/GyulyVGC/sniffnet/pull/690))

## [1.3.2] - 2025-01-06
- Dropdown menus for network host filters ([#659](https://github.com/GyulyVGC/sniffnet/pull/659) — fixes [#354](https://github.com/GyulyVGC/sniffnet/issues/354))
Expand Down
24 changes: 21 additions & 3 deletions src/translations/translations_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub fn general_translation(language: Language) -> &'static str {
Language::ZH => "通用",
Language::KO => "일반",
Language::TR => "Genel",
Language::PT => "Geral",
_ => "General",
}
}
Expand All @@ -35,6 +36,7 @@ pub fn zoom_translation(language: Language) -> &'static str {
| Language::FR
| Language::DE
| Language::RO
| Language::PT
| Language::SV => "Zoom",
// Language::FA => "بزرگنمایی",
Language::PL => "Powiększenie",
Expand Down Expand Up @@ -67,6 +69,7 @@ pub fn mmdb_files_translation(language: Language) -> &'static str {
Language::ZH => "数据库文件",
Language::KO => "데이터베이스 파일",
Language::TR => "Veri tabanı dosyaları",
Language::PT => "Arquivos da base de dados",
_ => "Database files",
}
}
Expand All @@ -89,6 +92,7 @@ pub fn params_not_editable_translation(language: Language) -> &'static str {
Language::ZH => "以下参数在分析过程中不能修改",
Language::KO => "분석 중 다음의 매개변수들은 수정할 수 없습니다",
Language::TR => "Analiz sırasında bu parametrelere müdahale edilemez",
Language::PT => "Os seguintes parâmetros não podem ser modificados durante a análise",
_ => "The following parameters can't be modified during the analysis",
}
}
Expand All @@ -97,7 +101,7 @@ pub fn custom_style_translation(language: Language) -> &'static str {
match language {
Language::EN => "Custom style",
// Language::FA => "شیوه سفارشی",
Language::ES => "Estilo personalizado",
Language::ES | Language::PT => "Estilo personalizado",
Language::IT => "Stile personalizzato",
Language::FR => "Style personnalisé",
Language::DE => "Benutzerdefinierter Stil",
Expand Down Expand Up @@ -131,6 +135,7 @@ pub fn copy_translation(language: Language) -> &'static str {
Language::ZH => "复制",
Language::KO => "복사",
Language::TR => "Kopyala",
Language::PT => "Copiar",
_ => "Copy",
}
}
Expand All @@ -147,7 +152,7 @@ pub fn port_translation(language: Language) -> &'static str {
| Language::TR => "Port",
// Language::FA => "درگاه",
Language::ES => "Puerto",
Language::IT => "Porta",
Language::IT | Language::PT => "Porta",
Language::RU => "Порт",
Language::JA => "ポート",
Language::VI => "Cổng",
Expand All @@ -161,7 +166,7 @@ pub fn invalid_filters_translation(language: Language) -> &'static str {
match language {
Language::EN => "Invalid filters",
// Language::FA => "صافی نامعتبر",
Language::ES => "Filtros inválidos",
Language::ES | Language::PT => "Filtros inválidos",
Language::IT => "Filtri non validi",
Language::FR => "Filtres invalides",
Language::DE => "Ungültige Filter",
Expand Down Expand Up @@ -196,6 +201,7 @@ pub fn messages_translation(language: Language) -> &'static str {
Language::ZH => "信息",
Language::KO => "메시지",
Language::TR => "Mesajlar",
Language::PT => "Mensagens",
_ => "Messages",
}
}
Expand All @@ -218,6 +224,7 @@ pub fn link_type_translation(language: Language) -> &'static str {
Language::ZH => "链接类型",
Language::KO => "링크 유형",
Language::TR => "Link türü",
Language::PT => "Tipo de conexão",
_ => "Link type",
}
}
Expand All @@ -243,6 +250,7 @@ pub fn unsupported_link_type_translation<'a>(
Language::ZH => "Sniffnet 尚不支持与此适配器关联的链接类型...",
Language::KO => "이 어댑터와 연결된 링크 유형은 Sniffnet에서 아직 지원되지 않습니다...",
Language::TR => "Bu adaptör ile ilişkilendirilmiş link türü henüz Sniffnet tarafından desteklenmiyor...",
Language::PT => "O tipo de conexão associado com este adaptador não é suportado pelo Sniffnet ainda...",
_ => "The link type associated with this adapter is not supported by Sniffnet yet...",
};

Expand Down Expand Up @@ -270,6 +278,7 @@ pub fn style_from_file_translation(language: Language) -> &'static str {
Language::ZH => "从文件中选择样式",
Language::KO => "파일에서 스타일을 선택하세요",
Language::TR => "Dosyadan bir görünüm seç",
Language::PT => "Selecionar estilo a partir de um arquivo",
_ => "Select style from a file",
}
}
Expand All @@ -292,6 +301,7 @@ pub fn database_from_file_translation(language: Language) -> &'static str {
Language::ZH => "选择数据库文件",
Language::KO => "데이터베이스 파일 선택",
Language::TR => "Veri tabanı dosyası seç",
Language::PT => "Selecione um arquivo de base de dados",
_ => "Select database file",
}
}
Expand All @@ -314,6 +324,7 @@ pub fn filter_by_host_translation(language: Language) -> &'static str {
Language::ZH => "按网络主机筛选",
Language::KO => "네트워크 호스트로 필터링",
Language::TR => "Ağ sunucusuna göre filtrele",
Language::PT => "Filtrar por host de rede",
_ => "Filter by network host",
}
}
Expand All @@ -333,6 +344,7 @@ pub fn service_translation(language: Language) -> &'static str {
Language::ZH => "服务",
Language::KO => "서비스",
Language::TR => "Servis",
Language::PT => "Serviço",
_ => "Service",
}
}
Expand All @@ -354,6 +366,7 @@ pub fn export_capture_translation(language: Language) -> &'static str {
Language::ZH => "导出捕获文件",
Language::KO => "캡처 파일 내보내기",
Language::TR => "Yakalanan dosyayı dışa aktar",
Language::PT => "Exportar arquivo capturado",
_ => "Export capture file",
}
}
Expand All @@ -374,6 +387,7 @@ pub fn directory_translation(language: Language) -> &'static str {
Language::ZH => "目录",
Language::KO => "디렉토리",
Language::TR => "Klasör",
Language::PT => "Diretório",
_ => "Directory",
}
}
Expand All @@ -395,6 +409,7 @@ pub fn select_directory_translation(language: Language) -> &'static str {
Language::ZH => "选择目标目录",
Language::KO => "대상 디렉토리 선택",
Language::TR => "Hedef klasörü seç",
Language::PT => "Selecionar diretório de destino",
_ => "Select destination directory",
}
}
Expand All @@ -416,6 +431,7 @@ pub fn file_name_translation(language: Language) -> &'static str {
Language::ZH => "文件名",
Language::KO => "파일 이름",
Language::TR => "Dosya adı",
Language::PT => "Nome do arquivo",
_ => "File name",
}
}
Expand All @@ -437,6 +453,7 @@ pub fn thumbnail_mode_translation(language: Language) -> &'static str {
Language::ZH => "缩略图模式",
Language::KO => "썸네일 모드",
Language::TR => "Küçük resim modu",
Language::PT => "Modo miniatura",
_ => "Thumbnail mode",
}
}
Expand All @@ -458,6 +475,7 @@ pub fn learn_more_translation(language: Language) -> &'static str {
Language::ZH => "想知道更多吗?",
Language::KO => "더 자세히 알고 싶으십니까?",
Language::TR => "Daha fazlasını öğrenmek ister misin?",
Language::PT => "Quer aprender mais?",
_ => "Do you want to learn more?",
}
}
1 change: 1 addition & 0 deletions src/translations/translations_4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub fn reserved_address_translation(language: Language, info: &str) -> String {
match language {
Language::EN => format!("Reserved address ({info})"),
Language::IT => format!("Indirizzo riservato ({info})"),
Language::PT => format!("Endereço reservado ({info})"),
_ => format!("Reserved address ({info})"),
}
}
1 change: 1 addition & 0 deletions src/translations/types/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl Language {
| Language::ZH
| Language::KO
| Language::TR
| Language::PT
)
}
}
Expand Down

0 comments on commit 8d7e417

Please sign in to comment.