Skip to content

Commit d11bde4

Browse files
authored
Translation + save button (#1365)
1 parent b1ce939 commit d11bde4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1358
-232
lines changed

Cargo.lock

+49-49
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

czkawka_core/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ rust-embed = { version = "8.5", features = ["debug-embed"] }
6060
once_cell = "1.20"
6161

6262
# Raw image files
63+
#rawler = "0.6"
64+
#imagepipe = { path = "/home/rafal/test/imagepipe" }
6365
rawloader = "0.37"
6466
imagepipe = "0.5"
6567
libraw-rs = { version = "0.0.4", optional = true }
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Core
2+
core_similarity_original = Original
3+
core_similarity_very_high = Muito alto
4+
core_similarity_high = alta
5+
core_similarity_medium = Média
6+
core_similarity_small = Pequeno
7+
core_similarity_very_small = Muito Pequeno
8+
core_similarity_minimal = Mínimo
9+
core_cannot_open_dir = Não é possível abrir o dir { $dir }, razão { $reason }
10+
core_cannot_read_entry_dir = Não é possível ler a entrada no diretório { $dir }, razão { $reason }
11+
core_cannot_read_metadata_dir = Não é possível ler os metadados no diretório { $dir }, razão { $reason }
12+
core_file_not_utf8_name = O arquivo { $name } não possui um nome UTF-8 válido (alguns caracteres não podem ser exibidos)
13+
core_file_modified_before_epoch = O arquivo { $name } parece ser modificado antes do Epoch Unix
14+
core_folder_modified_before_epoch = Pasta { $name } parece ser modificada antes do Epoch Unix
15+
core_file_no_modification_date = Não é possível obter a data de modificação do arquivo { $name }, motivo { $reason }
16+
core_folder_no_modification_date = Não é possível obter a data de modificação da pasta { $name }, motivo { $reason }
17+
core_missing_no_chosen_included_directory = Pelo menos um diretório deve ser fornecido
18+
core_directory_wildcard_no_supported = Directorias: Caracteres curinga no caminho não são suportados, ignorando { $path }
19+
core_directory_must_exists = Diretórios: Caminho da pasta fornecida deve existir, ignorando { $path }
20+
core_directory_must_be_directory = Directorias: Caminho fornecido deve apontar para o diretório, ignorando { $path }
21+
core_included_directory_zero_valid_directories = ERRO do Diretório incluído: Não foi encontrado nenhum caminho correto que é necessário incluir
22+
core_excluded_directory_pointless_slash = Directorias: Excluir / não faz sentido, porque significa que nenhum arquivo será escaneado
23+
core_directory_overlap = Diretórios: Todos os diretórios para pesquisar sobreposições com diretórios excluídos
24+
core_directory_unable_to_get_device_id = Directorias: Não foi possível obter o dispositivo de ajuda da pasta { $path }
25+
core_ffmpeg_not_found = Instalação adequada do FFmpeg não encontrada
26+
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
27+
core_ffmpeg_missing_in_snap = Vídeos similares não funcionam atualmente com o snap, se você quiser ajudar a olhar - { $url }
28+
core_saving_to_cache = Salvo no arquivo { $number } entradas de cache
29+
core_loading_from_cache = Carregado do cache { $number } entradas

czkawka_core/src/bad_extensions.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,14 @@ const WORKAROUNDS: &[(&str, &str)] = &[
7373
// Games specific extensions - cannot be used here common extensions like zip
7474
("gz", "h3m"), // Heroes 3
7575
("zip", "hashdb"), // Gog
76-
("zip", "c2"), // King of the Dark Age
77-
("bmp", "c2"), // King of the Dark Age
78-
("avi", "c2"), // King of the Dark Age
79-
("exe", "c2"), // King of the Dark Age
76+
("c2", "zip"), // King of the Dark Age
77+
("c2", "bmp"), // King of the Dark Age
78+
("c2", "avi"), // King of the Dark Age
79+
("c2", "exe"), // King of the Dark Age
80+
// Raw images
81+
("tif", "nef"),
82+
("tif", "dng"),
83+
("tif", "arw"),
8084
// Other
8185
("der", "keystore"), // Godot/Android keystore
8286
("exe", "pyd"), // Python/Mingw

czkawka_core/src/common_traits.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ pub trait PrintResults {
6161
Ok(())
6262
}
6363

64-
fn save_all_in_one(&self, file_name: &str) -> std::io::Result<()> {
65-
self.save_results_to_file_as_json(&format!("{file_name}_pretty.json"), true)?;
66-
self.save_results_to_file_as_json(&format!("{file_name}_compact.json"), false)?;
67-
self.print_results_to_file(&format!("{file_name}.txt"))?;
64+
fn save_all_in_one(&self, folder: &str, base_file_name: &str) -> std::io::Result<()> {
65+
let pretty_name = format!("{folder}/{base_file_name}_pretty.json");
66+
self.save_results_to_file_as_json(&pretty_name, true)?;
67+
let compact_name = format!("{folder}/{base_file_name}_compact.json");
68+
self.save_results_to_file_as_json(&compact_name, false)?;
69+
let txt_name = format!("{folder}/{base_file_name}.txt");
70+
self.print_results_to_file(&txt_name)?;
6871
Ok(())
6972
}
7073
}

czkawka_gui/i18n/ar/czkawka_gui.ftl

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ music_checking_by_tags = الوسوم
1818
music_checking_by_content = محتوى
1919
same_music_seconds_label = الحد الأدنى من مدة التجزئة الثانية
2020
same_music_similarity_label = الفرق الأقصى
21+
music_compare_only_in_title_group = قارن فقط في العنوان
22+
music_compare_only_in_title_group_tooltip =
23+
When enabled, files are grouped by title and then compared to each other.
24+
25+
With 10000 files, instead almost 100 million comparisons usually there will be around 20000 comparisons.
2126
same_music_tooltip =
2227
يمكن تكوين البحث عن ملفات موسيقية مشابهة بواسطة محتواها عن طريق الإعداد:
2328
@@ -288,6 +293,13 @@ header_about_button_tooltip = فتح مربع الحوار مع معلومات
288293

289294
settings_number_of_threads = عدد المواضيع المستخدمة
290295
settings_number_of_threads_tooltip = عدد المواضيع المستخدمة، 0 يعني أن جميع المواضيع المتاحة سيتم استخدامها.
296+
settings_use_rust_preview = استخدام المكتبات الخارجية بدلاً من gtk لتحميل المعاينات
297+
settings_use_rust_preview_tooltip =
298+
وفي بعض الأحيان سيكون استخدام معاينات gtk أسرع ويدعم صيغا أكثر، ولكن في بعض الأحيان قد يكون الأمر على العكس تماما.
299+
300+
إذا كان لديك مشاكل في تحميل المعاينات، فيمكنك محاولة تغيير هذا الإعداد.
301+
302+
على أنظمة غير لينوكس، يوصى باستخدام هذا الخيار، لأن gtk-pixbuf غير متوفر دائمًا هناك لذلك فإن تعطيل هذا الخيار لن يقوم بتحميل المعاينات لبعض الصور.
291303
settings_label_restart = تحتاج إلى إعادة تشغيل التطبيق لتطبيق الإعدادات!
292304
settings_ignore_other_filesystems = تجاهل نظم الملفات الأخرى (Linux)
293305
settings_ignore_other_filesystems_tooltip =

0 commit comments

Comments
 (0)