Skip to content

Commit

Permalink
Translation + save button (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin authored Oct 10, 2024
1 parent b1ce939 commit d11bde4
Show file tree
Hide file tree
Showing 43 changed files with 1,358 additions and 232 deletions.
98 changes: 49 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions czkawka_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ rust-embed = { version = "8.5", features = ["debug-embed"] }
once_cell = "1.20"

# Raw image files
#rawler = "0.6"
#imagepipe = { path = "/home/rafal/test/imagepipe" }
rawloader = "0.37"
imagepipe = "0.5"
libraw-rs = { version = "0.0.4", optional = true }
Expand Down
29 changes: 29 additions & 0 deletions czkawka_core/i18n/pt-BR/czkawka_core.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Core
core_similarity_original = Original
core_similarity_very_high = Muito alto
core_similarity_high = alta
core_similarity_medium = Média
core_similarity_small = Pequeno
core_similarity_very_small = Muito Pequeno
core_similarity_minimal = Mínimo
core_cannot_open_dir = Não é possível abrir o dir { $dir }, razão { $reason }
core_cannot_read_entry_dir = Não é possível ler a entrada no diretório { $dir }, razão { $reason }
core_cannot_read_metadata_dir = Não é possível ler os metadados no diretório { $dir }, razão { $reason }
core_file_not_utf8_name = O arquivo { $name } não possui um nome UTF-8 válido (alguns caracteres não podem ser exibidos)
core_file_modified_before_epoch = O arquivo { $name } parece ser modificado antes do Epoch Unix
core_folder_modified_before_epoch = Pasta { $name } parece ser modificada antes do Epoch Unix
core_file_no_modification_date = Não é possível obter a data de modificação do arquivo { $name }, motivo { $reason }
core_folder_no_modification_date = Não é possível obter a data de modificação da pasta { $name }, motivo { $reason }
core_missing_no_chosen_included_directory = Pelo menos um diretório deve ser fornecido
core_directory_wildcard_no_supported = Directorias: Caracteres curinga no caminho não são suportados, ignorando { $path }
core_directory_must_exists = Diretórios: Caminho da pasta fornecida deve existir, ignorando { $path }
core_directory_must_be_directory = Directorias: Caminho fornecido deve apontar para o diretório, ignorando { $path }
core_included_directory_zero_valid_directories = ERRO do Diretório incluído: Não foi encontrado nenhum caminho correto que é necessário incluir
core_excluded_directory_pointless_slash = Directorias: Excluir / não faz sentido, porque significa que nenhum arquivo será escaneado
core_directory_overlap = Diretórios: Todos os diretórios para pesquisar sobreposições com diretórios excluídos
core_directory_unable_to_get_device_id = Directorias: Não foi possível obter o dispositivo de ajuda da pasta { $path }
core_ffmpeg_not_found = Instalação adequada do FFmpeg não encontrada
core_ffmpeg_not_found_windows = Certifique-se de que o ffmpeg.exe e ffprobe.exe estão disponíveis no PATH ou são colocados diretamente na mesma pasta onde o aplicativo é executável
core_ffmpeg_missing_in_snap = Vídeos similares não funcionam atualmente com o snap, se você quiser ajudar a olhar - { $url }
core_saving_to_cache = Salvo no arquivo { $number } entradas de cache
core_loading_from_cache = Carregado do cache { $number } entradas
12 changes: 8 additions & 4 deletions czkawka_core/src/bad_extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ const WORKAROUNDS: &[(&str, &str)] = &[
// Games specific extensions - cannot be used here common extensions like zip
("gz", "h3m"), // Heroes 3
("zip", "hashdb"), // Gog
("zip", "c2"), // King of the Dark Age
("bmp", "c2"), // King of the Dark Age
("avi", "c2"), // King of the Dark Age
("exe", "c2"), // King of the Dark Age
("c2", "zip"), // King of the Dark Age
("c2", "bmp"), // King of the Dark Age
("c2", "avi"), // King of the Dark Age
("c2", "exe"), // King of the Dark Age
// Raw images
("tif", "nef"),
("tif", "dng"),
("tif", "arw"),
// Other
("der", "keystore"), // Godot/Android keystore
("exe", "pyd"), // Python/Mingw
Expand Down
11 changes: 7 additions & 4 deletions czkawka_core/src/common_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ pub trait PrintResults {
Ok(())
}

fn save_all_in_one(&self, file_name: &str) -> std::io::Result<()> {
self.save_results_to_file_as_json(&format!("{file_name}_pretty.json"), true)?;
self.save_results_to_file_as_json(&format!("{file_name}_compact.json"), false)?;
self.print_results_to_file(&format!("{file_name}.txt"))?;
fn save_all_in_one(&self, folder: &str, base_file_name: &str) -> std::io::Result<()> {
let pretty_name = format!("{folder}/{base_file_name}_pretty.json");
self.save_results_to_file_as_json(&pretty_name, true)?;
let compact_name = format!("{folder}/{base_file_name}_compact.json");
self.save_results_to_file_as_json(&compact_name, false)?;
let txt_name = format!("{folder}/{base_file_name}.txt");
self.print_results_to_file(&txt_name)?;
Ok(())
}
}
Expand Down
12 changes: 12 additions & 0 deletions czkawka_gui/i18n/ar/czkawka_gui.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ music_checking_by_tags = الوسوم
music_checking_by_content = محتوى
same_music_seconds_label = الحد الأدنى من مدة التجزئة الثانية
same_music_similarity_label = الفرق الأقصى
music_compare_only_in_title_group = قارن فقط في العنوان
music_compare_only_in_title_group_tooltip =
When enabled, files are grouped by title and then compared to each other.
With 10000 files, instead almost 100 million comparisons usually there will be around 20000 comparisons.
same_music_tooltip =
يمكن تكوين البحث عن ملفات موسيقية مشابهة بواسطة محتواها عن طريق الإعداد:
Expand Down Expand Up @@ -288,6 +293,13 @@ header_about_button_tooltip = فتح مربع الحوار مع معلومات

settings_number_of_threads = عدد المواضيع المستخدمة
settings_number_of_threads_tooltip = عدد المواضيع المستخدمة، 0 يعني أن جميع المواضيع المتاحة سيتم استخدامها.
settings_use_rust_preview = استخدام المكتبات الخارجية بدلاً من gtk لتحميل المعاينات
settings_use_rust_preview_tooltip =
وفي بعض الأحيان سيكون استخدام معاينات gtk أسرع ويدعم صيغا أكثر، ولكن في بعض الأحيان قد يكون الأمر على العكس تماما.
إذا كان لديك مشاكل في تحميل المعاينات، فيمكنك محاولة تغيير هذا الإعداد.
على أنظمة غير لينوكس، يوصى باستخدام هذا الخيار، لأن gtk-pixbuf غير متوفر دائمًا هناك لذلك فإن تعطيل هذا الخيار لن يقوم بتحميل المعاينات لبعض الصور.
settings_label_restart = تحتاج إلى إعادة تشغيل التطبيق لتطبيق الإعدادات!
settings_ignore_other_filesystems = تجاهل نظم الملفات الأخرى (Linux)
settings_ignore_other_filesystems_tooltip =
Expand Down
Loading

0 comments on commit d11bde4

Please sign in to comment.