PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Open/Save: refuse file names that aren't valid Unicode instead of rewriting them (#6601)
zuujiscom32a2faa7c38d
diff --git a/apps/photocraft/src/services.rs b/apps/photocraft/src/services.rsindex 999952f18..f0e0a55ff 100644--- a/apps/photocraft/src/services.rs+++ b/apps/photocraft/src/services.rs@@ -197,10 +197,10 @@ fn show_file_dialog(request: FileDialogRequest, parent: Option<&eframe::Frame>,};if multiple {let picked = dialog.pick_files();- Box::pin(async move { picked.await.map(|files| FileDialogAnswer::Paths(files.iter().map(path_of).collect())) })+ Box::pin(async move { picked.await.map(|files| answer(files.iter().map(|f| f.path()), false, FileDialogAnswer::Paths)) })} else {let picked = dialog.pick_file();- Box::pin(async move { picked.await.map(|file| FileDialogAnswer::Paths(vec![path_of(&file)])) })+ Box::pin(async move { picked.await.map(|file| answer([file.path()], false, FileDialogAnswer::Paths)) })}}FileDialogRequest::Folder { initial_dir } => {@@ -208,7 +208,7 @@ fn show_file_dialog(request: FileDialogRequest, parent: Option<&eframe::Frame>,dialog = dialog.set_directory(dir);}let picked = dialog.pick_folder();- Box::pin(async move { picked.await.map(|folder| FileDialogAnswer::FolderTo(path_of(&folder))) })+ Box::pin(async move { picked.await.map(|folder| answer_one(folder.path(), true, FileDialogAnswer::FolderTo)) })}FileDialogRequest::Save { suggested } => {let filters = save_filters(&suggested);@@ -243,10 +243,10 @@ fn show_file_dialog(request: FileDialogRequest, parent: Option<&eframe::Frame>,.map_err(|e| e.to_string()).and_then(|conn| crate::portal_save::save_as(&conn, req));match portal {- Ok(path) => path.map(|p| FileDialogAnswer::SaveTo(p.to_string_lossy().into_owned())),+ Ok(path) => path.map(|p| answer_one(&p, true, FileDialogAnswer::SaveTo)),Err(e) => {log::info!("portal save dialog unavailable ({e}), using rfd");- dialog.save_file().await.map(|file| FileDialogAnswer::SaveTo(path_of(&file)))+ dialog.save_file().await.map(|file| answer_one(file.path(), true, FileDialogAnswer::SaveTo))}}})@@ -255,7 +255,7 @@ fn show_file_dialog(request: FileDialogRequest, parent: Option<&eframe::Frame>,{let _ = filters;let picked = dialog.save_file();- Box::pin(async move { picked.await.map(|file| FileDialogAnswer::SaveTo(path_of(&file))) })+ Box::pin(async move { picked.await.map(|file| answer_one(file.path(), true, FileDialogAnswer::SaveTo)) })}}};@@ -269,8 +269,22 @@ fn show_file_dialog(request: FileDialogRequest, parent: Option<&eframe::Frame>,}}-fn path_of(file: &rfd::FileHandle) -> String {- file.path().to_string_lossy().into_owned()+/// The dialog's answer for the chosen `paths`, or the error for one whose name isn't valid+/// Unicode, which a lossy copy would turn into another file's name (#6601). `saving`: the paths+/// are to be written to.+fn answer<'a>(paths: impl IntoIterator<Item = &'a Path>, saving: bool, make: impl FnOnce(Vec<String>) -> FileDialogAnswer) -> FileDialogAnswer {+ match paths.into_iter().map(|p| photocraft_ui_egui::file_open::path_text(p, saving)).collect() {+ Ok(paths) => make(paths),+ Err(e) => FileDialogAnswer::Unavailable(e),+ }+}++/// [`answer`] for a dialog that picks one path.+fn answer_one(path: &Path, saving: bool, make: impl FnOnce(String) -> FileDialogAnswer) -> FileDialogAnswer {+ match photocraft_ui_egui::file_open::path_text(path, saving) {+ Ok(path) => make(path),+ Err(e) => FileDialogAnswer::Unavailable(e),+ }}/// Runs `future` to completion on this thread, sleeping until it is woken.@@ -713,6 +727,31 @@ mod tests {use photocraft_ui_egui::{PhotocraftApp, prefs_ui};use serde_json::{Value, json};+ /// #6601: a chosen path whose name isn't valid Unicode is reported, never handed on lossily+ /// (Open would fail with "No such file", Save would write a second, renamed file).+ #[test]+ fn a_chosen_path_that_is_not_valid_unicode_is_an_error_not_another_name() {+ #[cfg(unix)]+ let bad = {+ use std::os::unix::ffi::OsStrExt;+ std::env::temp_dir().join(std::ffi::OsStr::from_bytes(b"img\xFF.png"))+ };+ #[cfg(windows)]+ let bad = {+ use std::os::windows::ffi::OsStringExt;+ let mut wide: Vec<u16> = "img".encode_utf16().collect();+ wide.push(0xD800);+ wide.extend(".png".encode_utf16());+ std::env::temp_dir().join(std::ffi::OsString::from_wide(&wide))+ };+ let good = std::env::temp_dir().join("ok.png");+ let save = |path: &Path| answer_one(path, true, FileDialogAnswer::SaveTo);+ assert!(matches!(save(&bad), FileDialogAnswer::Unavailable(e) if e.contains("not valid Unicode") && e.contains("another name")));+ assert!(matches!(save(&good), FileDialogAnswer::SaveTo(p) if p == good.to_str().unwrap()));+ let open = answer([good.as_path(), bad.as_path()], false, FileDialogAnswer::Paths);+ assert!(matches!(open, FileDialogAnswer::Unavailable(e) if e.contains("open it again")));+ }+/// #6121: the file type picked in the save dialog gives the name its extension where the/// dialog left the one it opened with, and only there.#[test]diff --git a/crates/ui-egui/src/file_dialog.rs b/crates/ui-egui/src/file_dialog.rsindex 7cdff50af..8904708cc 100644--- a/crates/ui-egui/src/file_dialog.rs+++ b/crates/ui-egui/src/file_dialog.rs@@ -46,8 +46,9 @@ pub enum FileDialogAnswer {SaveTo(String),/// The selected folder's path (desktop).FolderTo(String),- /// No dialog could be shown (on Linux: no desktop portal and no zenity, #3354); the message- /// says what to install. Reported as an error rather than taken for Cancel.+ /// No dialog could be shown (on Linux: no desktop portal and no zenity, #3354; the message+ /// says what to install), or the file chosen can't be used (a name that isn't valid Unicode,+ /// #6601). Reported as an error rather than taken for Cancel.Unavailable(String),}diff --git a/crates/ui-egui/src/file_open.rs b/crates/ui-egui/src/file_open.rsindex 1cf61e98d..19d8819e3 100644--- a/crates/ui-egui/src/file_open.rs+++ b/crates/ui-egui/src/file_open.rs@@ -68,6 +68,21 @@ fn dropped_name(f: &egui::DroppedFileHandle) -> String {f.path().file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "dropped".into())}+/// `path` as the `String` file paths are carried in, or what to tell the user when its name isn't+/// valid Unicode (#6601): non-UTF-8 bytes on Linux, an unpaired surrogate on Windows. A lossy copy+/// would name another file, so Open would fail with "No such file" and Save would write a second,+/// renamed file beside the original. `saving`: the path is to be written to.+pub fn path_text(path: &std::path::Path, saving: bool) -> Result<String, String> {+ path.to_str().map(str::to_owned).ok_or_else(|| {+ let line = if saving {+ tl!("{path}: the path is not valid Unicode; save under another name.")+ } else {+ tl!("{path}: the path is not valid Unicode; rename the file and open it again.")+ };+ crate::i18n::fmt(line, &[("path", &path.to_string_lossy())])+ })+}+/// The file name of `path` (the document's display name), or `path` itself when it has none.pub fn display_name(path: &str) -> String {std::path::Path::new(path).file_name().map(|n| n.to_string_lossy().to_string()).filter(|n| !n.is_empty()).unwrap_or_else(|| path.to_string())@@ -270,7 +285,7 @@ impl PhotocraftApp {// Opens append: a background open's tab, or a document.let (docs, opens) = (self.session.documents().len(), self.jobs.opens.len());if f.path().is_absolute() {- self.open_path(&f.path().to_string_lossy())?;+ self.open_path(&path_text(f.path(), false)?)?;} else {self.open_bytes(name, &crate::read_dropped(&**f)?)?;}@@ -289,7 +304,7 @@ impl PhotocraftApp {let Some(next) = self.drop_places.pop_front() else { return };let (name, placed) = match next {DropPlace::File(f) if f.path().is_absolute() => {- (dropped_name(&f), self.run("file.placeEmbedded", serde_json::json!({"path": f.path().to_string_lossy()})))+ (dropped_name(&f), path_text(f.path(), false).and_then(|path| self.run("file.placeEmbedded", serde_json::json!({"path": path}))))}DropPlace::File(f) => {let name = dropped_name(&f);diff --git a/crates/ui-egui/src/file_open/tests.rs b/crates/ui-egui/src/file_open/tests.rsindex 00db3ef96..4d7a9b80b 100644--- a/crates/ui-egui/src/file_open/tests.rs+++ b/crates/ui-egui/src/file_open/tests.rs@@ -958,6 +958,37 @@ fn opening_type_in_a_missing_font_warns() {assert_eq!(app.open_bytes("warned.psd", b"x").unwrap(), vec![warning]);}+/// A file name that isn't valid Unicode on this platform: non-UTF-8 bytes on Unix, an unpaired+/// surrogate on Windows.+fn non_unicode_path() -> std::path::PathBuf {+ #[cfg(unix)]+ let name = {+ use std::os::unix::ffi::OsStrExt;+ std::ffi::OsStr::from_bytes(b"img\xFF.png").to_owned()+ };+ #[cfg(windows)]+ let name = {+ use std::os::windows::ffi::OsStringExt;+ let mut wide: Vec<u16> = "img".encode_utf16().collect();+ wide.push(0xD800);+ wide.extend(".png".encode_utf16());+ std::ffi::OsString::from_wide(&wide)+ };+ std::env::temp_dir().join(name)+}++/// #6601: a lossy copy of such a name is another file's name, so it is refused instead.+#[test]+fn a_path_that_is_not_valid_unicode_is_refused_not_rewritten() {+ let bad = non_unicode_path();+ let open = path_text(&bad, false).unwrap_err();+ assert!(open.contains("not valid Unicode") && open.contains("open it again"), "{open}");+ let save = path_text(&bad, true).unwrap_err();+ assert!(save.contains("not valid Unicode") && save.contains("another name"), "{save}");+ let good = std::env::temp_dir().join("img é.png");+ assert_eq!(path_text(&good, true).as_deref(), Ok(good.to_str().unwrap()));+}+/// #6598: opening a file that is already open shows its document, as Photoshop does, rather than/// a second copy bound to the same file (saving one would overwrite the other). The path is/// compared as the file it names: another spelling of it, a symlink to it or, with backgrounddiff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 15879f60d..240b4fdd2 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -3842,6 +3842,7 @@ navigator Zoom ZvětšeníThis document's layers: {needed} of {budget} for layers Vrstvy tohoto dokumentu: {needed} z {budget} pro vrstvyThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Vrstvy tohoto dokumentu potřebují {needed}, ale mohou zabrat {budget}: překreslení celého dokumentu probíhá na CPUGPU Memory (MB, 0 = Automatic) Paměť GPU (MB, 0 = Automaticky)+ {path}: the path is not valid Unicode; save under another name. {path}: cesta není platný Unicode; uložte soubor pod jiným názvem.{name} was changed by another app after it was opened or saved here. Soubor {name} změnila jiná aplikace poté, co byl zde otevřen nebo uložen.Replace it with this document, or cancel and use File › Save As to keep both. Nahraďte ho tímto dokumentem, nebo zrušte a použijte Soubor › Uložit jako, abyste zachovali obojí.Decrease Brush Size Zmenšit velikost štětcediff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex eb3ca7794..b4c8b9872 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -3239,6 +3239,7 @@ curves Smooth GlättenThis document's layers: {needed} of {budget} for layers Ebenen dieses Dokuments: {needed} von {budget} für EbenenThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Die Ebenen dieses Dokuments brauchen {needed}, dürfen aber {budget} belegen: Das ganze Dokument wird auf der CPU neu gezeichnetGPU Memory (MB, 0 = Automatic) GPU-Speicher (MB, 0 = Automatisch)+ {path}: the path is not valid Unicode; save under another name. {path}: Der Dateipfad enthält ungültige Zeichen. Speichere unter einem anderen Namen.{name} was changed by another app after it was opened or saved here. {name} wurde von einer anderen App geändert, nachdem es hier geöffnet oder gespeichert wurde.Replace it with this document, or cancel and use File › Save As to keep both. Ersetze die Datei durch dieses Dokument oder brich ab und nutze Datei › Speichern unter, um beide zu behalten.Memory Usage Speichernutzungdiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex bac53b53d..028b9f115 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3934,6 +3934,7 @@ curves Smooth ΕξομάλυνσηThis document's layers: {needed} of {budget} for layers Επίπεδα αυτού του εγγράφου: {needed} από {budget} για επίπεδαThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Τα επίπεδα αυτού του εγγράφου χρειάζονται {needed} αλλά μπορούν να καταλάβουν {budget}: η επανασχεδίαση όλου του εγγράφου γίνεται στη CPUGPU Memory (MB, 0 = Automatic) Μνήμη GPU (MB, 0 = Αυτόματο)+ {path}: the path is not valid Unicode; save under another name. {path}: η διαδρομή δεν είναι έγκυρο Unicode· αποθηκεύστε με άλλο όνομα.{name} was changed by another app after it was opened or saved here. Το {name} άλλαξε από άλλη εφαρμογή αφού ανοίχτηκε ή αποθηκεύτηκε εδώ.Replace it with this document, or cancel and use File › Save As to keep both. Αντικαταστήστε το με αυτό το έγγραφο ή ακυρώστε και χρησιμοποιήστε Αρχείο › Αποθήκευση ως για να κρατήσετε και τα δύο.Decrease Brush Size Μείωση μεγέθους πινέλουdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 8629fc3fd..4285ca2d4 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -4196,6 +4196,7 @@ navigator Zoom ZoomThis document's layers: {needed} of {budget} for layers Capas de este documento: {needed} de {budget} para capasThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Las capas de este documento necesitan {needed} pero pueden ocupar {budget}: los redibujados de todo el documento usan la CPUGPU Memory (MB, 0 = Automatic) Memoria de GPU (MB, 0 = Automático)+ {path}: the path is not valid Unicode; save under another name. {path}: la ruta no es Unicode válido; guarde con otro nombre.{name} was changed by another app after it was opened or saved here. Otra aplicación cambió {name} después de abrirlo o guardarlo aquí.Replace it with this document, or cancel and use File › Save As to keep both. Reemplázalo con este documento, o cancela y usa Archivo › Guardar como para conservar ambos.Decrease Brush Size Reducir tamaño del pinceldiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex fad669a4b..1d66a57a3 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -3241,6 +3241,7 @@ curves Smooth LisserThis document's layers: {needed} of {budget} for layers Calques de ce document : {needed} sur {budget} pour les calquesThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Les calques de ce document ont besoin de {needed} mais peuvent occuper {budget} : le document entier se redessine sur le CPUGPU Memory (MB, 0 = Automatic) Mémoire GPU (Mo, 0 = Automatique)+ {path}: the path is not valid Unicode; save under another name. {path} : le chemin n’est pas un Unicode valide ; enregistrez sous un autre nom.Replace Remplacer{name} was changed by another app after it was opened or saved here. {name} a été modifié par une autre application après avoir été ouvert ou enregistré ici.Replace it with this document, or cancel and use File › Save As to keep both. Remplacez-le par ce document, ou annulez et utilisez Fichier › Enregistrer sous pour garder les deux.diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex c066f4271..bd614c881 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -4153,6 +4153,7 @@ cameraRaw Yellow SárgaThis document's layers: {needed} of {budget} for layers A dokumentum rétegei: {needed} / {budget} a rétegeknekThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU A dokumentum rétegeinek {needed} kell, de {budget} foglalhatnak: a teljes dokumentum újrarajzolása a CPU-n futGPU Memory (MB, 0 = Automatic) GPU-memória (MB, 0 = Automatikus)+ {path}: the path is not valid Unicode; save under another name. {path}: az elérési út nem érvényes Unicode-szöveg. Mentsd más néven.{name} was changed by another app after it was opened or saved here. A(z) {name} fájlt egy másik alkalmazás módosította, miután itt megnyitották vagy mentették.Replace it with this document, or cancel and use File › Save As to keep both. Cserélje le erre a dokumentumra, vagy válassza a Mégse gombot, és a Fájl › Mentés másként paranccsal tartsa meg mindkettőt.Decrease Brush Size Ecsetméret csökkentésediff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 9e0012bd6..f8b88835b 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -3228,6 +3228,7 @@ curves Smooth HaluskanThis document's layers: {needed} of {budget} for layers Layer dokumen ini: {needed} dari {budget} untuk layerThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Layer dokumen ini membutuhkan {needed} tetapi boleh memakai {budget}: penggambaran ulang seluruh dokumen memakai CPUGPU Memory (MB, 0 = Automatic) Memori GPU (MB, 0 = Otomatis)+ {path}: the path is not valid Unicode; save under another name. {path}: jalur bukan Unicode yang valid; simpan dengan nama lain.Replace Ganti{name} was changed by another app after it was opened or saved here. {name} diubah oleh aplikasi lain setelah dibuka atau disimpan di sini.Replace it with this document, or cancel and use File › Save As to keep both. Ganti dengan dokumen ini, atau batalkan dan gunakan Berkas › Simpan Sebagai untuk menyimpan keduanya.diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex fe8d4cf8d..9094e0fdc 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -4355,6 +4355,7 @@ shape Appearance AspettoThis document's layers: {needed} of {budget} for layers Livelli di questo documento: {needed} su {budget} per i livelliThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU I livelli di questo documento richiedono {needed} ma possono occupare {budget}: i ridisegni dell'intero documento usano la CPUGPU Memory (MB, 0 = Automatic) Memoria GPU (MB, 0 = Automatico)+ {path}: the path is not valid Unicode; save under another name. {path}: il percorso non è Unicode valido; salva con un altro nome.{name} was changed by another app after it was opened or saved here. {name} è stato modificato da un'altra app dopo essere stato aperto o salvato qui.Replace it with this document, or cancel and use File › Save As to keep both. Sostituiscilo con questo documento, oppure annulla e usa File › Salva con nome per tenerli entrambi.Memory Usage Utilizzo memoriadiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex 9b121c4c9..3c76ed270 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3910,6 +3910,7 @@ curves Smooth スムーズThis document's layers: {needed} of {budget} for layers このドキュメントのレイヤー: レイヤー用 {budget} のうち {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU このドキュメントのレイヤーには {needed} が必要ですが、使えるのは {budget} です: ドキュメント全体の再描画は CPU で行われますGPU Memory (MB, 0 = Automatic) GPU メモリ(MB、0 = 自動)+ {path}: the path is not valid Unicode; save under another name. {path}: パスが有効な Unicode ではありません。別の名前で保存してください。Replace 置き換え{name} was changed by another app after it was opened or saved here. {name} は、ここで開くか保存した後に別のアプリで変更されました。Replace it with this document, or cancel and use File › Save As to keep both. この書類で置き換えるか、キャンセルしてファイル › 名前を付けて保存で両方を残してください。diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex dc4bf58c9..68f9f615f 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -3415,6 +3415,7 @@ curves Smooth 매끄럽게This document's layers: {needed} of {budget} for layers 이 문서의 레이어: 레이어용 {budget} 중 {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 이 문서의 레이어에 {needed}가 필요하지만 {budget}만 사용할 수 있습니다: 문서 전체 다시 그리기는 CPU를 사용합니다GPU Memory (MB, 0 = Automatic) GPU 메모리(MB, 0 = 자동)+ {path}: the path is not valid Unicode; save under another name. {path}: 경로가 올바른 유니코드가 아닙니다. 다른 이름으로 저장하세요.Replace 대치{name} was changed by another app after it was opened or saved here. {name}이(가) 여기서 열거나 저장한 뒤 다른 앱에서 변경되었습니다.Replace it with this document, or cancel and use File › Save As to keep both. 이 문서로 대치하거나, 취소하고 파일 › 다른 이름으로 저장을 사용해 둘 다 보관하세요.diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 7104d69ed..b3c57dc3b 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -3994,6 +3994,7 @@ curves Smooth Vloeiend makenThis document's layers: {needed} of {budget} for layers Lagen van dit document: {needed} van {budget} voor lagenThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU De lagen van dit document hebben {needed} nodig maar mogen {budget} gebruiken: het hele document wordt op de CPU opnieuw getekendGPU Memory (MB, 0 = Automatic) GPU-geheugen (MB, 0 = Automatisch)+ {path}: the path is not valid Unicode; save under another name. {path}: het pad is geen geldige Unicode; sla op onder een andere naam.{name} was changed by another app after it was opened or saved here. {name} is door een andere app gewijzigd nadat het hier is geopend of bewaard.Replace it with this document, or cancel and use File › Save As to keep both. Vervang het door dit document, of annuleer en gebruik Bestand › Opslaan als om beide te houden.Decrease Brush Size Penseelgrootte verkleinendiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 8abed62ba..fec2a6699 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3832,6 +3832,7 @@ curves Smooth WygładźThis document's layers: {needed} of {budget} for layers Warstwy tego dokumentu: {needed} z {budget} na warstwyThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Warstwy tego dokumentu potrzebują {needed}, ale mogą zająć {budget}: odświeżanie całego dokumentu używa CPUGPU Memory (MB, 0 = Automatic) Pamięć GPU (MB, 0 = Automatycznie)+ {path}: the path is not valid Unicode; save under another name. {path}: ścieżka nie jest prawidłowym Unicode; zapisz pod inną nazwą.Replace Zastąp{name} was changed by another app after it was opened or saved here. Plik {name} został zmieniony przez inną aplikację po otwarciu lub zapisaniu go tutaj.Replace it with this document, or cancel and use File › Save As to keep both. Zastąp go tym dokumentem albo anuluj i użyj Plik › Zapisz jako, aby zachować oba.diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex b21564e68..2fe6579d5 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -4024,6 +4024,7 @@ layerLabel No Color Sem corThis document's layers: {needed} of {budget} for layers Camadas deste documento: {needed} de {budget} para camadasThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU As camadas deste documento precisam de {needed} mas podem ocupar {budget}: o documento inteiro é redesenhado na CPUGPU Memory (MB, 0 = Automatic) Memória da GPU (MB, 0 = Automático)+ {path}: the path is not valid Unicode; save under another name. {path}: o caminho não é Unicode válido; salve com outro nome.{name} was changed by another app after it was opened or saved here. {name} foi alterado por outro app depois de ser aberto ou salvo aqui.Replace it with this document, or cancel and use File › Save As to keep both. Substitua-o por este documento, ou cancele e use Arquivo › Salvar como para manter os dois.Decrease Brush Size Diminuir tamanho do pinceldiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex ff6fc08de..7e3188233 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -3206,6 +3206,7 @@ curves Smooth СгладитьThis document's layers: {needed} of {budget} for layers Слои этого документа: {needed} из {budget} для слоёвThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Слоям этого документа нужно {needed}, но занимать они могут {budget}: весь документ перерисовывается на CPUGPU Memory (MB, 0 = Automatic) Память GPU (МБ, 0 = автоматически)+ {path}: the path is not valid Unicode; save under another name. {path}: путь не является допустимым Unicode; сохраните под другим именем.Replace Заменить{name} was changed by another app after it was opened or saved here. Файл {name} был изменён другим приложением после того, как его открыли или сохранили здесь.Replace it with this document, or cancel and use File › Save As to keep both. Замените его этим документом или отмените и используйте Файл › Сохранить как, чтобы сохранить оба.diff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsvindex 9a1ceff63..3668277c6 100644--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@ -4307,6 +4307,7 @@ shape Appearance IzgledThis document's layers: {needed} of {budget} for layers Slojevi ovog dokumenta: {needed} od {budget} za slojeveThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Slojevima ovog dokumenta treba {needed}, a smeju da zauzmu {budget}: ceo dokument se ponovo iscrtava na CPU-uGPU Memory (MB, 0 = Automatic) GPU memorija (MB, 0 = Automatski)+ {path}: the path is not valid Unicode; save under another name. {path}: putanja nije ispravan Unicode; sačuvajte pod drugim imenom.{name} was changed by another app after it was opened or saved here. Datoteku {name} je izmenila druga aplikacija nakon što je ovde otvorena ili sačuvana.Replace it with this document, or cancel and use File › Save As to keep both. Zameni je ovim dokumentom ili otkaži i koristi Datoteka › Sačuvaj kao da zadržiš obe.Decrease Brush Size Smanji veličinu četkicediff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex def688abc..ef2de968d 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -3964,6 +3964,7 @@ cameraData Lens LensThis document's layers: {needed} of {budget} for layers Bu belgenin katmanları: katmanlar için {budget} içinden {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Bu belgenin katmanlarının {needed} belleğe ihtiyacı var ama en fazla {budget} kullanabilirler: tüm belgenin yeniden çizimi CPU'yu kullanırGPU Memory (MB, 0 = Automatic) GPU Belleği (MB, 0 = Otomatik)+ {path}: the path is not valid Unicode; save under another name. {path}: yol geçerli bir Unicode değil; başka bir adla kaydedin.{name} was changed by another app after it was opened or saved here. {name}, burada açıldıktan veya kaydedildikten sonra başka bir uygulama tarafından değiştirildi.Replace it with this document, or cancel and use File › Save As to keep both. Bu belgeyle değiştirin ya da iptal edip ikisini de korumak için Dosya › Farklı Kaydet'i kullanın.Decrease Brush Size Fırça boyutunu küçültdiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex e28ea0008..bbc4ea5ef 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3933,6 +3933,7 @@ curves Smooth ЗгладитиThis document's layers: {needed} of {budget} for layers Шари цього документа: {needed} з {budget} для шарівThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Шарам цього документа потрібно {needed}, але займати вони можуть {budget}: увесь документ перемальовується на CPUGPU Memory (MB, 0 = Automatic) Пам'ять GPU (МБ, 0 = автоматично)+ {path}: the path is not valid Unicode; save under another name. {path}: шлях не є коректним Unicode; збережіть під іншою назвою.Replace Замінити{name} was changed by another app after it was opened or saved here. Файл {name} змінила інша програма після того, як його тут відкрили або зберегли.Replace it with this document, or cancel and use File › Save As to keep both. Замініть його цим документом або скасуйте й скористайтеся Файл › Зберегти як, щоб зберегти обидва.diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex 503cc1006..78d9a20fd 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -3720,6 +3720,7 @@ curves Smooth Làm mượtThis document's layers: {needed} of {budget} for layers Các lớp của tài liệu này: {needed} trên {budget} dành cho lớpThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Các lớp của tài liệu này cần {needed} nhưng chỉ được dùng {budget}: vẽ lại toàn bộ tài liệu dùng CPUGPU Memory (MB, 0 = Automatic) Bộ nhớ GPU (MB, 0 = Tự động)+ {path}: the path is not valid Unicode; save under another name. {path}: đường dẫn không phải Unicode hợp lệ; hãy lưu với tên khác.Replace Thay thế{name} was changed by another app after it was opened or saved here. {name} đã bị một ứng dụng khác thay đổi sau khi được mở hoặc lưu ở đây.Replace it with this document, or cancel and use File › Save As to keep both. Thay thế bằng tài liệu này, hoặc hủy và dùng Tệp › Lưu thành để giữ cả hai.diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex a030a8885..0b558dcf6 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2857,6 +2857,7 @@ curves Smooth 平滑This document's layers: {needed} of {budget} for layers 此文档的图层:图层可用 {budget} 中的 {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 此文档的图层需要 {needed},但只能占用 {budget}:整个文档的重绘使用 CPUGPU Memory (MB, 0 = Automatic) GPU 内存(MB,0 = 自动)+ {path}: the path is not valid Unicode; save under another name. {path}:路径不是有效的 Unicode;请以其他名称存储。Replace 替换{name} was changed by another app after it was opened or saved here. {name} 在此处打开或存储后已被其他应用更改。Replace it with this document, or cancel and use File › Save As to keep both. 用此文档替换它,或取消并使用“文件 › 另存为”以保留两者。diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 25a05a182..6be248a54 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2842,6 +2842,7 @@ curves Smooth 平滑This document's layers: {needed} of {budget} for layers 此文件的圖層:圖層可用 {budget} 中的 {needed}This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU 此文件的圖層需要 {needed},但只能佔用 {budget}:整份文件的重繪使用 CPUGPU Memory (MB, 0 = Automatic) GPU 記憶體(MB,0 = 自動)+ {path}: the path is not valid Unicode; save under another name. {path}:路徑不是有效的 Unicode;請以其他名稱儲存。Replace 取代{name} was changed by another app after it was opened or saved here. {name} 在此處開啟或儲存後已被其他 App 更改。Replace it with this document, or cancel and use File › Save As to keep both. 以此文件取代它,或取消並使用「檔案 › 另存新檔」以保留兩者。