From ccee4894bdab8f34930f1122aab80259bd98d18c Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:28:40 +0200 Subject: [PATCH 01/23] Use craft-print for PhotoCraft system printing --- Cargo.lock | 10 +++ Cargo.toml | 1 + crates/engine/Cargo.toml | 4 + crates/engine/src/jobs.rs | 5 ++ crates/engine/src/print_cmds.rs | 102 ++++++++++++++++---------- crates/engine/src/print_cmds/tests.rs | 68 ++++++++++++++++- crates/ui-egui/src/file_ui.rs | 9 ++- crates/ui-egui/src/jobs_ui.rs | 8 +- crates/ui-egui/src/jobs_ui_tests.rs | 41 +++++++++++ docs/development.md | 18 +++++ 10 files changed, 222 insertions(+), 44 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fde4ac01b8..54187a84f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1121,6 +1121,14 @@ dependencies = [ "libc", ] +[[package]] +name = "craft-print" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=d991bf6792f8ade99c51358bf3c1d902c8cd96b5#d991bf6792f8ade99c51358bf3c1d902c8cd96b5" +dependencies = [ + "tempfile", +] + [[package]] name = "craft-ui" version = "0.1.0" @@ -4348,6 +4356,7 @@ name = "photocraft-engine" version = "0.7.0" dependencies = [ "blake3", + "craft-print", "exr", "flate2", "photocraft-affinity", @@ -4372,6 +4381,7 @@ dependencies = [ "roxmltree", "serde", "serde_json", + "tempfile", "thiserror 2.0.21", "wat", ] diff --git a/Cargo.toml b/Cargo.toml index 7502ff4fd5..1ae1c2f5ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,7 @@ photocraft-testkit = { path = "crates/testkit" } photocraft-tablet = { path = "crates/tablet" } # external +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "d991bf6792f8ade99c51358bf3c1d902c8cd96b5" } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index fa15c30986..631befd39b 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -34,6 +34,10 @@ photocraft-plugins = { workspace = true } blake3 = { version = "1.8", default-features = false, features = ["pure"] } photocraft-codecs = { workspace = true } flate2 = { workspace = true } +craft-print = { workspace = true } + +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +tempfile = "3" # Photoshop `.kys` shortcut sets (`edit.keyboardShortcuts` `importKys`); already in the tree # through photocraft-ui-egui and usvg. roxmltree = "0.20" diff --git a/crates/engine/src/jobs.rs b/crates/engine/src/jobs.rs index 15e7387b0e..d0349300c0 100644 --- a/crates/engine/src/jobs.rs +++ b/crates/engine/src/jobs.rs @@ -527,6 +527,11 @@ impl Session { /// stays unchanged. The document is unlocked at once. False if no such job is running. pub fn cancel_job(&mut self, id: JobId) -> bool { let Some(i) = self.jobs.running.iter().position(|r| r.id == id) else { return false }; + // A print worker can already have handed the job to the OS. Discarding its result + // would falsely report cancellation; removal belongs to the system print queue. + if matches!(self.jobs.running[i].command.as_str(), "file.print" | "file.printOneCopy") { + return false; + } let job = self.jobs.running.remove(i); job.ctx.cancel(); self.end_job(&job, JobOutcome::Cancelled); diff --git a/crates/engine/src/print_cmds.rs b/crates/engine/src/print_cmds.rs index 59d6b3e1e8..430fd3bde4 100644 --- a/crates/engine/src/print_cmds.rs +++ b/crates/engine/src/print_cmds.rs @@ -4,8 +4,8 @@ //! scale, colour handling with printer profile / intent / black-point compensation, corner and //! centre crop marks, registration marks, description and label) with a small PDF writer //! (ISO 32000: one page, a Flate-compressed image XObject, vector marks, Helvetica text), then -//! hands it to the system spooler with `lp` (CUPS, macOS and Linux). `"dryRun": true` stops -//! before spooling and reports the command line, which is how the tests exercise the path. +//! hands its bytes to `craft-print` (CUPS on macOS/Linux, Windows PDF printing on Windows). +//! `"dryRun": true` retains a diagnostic PDF and reports the backend command without spooling. //! //! Paths to Illustrator writes the document's paths as an Adobe Illustrator 3 compatible //! PostScript file (`m`/`L`/`C` path construction, `n`/`N` unpainted closed/open paths, `*u`/`*U` @@ -330,8 +330,37 @@ pub fn layout(doc: &Document, p: &Value, cmd: &str) -> Result { fn do_print(s: &mut Session, p: &Value, cmd: &str) -> Result { let d = s.active().ok_or(EngineError::NoDocument)?; let doc = d.doc.clone(); - let PrintLayout { paper: (pw, ph), rect: (x, y, w, h), scale, marks, emulsion_down } = layout(&doc, p, cmd)?; - let (img, color) = print_image(&doc, p, cmd)?; + let params = p.clone(); + let worker_params = params.clone(); + let command = cmd.to_string(); + let send = p.get("send").and_then(Value::as_bool).unwrap_or(!p.get("output").and_then(Value::as_str).is_some_and(|v| !v.is_empty())); + if send && !p.get("dryRun").and_then(Value::as_bool).unwrap_or(false) { + // Session::execute remains synchronous; the desktop's Session::start snapshots here + // and runs PDF composition and the potentially slow driver on a worker. + return crate::jobs::run( + s, + "Print", + false, + move |ctx| { + ctx.progress(0.0, "Print"); + render_and_spool(&doc, &worker_params, &command) + }, + move |s, result| { + remember_print(s, ¶ms); + crate::automate_cmds::fire_event(s, "print"); + Ok(result) + }, + ); + } + let result = render_and_spool(&doc, p, cmd)?; + remember_print(s, p); + crate::automate_cmds::fire_event(s, "print"); + Ok(result) +} + +fn render_and_spool(doc: &Document, p: &Value, cmd: &str) -> Result { + let PrintLayout { paper: (pw, ph), rect: (x, y, w, h), scale, marks, emulsion_down } = layout(doc, p, cmd)?; + let (img, color) = print_image(doc, p, cmd)?; let description = p .get("description") .and_then(Value::as_bool) @@ -341,38 +370,35 @@ fn do_print(s: &mut Session, p: &Value, cmd: &str) -> Result { let page = PrintPage { paper: (pw, ph), image: img, rect: (x, y, w, h), marks, description, label, emulsion_down }; let output = p.get("output").and_then(Value::as_str).filter(|v| !v.is_empty()).map(str::to_string); let send = p.get("send").and_then(Value::as_bool).unwrap_or(output.is_none()); - let pdf_path = match &output { - Some(o) => o.clone(), - None => { - // Unique per call: concurrent prints of same-named documents must not share a spool file. - static SEQ: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0); - let n = SEQ.fetch_add(1, std::sync::atomic::Ordering::Relaxed); - let tmp = std::env::temp_dir().to_string_lossy().into_owned(); - join(&tmp, &format!("{}-print-{}-{n}.pdf", crate::file_cmds::sanitize(&stem(&doc.name)), std::process::id())) - } - }; - let copies = crate::commands::int(p, "copies").unwrap_or(1).clamp(1, 999); + let copies = crate::commands::int(p, "copies").unwrap_or(1).clamp(1, 999) as u32; let dry = p.get("dryRun").and_then(Value::as_bool).unwrap_or(false); let pdf = print_pdf(&page); - write_file(&pdf_path, &pdf)?; - let mut argv: Vec = vec!["lp".into()]; - if let Some(pr) = p.get("printer").and_then(Value::as_str).filter(|v| !v.is_empty()) { - argv.extend(["-d".into(), pr.to_string()]); - } - if copies > 1 { - argv.extend(["-n".into(), copies.to_string()]); - } - argv.extend(["-t".into(), doc.name.clone(), pdf_path.clone()]); + let job = craft_print::Job { + printer: p.get("printer").and_then(Value::as_str).filter(|v| !v.is_empty()).map(str::to_string), + copies, + title: doc.name.clone(), + // PhotoCraft already placed and scaled the image on its physical sheet. Scaling again + // in the driver would change the preview, print resolution and crop-mark positions. + scaling: craft_print::Scaling::Exact, + ..Default::default() + }; + let command = if send { json!(craft_print::command_preview(&job).map_err(other)?) } else { Value::Null }; + let pdf_path = match output { + Some(path) => { + write_file(&path, &pdf)?; + Some(path) + } + None if dry || !send => Some(diagnostic_pdf(&pdf)?), + None => None, + }; let mut sent = false; let mut spool = Value::Null; if send && !dry { - spool = json!(spool_pdf(&argv)?); + spool = json!(craft_print::submit(&pdf, &job).map_err(other)?); sent = true; } - remember_print(s, p); - crate::automate_cmds::fire_event(s, "print"); Ok( - json!({"pdf": pdf_path, "bytes": pdf.len(), "paper": [pw, ph], "imageRect": [x, y, w, h], "emulsionDown": emulsion_down, "scale": scale * 100.0, "copies": copies, "command": if send { json!(argv) } else { Value::Null }, "sent": sent, "spooler": spool, "color": color}), + json!({"pdf": pdf_path, "bytes": pdf.len(), "paper": [pw, ph], "imageRect": [x, y, w, h], "emulsionDown": emulsion_down, "scale": scale * 100.0, "copies": copies, "command": command, "sent": sent, "spooler": spool, "color": color}), ) } @@ -386,17 +412,19 @@ fn remember_print(s: &mut Session, p: &Value) { s.file_menu.last_print = Some(remembered); } +/// A requested preview/export artifact belongs to the caller, unlike a spooler's temporary +/// transport file. Create it exclusively and keep it so the command's `pdf` path remains usable. #[cfg(not(target_arch = "wasm32"))] -fn spool_pdf(argv: &[String]) -> Result { - let out = std::process::Command::new(&argv[0]).args(&argv[1..]).output().map_err(|e| other(format!("could not run `lp` (CUPS): {e}")))?; - if !out.status.success() { - return Err(other(format!("lp failed: {}", String::from_utf8_lossy(&out.stderr).trim()))); - } - Ok(String::from_utf8_lossy(&out.stdout).trim().to_string()) +fn diagnostic_pdf(pdf: &[u8]) -> Result { + let mut file = tempfile::Builder::new().prefix("photocraft-print-").suffix(".pdf").tempfile().map_err(other)?; + file.write_all(pdf).map_err(other)?; + file.flush().map_err(other)?; + let (_, path) = file.keep().map_err(other)?; + Ok(path.to_string_lossy().into_owned()) } #[cfg(target_arch = "wasm32")] -fn spool_pdf(_: &[String]) -> Result { - Err(other("printing needs the desktop app")) +fn diagnostic_pdf(_: &[u8]) -> Result { + Err(other("printing needs the desktop app; specify an output PDF path instead")) } fn print(s: &mut Session, p: &Value) -> Result { @@ -567,7 +595,7 @@ pub fn specs() -> Vec { CommandSpec { id: $id, label: $label, menu: $menu, shortcut: $sc, params: $params, enabled: $enabled, journal: true, run: $run } }; } - const PRINT_PARAMS: &str = r##"{"printer":name? (default printer),"copies":1..999=1,"paper":"letter|legal|tabloid|a3|a4|a5|4x6|5x7"|[w,h] pt="letter","orientation":"portrait|landscape"="portrait","center":bool=true,"top":in?,"left":in?,"scale":%=100,"scaleToFit":bool=false,"colorHandling":"printerManages|photocraftManages|noColorManagement"="printerManages","printerProfile":profile? (photocraftManages),"intent":"perceptual|relative|saturation|absolute"="relative","bpc":bool=true,"cornerCropMarks":bool,"centerCropMarks":bool,"registrationMarks":bool,"description":bool,"labels":bool,"emulsionDown":bool=false (mirror the page left to right, for sublimation and other transfer printing),"output":pdf path? (print to PDF; then "send" defaults to false),"send":bool?,"dryRun":bool=false (render the PDF, report the lp command, don't spool)} → {pdf, imageRect, command, sent}"##; + const PRINT_PARAMS: &str = r##"{"printer":name? (default printer),"copies":1..999=1,"paper":"letter|legal|tabloid|a3|a4|a5|4x6|5x7"|[w,h] pt="letter","orientation":"portrait|landscape"="portrait","center":bool=true,"top":in?,"left":in?,"scale":%=100,"scaleToFit":bool=false,"colorHandling":"printerManages|photocraftManages|noColorManagement"="printerManages","printerProfile":profile? (photocraftManages),"intent":"perceptual|relative|saturation|absolute"="relative","bpc":bool=true,"cornerCropMarks":bool,"centerCropMarks":bool,"registrationMarks":bool,"description":bool,"labels":bool,"emulsionDown":bool=false (mirror the page left to right, for sublimation and other transfer printing),"output":pdf path? (print to PDF; then "send" defaults to false),"send":bool?,"dryRun":bool=false (render a diagnostic PDF, report the backend command, don't spool)} → {pdf:path|null (null for spool-only jobs), imageRect, command:diagnostic array|null, sent}"##; vec![ spec!("file.print", "Print…", &["File"], Some("Cmd+P"), PRINT_PARAMS, native_doc, print), spec!( diff --git a/crates/engine/src/print_cmds/tests.rs b/crates/engine/src/print_cmds/tests.rs index 877fb945ff..e8e55c8961 100644 --- a/crates/engine/src/print_cmds/tests.rs +++ b/crates/engine/src/print_cmds/tests.rs @@ -33,7 +33,7 @@ fn pdf_image(pdf: &[u8]) -> (u32, u32, String, Vec) { } #[test] -fn print_dry_run_renders_a_pdf_and_reports_lp() { +fn print_dry_run_renders_a_pdf_and_reports_the_platform_backend() { let dir = tmp("print"); for depth in [8, 16, 32] { let mut s = session("rgb", depth); @@ -44,7 +44,14 @@ fn print_dry_run_renders_a_pdf_and_reports_lp() { ) .unwrap(); let cmd: Vec = serde_json::from_value(r["command"].clone()).unwrap(); - assert_eq!(&cmd[..5], &["lp", "-d", "Office", "-n", "2"]); + #[cfg(unix)] + { + assert_eq!(&cmd[..5], &["lp", "-d", "Office", "-n", "2"]); + assert!(cmd.contains(&"fit-to-page=false".into())); + assert!(!cmd.contains(&r["pdf"].as_str().unwrap().to_string()), "PDF is streamed, not passed as a file"); + } + #[cfg(windows)] + assert!(cmd.last().unwrap().contains("craft-print PDF spooler")); assert_eq!(r["sent"], false); let pdf = std::fs::read(r["pdf"].as_str().unwrap()).unwrap(); assert!(pdf.starts_with(b"%PDF-1.4")); @@ -152,13 +159,17 @@ fn printer_profile_can_be_an_installed_icc_file() { #[test] fn print_one_copy_repeats_the_last_settings() { let mut s = session("rgb", 8); - s.execute("file.print", json!({"dryRun": true, "copies": 3, "paper": "a5", "scale": 50})).unwrap(); + let first = s.execute("file.print", json!({"dryRun": true, "copies": 3, "paper": "a5", "scale": 50})).unwrap(); + std::fs::remove_file(first["pdf"].as_str().unwrap()).unwrap(); let r = s.execute("file.printOneCopy", json!({"dryRun": true})).unwrap(); assert_eq!(r["copies"], 1); assert_eq!(r["paper"], json!([419.53, 595.28])); assert_eq!(r["scale"], 50.0); let cmd: Vec = serde_json::from_value(r["command"].clone()).unwrap(); - assert!(!cmd.contains(&"-n".to_string())); + #[cfg(unix)] + assert_eq!(&cmd[..3], &["lp", "-n", "1"]); + #[cfg(windows)] + assert!(cmd.last().unwrap().contains("craft-print PDF spooler")); let _ = std::fs::remove_file(r["pdf"].as_str().unwrap()); } @@ -224,3 +235,52 @@ fn paths_export_as_illustrator_postscript() { assert_eq!(r["paths"], 1); assert!(s.execute("file.export.pathsToIllustrator", json!({"paths": "Nope"})).is_err()); } + +/// Launch the command in a subprocess with a fake CUPS binary: the parent process's PATH and +/// parallel tests are untouched, and the real spool boundary still consumes the PDF bytes. +#[cfg(unix)] +#[test] +fn spool_transport_streams_pdf_and_propagates_refusal() { + const CHILD: &str = "PHOTOCRAFT_TEST_PRINT_TRANSPORT"; + if let Ok(dir) = std::env::var(CHILD) { + let mut s = session("rgb", 8); + let crate::jobs::Started::Job(job) = s.start("file.print", json!({"printer": "Office", "copies": 3, "paper": "a4", "scale": 50})).unwrap() else { + panic!("desktop printing must start on a worker"); + }; + assert!(!s.cancel_job(job), "queue side effects must not be reported as cancelled"); + let out = s.wait_job(job).unwrap(); + assert_eq!(out["sent"], true); + assert_eq!(out["spooler"], "request id is Office-42"); + assert!(out["pdf"].is_null(), "spool-only printing leaves no diagnostic PDF"); + let pdf = std::fs::read(format!("{dir}/received.pdf")).unwrap(); + assert!(pdf.starts_with(b"%PDF-1.4")); + assert!(String::from_utf8_lossy(&pdf).contains("/MediaBox [0 0 595.28 841.89]")); + let args = std::fs::read_to_string(format!("{dir}/args")).unwrap(); + assert!(args.contains("fit-to-page=false")); + assert!(args.contains("-n\n3\n")); + assert!(!args.contains(".pdf")); + let remembered = s.file_menu.last_print.clone(); + let explicit = format!("{dir}/saved.pdf"); + let err = s.execute("file.print", json!({"printer": "Refuse", "output": explicit, "send": true})).unwrap_err(); + assert!(err.to_string().contains("queue refused"), "{err}"); + assert!(std::fs::read(&explicit).unwrap().starts_with(b"%PDF-1.4"), "explicit export survives a spool refusal"); + assert_eq!(s.file_menu.last_print, remembered, "failed printing does not replace repeat settings"); + return; + } + use std::os::unix::fs::PermissionsExt; + let dir = tempfile::tempdir().unwrap(); + let script = dir.path().join("lp"); + std::fs::write( + &script, + b"#!/bin/sh\nif [ \"$2\" = Refuse ]; then echo 'queue refused' >&2; exit 1; fi\nprintf '%s\\n' \"$@\" > \"$PHOTOCRAFT_TEST_PRINT_TRANSPORT/args\"\n/bin/cat > \"$PHOTOCRAFT_TEST_PRINT_TRANSPORT/received.pdf\"\necho 'request id is Office-42 (0 file(s))'\n", + ).unwrap(); + std::fs::set_permissions(&script, std::fs::Permissions::from_mode(0o700)).unwrap(); + let result = std::process::Command::new(std::env::current_exe().unwrap()) + .args(["--exact", "print_cmds::tests::spool_transport_streams_pdf_and_propagates_refusal", "--nocapture"]) + .env(CHILD, dir.path()) + .env("PATH", dir.path()) + .output() + .unwrap(); + assert!(result.status.success(), "{}\n{}", String::from_utf8_lossy(&result.stdout), String::from_utf8_lossy(&result.stderr)); + assert!(String::from_utf8_lossy(&result.stdout).contains("1 passed"), "child must select the transport test"); +} diff --git a/crates/ui-egui/src/file_ui.rs b/crates/ui-egui/src/file_ui.rs index 8b96a51a3d..0ac8f98028 100644 --- a/crates/ui-egui/src/file_ui.rs +++ b/crates/ui-egui/src/file_ui.rs @@ -840,6 +840,13 @@ fn print_body(app: &mut PhotocraftApp, ui: &mut egui::Ui, f: &mut Map) -> Result { let r = app.run("file.print", params(f))?; + if r["pending"] != json!(true) { + print_status(app, &r); + } + Ok(r) +} + +pub(crate) fn print_status(app: &mut PhotocraftApp, r: &Value) { app.ui.status = if r["sent"] == json!(true) { let template = "Sent to the printer ({spooler})"; crate::i18n::fmt(tl!(template), &[("spooler", r["spooler"].as_str().unwrap_or(""))]) @@ -847,7 +854,7 @@ fn print_confirm(app: &mut PhotocraftApp, f: &Map) -> Result { + crate::file_ui::print_status(app, result); + } JobOutcome::Done(_) => { app.sync_views(); app.ui.status = e.label; @@ -576,12 +579,13 @@ pub fn status_progress(app: &mut PhotocraftApp, ui: &mut egui::Ui) { let (bar_w, bar_h) = if t.pro { (120.0, 6.0) } else { (140.0, 6.0) }; let more = app.session.jobs().len().saturating_sub(1); // Right to left: ×, percentage, bar, label. - let (xr, xresp) = ui.allocate_exact_size(vec2(18.0, 18.0), Sense::click()); + let print = matches!(j.command.as_str(), "file.print" | "file.printOneCopy"); + let (xr, xresp) = ui.allocate_exact_size(vec2(18.0, 18.0), if print { Sense::hover() } else { Sense::click() }); if xresp.hovered() { ui.painter().rect_filled(xr, t.radius_sm, t.hover); } crate::icons::paint(ui, xr, "x", 11.0, if xresp.hovered() { t.text } else { t.text_dim }); - let xresp = xresp.on_hover_text(tl!("Cancel (Esc)")); + let xresp = xresp.on_hover_text(if print { tl!("Manage submitted jobs in the system print queue") } else { tl!("Cancel (Esc)") }); ui.label(RichText::new(percent(&j)).color(t.text_dim).size(11.5).monospace()); let (br, _) = ui.allocate_exact_size(vec2(bar_w, bar_h), Sense::hover()); bar(ui, br, shown_fraction(&j), &t); diff --git a/crates/ui-egui/src/jobs_ui_tests.rs b/crates/ui-egui/src/jobs_ui_tests.rs index f0c629105a..975110941c 100644 --- a/crates/ui-egui/src/jobs_ui_tests.rs +++ b/crates/ui-egui/src/jobs_ui_tests.rs @@ -577,3 +577,44 @@ fn a_finished_job_beeps_when_the_preference_is_on() { frames_for(&mut h, 800); assert_eq!(BEEPS.load(Ordering::Relaxed), 1, "one beep for the finished job"); } + +#[test] +fn printing_keeps_drawing_and_reports_only_the_final_spooler_result() { + for success in [true, false] { + let mut h = app_harness(); + let gate = Arc::new(AtomicBool::new(false)); + let worker_gate = gate.clone(); + let Started::Job(id) = h.state_mut().session.start_job( + "file.print", + json!({}), + "Print", + false, + move |_| { + while !worker_gate.load(Ordering::Relaxed) { + std::thread::sleep(Duration::from_millis(1)); + } + if success { Ok(json!({"sent": true, "spooler": "request id is Office-42", "pdf": null})) } + else { Err(photocraft_engine::EngineError::Other("queue refused".into())) } + }, + |_, result| Ok(result), + ).unwrap() else { panic!("must run on a worker") }; + let frame = h.state().frame; + h.run_steps(4); + assert!(h.state().frame > frame); + assert!(!h.state().ui.status.contains("Sent to the printer")); + h.key_press(egui::Key::Escape); + h.run_steps(2); + assert!(h.state().session.job(id).is_some(), "Esc cannot retract a submitted job"); + gate.store(true, Ordering::Relaxed); + let deadline = Instant::now() + Duration::from_secs(10); + while h.state().session.has_jobs() && Instant::now() < deadline { h.step(); } + assert!(!h.state().session.has_jobs()); + if success { + assert!(h.state().ui.status.contains("Office-42"), "{}", h.state().ui.status); + assert!(!h.state().ui.status_error); + } else { + assert!(h.state().ui.status.contains("queue refused"), "{}", h.state().ui.status); + assert!(h.state().ui.status_error); + } + } +} diff --git a/docs/development.md b/docs/development.md index 6eac94c6ce..567ba9648f 100644 --- a/docs/development.md +++ b/docs/development.md @@ -526,3 +526,21 @@ stroke is drawn above its clipped layers; linked effect patterns tile from the l reference point; stroke distances follow a 5 × 5 chamfer metric (1, √2, √5) seeded at sub-pixel edge offsets; interior effects keep the layer's alpha; outside strokes blend onto the backdrop with their own modes, an upper stroke covering lower ones. + +## System printing + +`file.print` and `file.printOneCopy` keep PDF layout, scaling, marks and ICC conversion in +PhotoCraft and submit the rendered bytes through `craft-print` at the Git revision pinned in +`Cargo.toml`. CUPS streams the PDF on macOS/Linux; Windows uses the shared Windows PDF backend. +The driver receives exact physical sheet size so it does not scale PhotoCraft's layout twice. +Windows raster printing does not establish physical-printer colour fidelity; test critical +photo output with the actual printer and its profile. + +Desktop commands run composition and submission on a background worker. The UI reports success +only when the spooler accepts the job; remove submitted jobs in the system print queue. Headless +`Session::execute` stays synchronous. The returned `pdf` is `null` for a spool-only job, and +`command` is a diagnostic preview, not an executable command with a PDF path. Supplying `output` +keeps a PDF at that path and defaults `send` to false. `dryRun` renders a diagnostic PDF but never +submits; an implicit diagnostic file is exclusively created with a random name and belongs to +the caller, who may delete it after inspection. Shared spooler transport files are automatically +removed on Windows; CUPS needs none. From 698c0f554db2047b7e3a81a5c1dada94d050fb10 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:29:59 +0200 Subject: [PATCH 02/23] Format printing completion regression --- crates/ui-egui/src/jobs_ui_tests.rs | 42 ++++++++++++++++++----------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/crates/ui-egui/src/jobs_ui_tests.rs b/crates/ui-egui/src/jobs_ui_tests.rs index 975110941c..dcf24594b2 100644 --- a/crates/ui-egui/src/jobs_ui_tests.rs +++ b/crates/ui-egui/src/jobs_ui_tests.rs @@ -584,20 +584,30 @@ fn printing_keeps_drawing_and_reports_only_the_final_spooler_result() { let mut h = app_harness(); let gate = Arc::new(AtomicBool::new(false)); let worker_gate = gate.clone(); - let Started::Job(id) = h.state_mut().session.start_job( - "file.print", - json!({}), - "Print", - false, - move |_| { - while !worker_gate.load(Ordering::Relaxed) { - std::thread::sleep(Duration::from_millis(1)); - } - if success { Ok(json!({"sent": true, "spooler": "request id is Office-42", "pdf": null})) } - else { Err(photocraft_engine::EngineError::Other("queue refused".into())) } - }, - |_, result| Ok(result), - ).unwrap() else { panic!("must run on a worker") }; + let Started::Job(id) = h + .state_mut() + .session + .start_job( + "file.print", + json!({}), + "Print", + false, + move |_| { + while !worker_gate.load(Ordering::Relaxed) { + std::thread::sleep(Duration::from_millis(1)); + } + if success { + Ok(json!({"sent": true, "spooler": "request id is Office-42", "pdf": null})) + } else { + Err(photocraft_engine::EngineError::Other("queue refused".into())) + } + }, + |_, result| Ok(result), + ) + .unwrap() + else { + panic!("must run on a worker") + }; let frame = h.state().frame; h.run_steps(4); assert!(h.state().frame > frame); @@ -607,7 +617,9 @@ fn printing_keeps_drawing_and_reports_only_the_final_spooler_result() { assert!(h.state().session.job(id).is_some(), "Esc cannot retract a submitted job"); gate.store(true, Ordering::Relaxed); let deadline = Instant::now() + Duration::from_secs(10); - while h.state().session.has_jobs() && Instant::now() < deadline { h.step(); } + while h.state().session.has_jobs() && Instant::now() < deadline { + h.step(); + } assert!(!h.state().session.has_jobs()); if success { assert!(h.state().ui.status.contains("Office-42"), "{}", h.state().ui.status); From bb46f846d9d6490e77c08a05ee662ec75930fe43 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:32:26 +0200 Subject: [PATCH 03/23] Keep print completion tied to its document and hold quit --- crates/engine/src/print_cmds.rs | 12 +++++++++++- crates/engine/src/print_cmds/tests.rs | 8 ++++++++ crates/ui-egui/src/discard_ui.rs | 6 +++--- crates/ui-egui/src/jobs_ui.rs | 9 ++++++--- crates/ui-egui/src/jobs_ui_tests.rs | 5 +++++ crates/ui-egui/src/lib.rs | 5 +++++ 6 files changed, 38 insertions(+), 7 deletions(-) diff --git a/crates/engine/src/print_cmds.rs b/crates/engine/src/print_cmds.rs index 430fd3bde4..37dee42adc 100644 --- a/crates/engine/src/print_cmds.rs +++ b/crates/engine/src/print_cmds.rs @@ -330,6 +330,7 @@ pub fn layout(doc: &Document, p: &Value, cmd: &str) -> Result { fn do_print(s: &mut Session, p: &Value, cmd: &str) -> Result { let d = s.active().ok_or(EngineError::NoDocument)?; let doc = d.doc.clone(); + let doc_id = doc.id; let params = p.clone(); let worker_params = params.clone(); let command = cmd.to_string(); @@ -347,7 +348,16 @@ fn do_print(s: &mut Session, p: &Value, cmd: &str) -> Result { }, move |s, result| { remember_print(s, ¶ms); - crate::automate_cmds::fire_event(s, "print"); + // A user can switch tabs while printing. Hooks belong to the source document; + // a closed source has no document left to modify, as for background saves. + let viewed = s.active().map(|st| st.doc.id); + if let Some(index) = s.documents().iter().position(|st| st.doc.id == doc_id) { + s.set_active(index); + crate::automate_cmds::fire_event(s, "print"); + if let Some(index) = viewed.and_then(|id| s.documents().iter().position(|st| st.doc.id == id)) { + s.set_active(index); + } + } Ok(result) }, ); diff --git a/crates/engine/src/print_cmds/tests.rs b/crates/engine/src/print_cmds/tests.rs index e8e55c8961..23ca04a991 100644 --- a/crates/engine/src/print_cmds/tests.rs +++ b/crates/engine/src/print_cmds/tests.rs @@ -244,11 +244,19 @@ fn spool_transport_streams_pdf_and_propagates_refusal() { const CHILD: &str = "PHOTOCRAFT_TEST_PRINT_TRANSPORT"; if let Ok(dir) = std::env::var(CHILD) { let mut s = session("rgb", 8); + let source = s.active().unwrap().doc.id; + s.execute("file.scripts.scriptEventsManager", json!({"add": {"event": "print", "steps": [["image.imageRotation.90cw", {}]]}})).unwrap(); let crate::jobs::Started::Job(job) = s.start("file.print", json!({"printer": "Office", "copies": 3, "paper": "a4", "scale": 50})).unwrap() else { panic!("desktop printing must start on a worker"); }; assert!(!s.cancel_job(job), "queue side effects must not be reported as cancelled"); + s.execute("file.new", json!({"width": 40, "height": 10})).unwrap(); + let viewed = s.active().unwrap().doc.id; let out = s.wait_job(job).unwrap(); + assert_eq!(s.active().unwrap().doc.id, viewed, "completion keeps the user's tab"); + assert_eq!(s.active().unwrap().doc.size.width, 40, "print hook must not act on the newly viewed document"); + let printed = &s.documents().iter().find(|st| st.doc.id == source).unwrap().doc; + assert_eq!((printed.size.width, printed.size.height), (150, 300), "print hook ran on the source document"); assert_eq!(out["sent"], true); assert_eq!(out["spooler"], "request id is Office-42"); assert!(out["pdf"].is_null(), "spool-only printing leaves no diagnostic PDF"); diff --git a/crates/ui-egui/src/discard_ui.rs b/crates/ui-egui/src/discard_ui.rs index b0b455ec9c..b7ca6ebd60 100644 --- a/crates/ui-egui/src/discard_ui.rs +++ b/crates/ui-egui/src/discard_ui.rs @@ -120,9 +120,9 @@ pub fn guard_window_close(app: &mut PhotocraftApp, ctx: &egui::Context) { ctx.send_viewport_cmd(egui::ViewportCommand::Focus); return; } - // A save still writing in the background finishes first (a saved copy, say, leaves nothing - // unsaved); `jobs_ui` repeats the close when it ends. - if app.saving() { + // A save or print worker must finish its external side effect before the process exits; + // `jobs_ui` repeats the close after completion and keeps errors visible. + if app.saving() || app.printing() { ctx.send_viewport_cmd(egui::ViewportCommand::CancelClose); app.jobs.close_after_saves = true; return; diff --git a/crates/ui-egui/src/jobs_ui.rs b/crates/ui-egui/src/jobs_ui.rs index 4a52e26d48..7b3e0d8a62 100644 --- a/crates/ui-egui/src/jobs_ui.rs +++ b/crates/ui-egui/src/jobs_ui.rs @@ -348,7 +348,7 @@ fn finish_save(app: &mut PhotocraftApp, ctx: &egui::Context, save: SaveJob, labe /// no save worker is left. fn close_after_saves(app: &mut PhotocraftApp, ctx: &egui::Context) { app.jobs.saves.retain(|s| !(s.ended && s.state.finished())); - if !app.saving() && std::mem::take(&mut app.jobs.close_after_saves) { + if !app.saving() && !app.printing() && std::mem::take(&mut app.jobs.close_after_saves) { ctx.send_viewport_cmd(egui::ViewportCommand::Close); } } @@ -363,8 +363,8 @@ pub fn tick(app: &mut PhotocraftApp, ctx: &egui::Context) { if app.jobs.focus.is_some_and(|j| !app.jobs.opens.iter().any(|o| o.job == j)) { app.jobs.focus = app.jobs.opens.last().map(|o| o.job); } - if app.saving() { - close_after_saves(app, ctx); + close_after_saves(app, ctx); + if app.saving() || app.printing() { // Keep checking on a cancelled save's worker until it returns. ctx.request_repaint_after(std::time::Duration::from_millis(50)); } @@ -493,6 +493,9 @@ fn on_event(app: &mut PhotocraftApp, ctx: &egui::Context, e: JobEvent) { app.ui.status_error = false; } JobOutcome::Failed(err) => { + if matches!(e.command.as_str(), "file.print" | "file.printOneCopy") { + app.jobs.close_after_saves = false; + } app.sync_views(); notices::error(app, format!("{}: {err}", e.label)); } diff --git a/crates/ui-egui/src/jobs_ui_tests.rs b/crates/ui-egui/src/jobs_ui_tests.rs index dcf24594b2..2e61142938 100644 --- a/crates/ui-egui/src/jobs_ui_tests.rs +++ b/crates/ui-egui/src/jobs_ui_tests.rs @@ -615,12 +615,17 @@ fn printing_keeps_drawing_and_reports_only_the_final_spooler_result() { h.key_press(egui::Key::Escape); h.run_steps(2); assert!(h.state().session.job(id).is_some(), "Esc cannot retract a submitted job"); + let st = h.state_mut().session.active_mut().unwrap(); + st.saved_revision = st.revision; + assert!(press_window_close(h.state_mut()), "quit waits for print submission"); + assert!(h.state().jobs.close_after_saves); gate.store(true, Ordering::Relaxed); let deadline = Instant::now() + Duration::from_secs(10); while h.state().session.has_jobs() && Instant::now() < deadline { h.step(); } assert!(!h.state().session.has_jobs()); + assert!(!h.state().jobs.close_after_saves, "close repeats on success or is cleared for a visible error"); if success { assert!(h.state().ui.status.contains("Office-42"), "{}", h.state().ui.status); assert!(!h.state().ui.status_error); diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index d3dc82a73a..0bac9f2a93 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -1378,6 +1378,11 @@ impl PhotocraftApp { self.tiff_options.is_some() || self.targa_options.is_some() } + /// A print worker may still be handing a job to the system queue. + pub(crate) fn printing(&self) -> bool { + self.session.jobs().iter().any(|j| matches!(j.command.as_str(), "file.print" | "file.printOneCopy")) + } + /// A save is running in the background. pub(crate) fn saving(&self) -> bool { !self.jobs.saves.is_empty() From c6407cac07c1eb6fdc97f76805ecf2d3010ea0d9 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:34:03 +0200 Subject: [PATCH 04/23] Keep scorecard test reference current --- docs/scorecard.md | 2 +- scorecard/file_compat.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/scorecard.md b/docs/scorecard.md index c6d67f8f9b..1a2aabd980 100644 --- a/docs/scorecard.md +++ b/docs/scorecard.md @@ -123,7 +123,7 @@ Corpus floors (`crates/io/tests/corpus.rs`): the enforced minimums; the corpus t | FILE-216-2 | Large-file fixtures: 20 MP, 150-layer, generated 2 GB PSD and 4-5 GB PSB stress tests | partial | [#216](https://github.com/storytold/photocraft/issues/216) | 4-5 GB PSB fixtures: psd example big_psb writes them (raw and RLE, planes past 2 GiB), io example big_psb_check opens and checks them; opt-in io tests/large_psb.rs (2.5 GB merged image). No 2 GB PSD, 150-layer or 20 MP fixture, nothing in CI | | FILE-216-3 | TIFF, RAW and EXR corpora read by tests; per-camera RAW coverage reported | partial | [#216](https://github.com/storytold/photocraft/issues/216) | EXR: corpus/exr (the OpenEXR deep test images, pinned) is read by codecs tests/deep_exr.rs in the CI corpus job, against the ID manifests of the upstream sidecars. corpus/tiff and corpus/raw are still copied in by hand and no test reads them; no per-camera RAW report | | FILE-216-4 | Exports re-open in a third-party oracle editor | missing | [#216](https://github.com/storytold/photocraft/issues/216) | The round trip is our export -> our import | -| FILE-216-5 | Save-path tests: layered TIFF, PDF, SVG, ACO/ASE, .shc, Smart Filters, atomic-save failure | partial | [#216](https://github.com/storytold/photocraft/issues/216) | Every save path that exists is tested by saving and reading back: layered TIFF io tests/tiff_layers.rs (every_compression_keeps_the_layers, advanced_blending_survives_layered_tiff_in_both_byte_orders), print PDF engine print_cmds/tests.rs (print_dry_run_renders_a_pdf_and_reports_lp decodes the image back), ACO/ASE engine swatch_cmds/tests.rs (aco_round_trip_keeps_16_bit_values_and_books, ase_round_trip_keeps_groups_floats_and_kinds), .shc psd shc.rs shc_round_trips_and_rejects_hostile_input and engine layer_style.rs contour_presets_and_custom_curves_apply_in_one_undo_step, Smart Filters engine tests/smart_psd.rs (smart_filters_survive_psd_in_every_colour_model), atomic-save failure format/src/atomic/tests.rs (BUG-203-6). There is no SVG writer (SVG opens only) and no Photoshop PDF save (FILE-215-10), so those have nothing to test yet; the row stays partial until they exist | +| FILE-216-5 | Save-path tests: layered TIFF, PDF, SVG, ACO/ASE, .shc, Smart Filters, atomic-save failure | partial | [#216](https://github.com/storytold/photocraft/issues/216) | Every save path that exists is tested by saving and reading back: layered TIFF io tests/tiff_layers.rs (every_compression_keeps_the_layers, advanced_blending_survives_layered_tiff_in_both_byte_orders), print PDF engine print_cmds/tests.rs (print_dry_run_renders_a_pdf_and_reports_the_platform_backend decodes the image back), ACO/ASE engine swatch_cmds/tests.rs (aco_round_trip_keeps_16_bit_values_and_books, ase_round_trip_keeps_groups_floats_and_kinds), .shc psd shc.rs shc_round_trips_and_rejects_hostile_input and engine layer_style.rs contour_presets_and_custom_curves_apply_in_one_undo_step, Smart Filters engine tests/smart_psd.rs (smart_filters_survive_psd_in_every_colour_model), atomic-save failure format/src/atomic/tests.rs (BUG-203-6). There is no SVG writer (SVG opens only) and no Photoshop PDF save (FILE-215-10), so those have nothing to test yet; the row stays partial until they exist | | FILE-216-6 | 30-50 end-to-end workflow acceptance tasks driven through MCP or commands | partial | [#216](https://github.com/storytold/photocraft/issues/216) | automation/tests/agent_tasks.rs: 10 MCP tasks | ## Tools diff --git a/scorecard/file_compat.toml b/scorecard/file_compat.toml index 51f40c3a1b..9f39d4b7d9 100644 --- a/scorecard/file_compat.toml +++ b/scorecard/file_compat.toml @@ -185,7 +185,7 @@ id = "FILE-216-5" target = "Save-path tests: layered TIFF, PDF, SVG, ACO/ASE, .shc, Smart Filters, atomic-save failure" status = "partial" issue = 216 -note = "Every save path that exists is tested by saving and reading back: layered TIFF io tests/tiff_layers.rs (every_compression_keeps_the_layers, advanced_blending_survives_layered_tiff_in_both_byte_orders), print PDF engine print_cmds/tests.rs (print_dry_run_renders_a_pdf_and_reports_lp decodes the image back), ACO/ASE engine swatch_cmds/tests.rs (aco_round_trip_keeps_16_bit_values_and_books, ase_round_trip_keeps_groups_floats_and_kinds), .shc psd shc.rs shc_round_trips_and_rejects_hostile_input and engine layer_style.rs contour_presets_and_custom_curves_apply_in_one_undo_step, Smart Filters engine tests/smart_psd.rs (smart_filters_survive_psd_in_every_colour_model), atomic-save failure format/src/atomic/tests.rs (BUG-203-6). There is no SVG writer (SVG opens only) and no Photoshop PDF save (FILE-215-10), so those have nothing to test yet; the row stays partial until they exist" +note = "Every save path that exists is tested by saving and reading back: layered TIFF io tests/tiff_layers.rs (every_compression_keeps_the_layers, advanced_blending_survives_layered_tiff_in_both_byte_orders), print PDF engine print_cmds/tests.rs (print_dry_run_renders_a_pdf_and_reports_the_platform_backend decodes the image back), ACO/ASE engine swatch_cmds/tests.rs (aco_round_trip_keeps_16_bit_values_and_books, ase_round_trip_keeps_groups_floats_and_kinds), .shc psd shc.rs shc_round_trips_and_rejects_hostile_input and engine layer_style.rs contour_presets_and_custom_curves_apply_in_one_undo_step, Smart Filters engine tests/smart_psd.rs (smart_filters_survive_psd_in_every_colour_model), atomic-save failure format/src/atomic/tests.rs (BUG-203-6). There is no SVG writer (SVG opens only) and no Photoshop PDF save (FILE-215-10), so those have nothing to test yet; the row stays partial until they exist" [[item]] id = "FILE-216-6" From 223e9499c3ab5ec9f53537731362a5e4076a2351 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:46:08 +0200 Subject: [PATCH 05/23] Keep keyboard shortcut parser available in browser builds --- crates/engine/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index 631befd39b..741d927a3f 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -36,12 +36,13 @@ photocraft-codecs = { workspace = true } flate2 = { workspace = true } craft-print = { workspace = true } -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -tempfile = "3" # Photoshop `.kys` shortcut sets (`edit.keyboardShortcuts` `importKys`); already in the tree # through photocraft-ui-egui and usvg. roxmltree = "0.20" +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +tempfile = "3" + [dev-dependencies] photocraft-affinity = { workspace = true, features = ["synth"] } # Synthetic camera raw files for the open tests. From b8ea8206cc3879a280e446ea05accd79aa1fd65e Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:51:42 +0200 Subject: [PATCH 06/23] Refresh document views after completed print hooks --- crates/ui-egui/src/jobs_ui.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui-egui/src/jobs_ui.rs b/crates/ui-egui/src/jobs_ui.rs index 7b3e0d8a62..f0d10c3de8 100644 --- a/crates/ui-egui/src/jobs_ui.rs +++ b/crates/ui-egui/src/jobs_ui.rs @@ -485,6 +485,7 @@ fn on_event(app: &mut PhotocraftApp, ctx: &egui::Context, e: JobEvent) { app.ui.brush_tab = 1; } JobOutcome::Done(ref result) if matches!(e.command.as_str(), "file.print" | "file.printOneCopy") => { + app.sync_views(); crate::file_ui::print_status(app, result); } JobOutcome::Done(_) => { From cc902c681b155d7478abb53105a9fe8867742743 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:56:10 +0200 Subject: [PATCH 07/23] Report refused print cancellation accurately to automation --- crates/engine/src/jobs.rs | 10 ++++++++-- crates/engine/src/print_cmds/tests.rs | 2 ++ crates/ui-egui/src/control.rs | 10 ++++------ crates/ui-egui/src/jobs_ui.rs | 8 +++++--- crates/ui-egui/src/jobs_ui_tests.rs | 4 ++++ 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/crates/engine/src/jobs.rs b/crates/engine/src/jobs.rs index d0349300c0..5ea48f9431 100644 --- a/crates/engine/src/jobs.rs +++ b/crates/engine/src/jobs.rs @@ -819,11 +819,17 @@ pub fn specs() -> Vec { None | Some(Value::Null) => { let n = s.jobs.running.len(); s.cancel_all_jobs(); - Ok(json!({"cancelled": n})) + Ok(json!({"cancelled": n.saturating_sub(s.jobs.running.len())})) } Some(v) => { let id = v.as_u64().ok_or_else(|| EngineError::BadParams { cmd: "jobs.cancel".into(), msg: "`job` must be a job id".into() })?; - if s.cancel_job(JobId(id)) { Ok(json!({"cancelled": 1})) } else { Err(EngineError::Other(format!("no running job {id}"))) } + if s.cancel_job(JobId(id)) { + Ok(json!({"cancelled": 1})) + } else if s.job(JobId(id)).is_some() { + Err(EngineError::Other("printing cannot be cancelled here; use the system print queue".into())) + } else { + Err(EngineError::Other(format!("no running job {id}"))) + } } }, journal: false, diff --git a/crates/engine/src/print_cmds/tests.rs b/crates/engine/src/print_cmds/tests.rs index 23ca04a991..061e7538d4 100644 --- a/crates/engine/src/print_cmds/tests.rs +++ b/crates/engine/src/print_cmds/tests.rs @@ -250,6 +250,8 @@ fn spool_transport_streams_pdf_and_propagates_refusal() { panic!("desktop printing must start on a worker"); }; assert!(!s.cancel_job(job), "queue side effects must not be reported as cancelled"); + assert_eq!(s.execute("jobs.cancel", json!({})).unwrap()["cancelled"], 0); + assert!(s.execute("jobs.cancel", json!({"job": job.0})).unwrap_err().to_string().contains("system print queue")); s.execute("file.new", json!({"width": 40, "height": 10})).unwrap(); let viewed = s.active().unwrap().doc.id; let out = s.wait_job(job).unwrap(); diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index b2a48cf6d8..7bba3e0866 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -381,16 +381,14 @@ fn dispatch(app: &mut PhotocraftApp, ctx: &egui::Context, req: &ControlRequest) let all = p.get("job").is_none_or(Value::is_null); match p.get("job").and_then(Value::as_u64) { Some(j) if app.session.job(photocraft_engine::jobs::JobId(j)).is_some() => { - crate::jobs_ui::cancel(app, photocraft_engine::jobs::JobId(j)); - ok(json!({"cancelled": 1})) + let cancelled = crate::jobs_ui::cancel(app, photocraft_engine::jobs::JobId(j)); + ok(json!({"cancelled": usize::from(cancelled)})) } Some(j) => err(format!("no running job {j}")), None if all => { let ids: Vec<_> = app.session.jobs().into_iter().map(|j| j.id).collect(); - for j in &ids { - crate::jobs_ui::cancel(app, *j); - } - ok(json!({"cancelled": ids.len()})) + let cancelled = ids.into_iter().filter(|j| crate::jobs_ui::cancel(app, *j)).count(); + ok(json!({"cancelled": cancelled})) } None => err("`job` must be a job id"), } diff --git a/crates/ui-egui/src/jobs_ui.rs b/crates/ui-egui/src/jobs_ui.rs index f0d10c3de8..f15a464a88 100644 --- a/crates/ui-egui/src/jobs_ui.rs +++ b/crates/ui-egui/src/jobs_ui.rs @@ -391,7 +391,7 @@ pub fn job_in_view(app: &PhotocraftApp) -> Option { } /// Cancel job `id` (the status bar's ×, the dialog's Cancel, Esc, closing an opening tab). -pub fn cancel(app: &mut PhotocraftApp, id: JobId) { +pub fn cancel(app: &mut PhotocraftApp, id: JobId) -> bool { let label = app.session.job(id).map(|j| j.label); // A save that has started replacing the file runs to the end: cancelling it now would leave // the file written but the document marked unsaved. @@ -400,15 +400,17 @@ pub fn cancel(app: &mut PhotocraftApp, id: JobId) { { app.ui.status = crate::i18n::fmt(tl!("{label} is writing the file and can no longer be cancelled"), &[("label", label.as_deref().unwrap_or_default())]); app.ui.status_error = false; - return; + return false; } - if app.session.cancel_job(id) { + let cancelled = app.session.cancel_job(id); + if cancelled { // The event (and its status text) arrives with the next poll; say so now as well. if let Some(l) = label { app.ui.status = crate::i18n::fmt(tl!("Cancelled {label}"), &[("label", &l)]); app.ui.status_error = false; } } + cancelled } fn on_event(app: &mut PhotocraftApp, ctx: &egui::Context, e: JobEvent) { diff --git a/crates/ui-egui/src/jobs_ui_tests.rs b/crates/ui-egui/src/jobs_ui_tests.rs index 2e61142938..2ab8f7e949 100644 --- a/crates/ui-egui/src/jobs_ui_tests.rs +++ b/crates/ui-egui/src/jobs_ui_tests.rs @@ -615,6 +615,10 @@ fn printing_keeps_drawing_and_reports_only_the_final_spooler_result() { h.key_press(egui::Key::Escape); h.run_steps(2); assert!(h.state().session.job(id).is_some(), "Esc cannot retract a submitted job"); + let (request, _) = crate::control::ControlRequest::new("jobs.cancel", json!({"job": id.0})); + let ctx = h.ctx.clone(); + let crate::control::Outcome::Done(reply) = crate::control::handle(h.state_mut(), &ctx, &request) else { panic!("cancel replies immediately") }; + assert_eq!(reply["result"]["cancelled"], 0, "control must not falsely report cancellation: {reply}"); let st = h.state_mut().session.active_mut().unwrap(); st.saved_revision = st.revision; assert!(press_window_close(h.state_mut()), "quit waits for print submission"); From 4bb6ffc46facf502b75864fa7e63b4ea376037a6 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 02:58:32 +0200 Subject: [PATCH 08/23] Record background print hooks as one command --- crates/engine/src/jobs.rs | 9 ++++++++- crates/engine/src/print_cmds/tests.rs | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/jobs.rs b/crates/engine/src/jobs.rs index 5ea48f9431..6c63a1d9c5 100644 --- a/crates/engine/src/jobs.rs +++ b/crates/engine/src/jobs.rs @@ -751,18 +751,25 @@ impl Session { }; self.coalesce_request = coalesce.clone(); self.color_restrict = *color_restrict; + // Apply-time hooks can dispatch commands too. Keep the same single-step recording + // contract as synchronous dispatch without truncating work done while the worker ran. + let nested_from = self.journal.len(); + let recording = if *journal && crate::actions_cmds::replayable(command) { self.actions.recording.take() } else { None }; let r = match apply { Some(f) => std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| f(self, payload))) .unwrap_or_else(|_| Err(EngineError::Other(format!("`{label}` failed with an internal error (logged); the document is unchanged")))), None => Err(EngineError::Other("internal error: job applied twice".into())), }; + if self.actions.recording.is_none() { + self.actions.recording = recording; + } self.coalesce_request = None; self.color_restrict = None; // Finish successful command bookkeeping on the document the job edited. // Restoring the viewed document first would attribute Fade and slice updates // to that document instead, when the user switched tabs mid-job. if r.is_ok() { - self.after_command(command, params.clone(), *journal, None); + self.after_command(command, params.clone(), *journal, Some(nested_from)); } // Keep the user's active document unless the job opened a new one. // This also restores the selection when the apply step returned an error. diff --git a/crates/engine/src/print_cmds/tests.rs b/crates/engine/src/print_cmds/tests.rs index 061e7538d4..c58ae86e45 100644 --- a/crates/engine/src/print_cmds/tests.rs +++ b/crates/engine/src/print_cmds/tests.rs @@ -254,7 +254,10 @@ fn spool_transport_streams_pdf_and_propagates_refusal() { assert!(s.execute("jobs.cancel", json!({"job": job.0})).unwrap_err().to_string().contains("system print queue")); s.execute("file.new", json!({"width": 40, "height": 10})).unwrap(); let viewed = s.active().unwrap().doc.id; + let journal_before_completion = s.journal.len(); let out = s.wait_job(job).unwrap(); + assert_eq!(s.journal.len(), journal_before_completion + 1, "print hooks must not become duplicate recorded action steps"); + assert_eq!(s.journal.last().unwrap().0, "file.print"); assert_eq!(s.active().unwrap().doc.id, viewed, "completion keeps the user's tab"); assert_eq!(s.active().unwrap().doc.size.width, 40, "print hook must not act on the newly viewed document"); let printed = &s.documents().iter().find(|st| st.doc.id == source).unwrap().doc; From f65f7cc9eb80995ed3859de8b1e5329b2605ac07 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 03:24:40 +0200 Subject: [PATCH 09/23] Correct stale HDR Levels test endpoints --- crates/engine/src/adjust_params.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/engine/src/adjust_params.rs b/crates/engine/src/adjust_params.rs index 00fb67dd03..f23af8957f 100644 --- a/crates/engine/src/adjust_params.rs +++ b/crates/engine/src/adjust_params.rs @@ -1240,9 +1240,11 @@ mod tests { #[test] fn destructive_levels_dont_clip_in_32_bit() { // Input 15..230, gamma 1.3, output 10..245: black and white land on the output range in - // integer documents, but in a 32-bit document the curve runs on past it (then 0..1). + // integer documents. Float32 keeps HDR values outside 0..1, as the compositor's real-file + // Levels oracle does. These independently calculated endpoints use the signed-power + // curve at black and white, not display-clipped values. let params = json!({"inBlack": 15, "inWhite": 230, "gamma": 1.3, "outBlack": 10, "outWhite": 245}); - for (depth, low, high) in [(8, 10.0, 245.0), (16, 10.0, 245.0), (32, 0.0, 255.0)] { + for (depth, low, high, tolerance) in [(8, 10.0, 245.0, 0.6), (16, 10.0, 245.0, 0.6), (32, -20.308_89, 265.750_3, 0.01)] { let mut s = crate::Session::new(); s.execute("file.new", json!({"width": 16, "height": 16, "depth": depth, "background": "white"})).unwrap(); s.execute("select.rect", json!({"x": 0, "y": 0, "width": 8, "height": 16})).unwrap(); @@ -1250,8 +1252,11 @@ mod tests { s.execute("select.deselect", json!({})).unwrap(); s.execute("image.adjustments.levels", params.clone()).unwrap(); let px = pixels(&s); - assert!((px[0][0] * 255.0 - low).abs() < 0.6, "black @{depth}: {:?}", px[0]); - assert!((px[1][0] * 255.0 - high).abs() < 0.6, "white @{depth}: {:?}", px[1]); + assert!((px[0][0] * 255.0 - low).abs() < tolerance, "black @{depth}: {:?}", px[0]); + assert!((px[1][0] * 255.0 - high).abs() < tolerance, "white @{depth}: {:?}", px[1]); + if depth == 32 { + assert!(px[0][0] < 0.0 && px[1][0] > 1.0, "HDR endpoints must remain unclipped"); + } } } From 9db0b309109a0ad340660a4f87ad441c582aa1f0 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 03:53:52 +0200 Subject: [PATCH 10/23] Keep browser command orchestration within the existing size budget --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1ae1c2f5ef..9c0d911604 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -113,3 +113,7 @@ opt-level = 3 opt-level = 3 [profile.wasm-release.package.photocraft-paint] opt-level = 3 + +# Size-focused command orchestration in the browser; pixel kernels keep their overrides above. +[profile.wasm-release.package.photocraft-engine] +opt-level = "z" From cf98b91f7bbbaf7e2d40b92331fa0fafb75372ba Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 04:03:54 +0200 Subject: [PATCH 11/23] Remove duplicate Czech catalog rows while retaining active translations --- crates/ui-egui/src/i18n/cs.tsv | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 5c9b846661..647af4a622 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -2663,7 +2663,6 @@ cameraData Lens Objektiv Brush Type Typ štětce Bulge Vyboulení Burlap Pytlovina - Burn Ztmavení Calculations Výpočty Camera Calibration Kalibrace fotoaparátu Camera Raw Camera Raw @@ -2693,7 +2692,6 @@ cameraData Lens Objektiv Clear Selection Zrušit výběr Clipping Path Ořezová cesta Clone Klonovat - Clone Stamp Klonovací razítko Close Window Zavřít okno Clumped Shlukované Coarse Dots Hrubé tečky @@ -2790,7 +2788,6 @@ cameraData Lens Objektiv Distribution Rozložení Documentation Dokumentace Documents Dokumenty - Dodge Zesvětlení Dot Tečka Double Line Dvojitá čára Draft Koncept @@ -2931,7 +2928,6 @@ cameraData Lens Objektiv Highlight Radius Poloměr světel Highlight Strength Síla odlesku Highlight Tone Tón světel - History Brush Štětec historie Horizontal Only Pouze vodorovně Hotspot Jádro světla Hsb HSB @@ -3276,7 +3272,6 @@ cameraData Lens Objektiv Spherize Sférická deformace Spin Rotace Spin Blur Rotační rozostření - Sponge Houba Spot Reflektor Spot Color Přímá barva Spot Healing Bodové retušování @@ -3334,7 +3329,6 @@ cameraData Lens Objektiv Tiny Lens Drobné čočky To Center Ke středu Tone Curve Tónová křivka - Tool Nástroj Tool Options Možnosti nástroje Toolbars Panely nástrojů Torn Edges Roztřepené okraje @@ -3431,7 +3425,6 @@ layerLabel No Color Žádná barva Loading fonts… Načítání písem… Tool Nástroj Simulate Pressure Simulovat přítlak - Stroke Path… Vytáhnout cestu… Background Eraser Guma pozadí Clone Stamp Klonovací razítko Healing Brush Retušovací štětec From ce48721c6bf25d98e818d706b216f8096f2691e4 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 04:04:07 +0200 Subject: [PATCH 12/23] Translate the system print queue guidance in every UI language --- crates/ui-egui/src/i18n/cs.tsv | 3 +++ crates/ui-egui/src/i18n/de.tsv | 3 +++ crates/ui-egui/src/i18n/el.tsv | 3 +++ crates/ui-egui/src/i18n/es.tsv | 3 +++ crates/ui-egui/src/i18n/fr.tsv | 3 +++ crates/ui-egui/src/i18n/id.tsv | 3 +++ crates/ui-egui/src/i18n/it.tsv | 3 +++ crates/ui-egui/src/i18n/ja.tsv | 3 +++ crates/ui-egui/src/i18n/ko.tsv | 3 +++ crates/ui-egui/src/i18n/nl.tsv | 3 +++ crates/ui-egui/src/i18n/pl.tsv | 3 +++ crates/ui-egui/src/i18n/pt-br.tsv | 3 +++ crates/ui-egui/src/i18n/ru.tsv | 3 +++ crates/ui-egui/src/i18n/uk.tsv | 3 +++ crates/ui-egui/src/i18n/zh-hans.tsv | 3 +++ crates/ui-egui/src/i18n/zh-hant.tsv | 3 +++ 16 files changed, 48 insertions(+) diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 647af4a622..e3c3d1d043 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -3642,3 +3642,6 @@ navigator Zoom Zvětšení (No neutral color exists for {mode} mode.) (Pro režim {mode} neexistuje neutrální barva.) Apply mask to layer before removing? Použít masku na vrstvu před odstraněním? The layer or its mask changed. Drag the mask onto the Trash again. Vrstva nebo její maska se změnila. Přetáhněte masku do koše znovu. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Spravovat odeslané úlohy v systémové tiskové frontě diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index a7bfaee5dc..b0d7990d1a 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -2652,3 +2652,6 @@ cameraData Lens Objektiv (No neutral color exists for {mode} mode.) (Für den Modus {mode} gibt es keine neutrale Farbe.) Apply mask to layer before removing? Maske vor dem Entfernen auf die Ebene anwenden? The layer or its mask changed. Drag the mask onto the Trash again. Die Ebene oder ihre Maske hat sich geändert. Ziehen Sie die Maske erneut in den Papierkorb. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Übermittelte Aufträge in der Druckwarteschlange des Systems verwalten diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index a14b2b1de1..7dcbdb5c5f 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -3712,3 +3712,6 @@ cameraData Lens Φακός (No neutral color exists for {mode} mode.) (Δεν υπάρχει ουδέτερο χρώμα για τη λειτουργία {mode}.) Apply mask to layer before removing? Εφαρμογή της μάσκας στο επίπεδο πριν από την αφαίρεση; The layer or its mask changed. Drag the mask onto the Trash again. Το επίπεδο ή η μάσκα του άλλαξε. Σύρετε ξανά τη μάσκα στον Κάδο. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Διαχειριστείτε τις υποβληθείσες εργασίες στην ουρά εκτύπωσης του συστήματος diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 999d5a5622..e025dd3f0f 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -2693,3 +2693,6 @@ cameraData Lens Objetivo (No neutral color exists for {mode} mode.) (No existe un color neutro para el modo {mode}.) Apply mask to layer before removing? ¿Aplicar la máscara a la capa antes de eliminarla? The layer or its mask changed. Drag the mask onto the Trash again. La capa o su máscara ha cambiado. Arrastre de nuevo la máscara a la papelera. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Gestionar los trabajos enviados en la cola de impresión del sistema diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 5c49f95c12..71b0e5bb48 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -3030,3 +3030,6 @@ cameraData Lens Objectif (No neutral color exists for {mode} mode.) (Il n’existe aucune couleur neutre pour le mode {mode}.) Apply mask to layer before removing? Appliquer le masque au calque avant de le supprimer ? The layer or its mask changed. Drag the mask onto the Trash again. Le calque ou son masque a changé. Faites de nouveau glisser le masque sur la corbeille. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Gérer les tâches soumises dans la file d’impression du système diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index c86521f576..db73e289d3 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -3017,3 +3017,6 @@ cameraData Lens Lensa (No neutral color exists for {mode} mode.) (Tidak ada warna netral untuk mode {mode}.) Apply mask to layer before removing? Terapkan masker ke layer sebelum dihapus? The layer or its mask changed. Drag the mask onto the Trash again. Layer atau maskernya berubah. Seret masker ke Tempat Sampah lagi. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Kelola pekerjaan yang dikirim dalam antrean cetak sistem diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 351e4cc7a8..05dccec2a1 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -2684,3 +2684,6 @@ cameraData Lens Obiettivo (No neutral color exists for {mode} mode.) (Non esiste un colore neutro per il metodo {mode}.) Apply mask to layer before removing? Applicare la maschera al livello prima di rimuoverla? The layer or its mask changed. Drag the mask onto the Trash again. Il livello o la sua maschera è cambiato. Trascina di nuovo la maschera nel cestino. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Gestisci i lavori inviati nella coda di stampa del sistema diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 302f280369..050e35a441 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -3624,3 +3624,6 @@ cameraData Lens レンズ (No neutral color exists for {mode} mode.) ({mode} モードには中間色がありません。) Apply mask to layer before removing? 削除する前にマスクをレイヤーに適用しますか? The layer or its mask changed. Drag the mask onto the Trash again. レイヤーまたはそのマスクが変更されました。もう一度マスクをゴミ箱にドラッグしてください。 + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue 送信済みのジョブはシステムの印刷キューで管理してください diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index 0cb8cc8b7e..b695ab9ea6 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -3197,3 +3197,6 @@ cameraData Lens 렌즈 (No neutral color exists for {mode} mode.) ({mode} 모드에는 중립 색상이 없습니다.) Apply mask to layer before removing? 제거하기 전에 마스크를 레이어에 적용하시겠습니까? The layer or its mask changed. Drag the mask onto the Trash again. 레이어 또는 마스크가 변경되었습니다. 마스크를 휴지통으로 다시 드래그하세요. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue 제출된 작업은 시스템 인쇄 대기열에서 관리하세요 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 08d91dd692..291c896a8a 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -3774,3 +3774,6 @@ cameraData Lens Lens (No neutral color exists for {mode} mode.) (Voor de modus {mode} bestaat geen neutrale kleur.) Apply mask to layer before removing? Masker toepassen op laag voordat het wordt verwijderd? The layer or its mask changed. Drag the mask onto the Trash again. De laag of het masker is gewijzigd. Sleep het masker opnieuw naar de prullenbak. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Beheer verzonden taken in de afdrukwachtrij van het systeem diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index eca048a067..9a42a56816 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -3626,3 +3626,6 @@ cameraData Lens Obiektyw (No neutral color exists for {mode} mode.) (Dla trybu {mode} nie istnieje kolor neutralny.) Apply mask to layer before removing? Zastosować maskę do warstwy przed usunięciem? The layer or its mask changed. Drag the mask onto the Trash again. Warstwa lub jej maska uległa zmianie. Przeciągnij maskę ponownie do kosza. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Zarządzaj przesłanymi zadaniami w systemowej kolejce drukowania diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 51d250a35b..f2ee5e6124 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -3804,3 +3804,6 @@ layerLabel No Color Sem cor (No neutral color exists for {mode} mode.) (Não existe cor neutra para o modo {mode}.) Apply mask to layer before removing? Aplicar a máscara à camada antes de removê-la? The layer or its mask changed. Drag the mask onto the Trash again. A camada ou a máscara mudou. Arraste a máscara para a Lixeira novamente. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Gerencie os trabalhos enviados na fila de impressão do sistema diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index ea4c90e626..9b2ba098bc 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -2959,3 +2959,6 @@ cameraData Lens Объектив (No neutral color exists for {mode} mode.) (Для режима «{mode}» нет нейтрального цвета.) Apply mask to layer before removing? Применить маску к слою перед удалением? The layer or its mask changed. Drag the mask onto the Trash again. Слой или его маска изменились. Перетащите маску в корзину ещё раз. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Управляйте отправленными заданиями в системной очереди печати diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index cae6f36b17..4a8ced64c8 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -3712,3 +3712,6 @@ cameraData Lens Об'єктив (No neutral color exists for {mode} mode.) (Для режиму «{mode}» немає нейтрального кольору.) Apply mask to layer before removing? Застосувати маску до шару перед видаленням? The layer or its mask changed. Drag the mask onto the Trash again. Шар або його маска змінилися. Перетягніть маску до кошика ще раз. + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue Керуйте надісланими завданнями в системній черзі друку diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index e9c12285d5..bc861c2768 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -2632,3 +2632,6 @@ cameraData Lens 镜头 (No neutral color exists for {mode} mode.) ({mode}模式不存在中性色。) Apply mask to layer before removing? 移去之前将蒙版应用到图层吗? The layer or its mask changed. Drag the mask onto the Trash again. 图层或其蒙版已更改。请再次将蒙版拖到垃圾桶。 + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue 在系统打印队列中管理已提交的作业 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 765e998274..65cae1f79d 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -2602,3 +2602,6 @@ cameraData Lens 鏡頭 (No neutral color exists for {mode} mode.) ({mode}模式沒有中性色。) Apply mask to layer before removing? 移除之前將遮色片套用到圖層嗎? The layer or its mask changed. Drag the mask onto the Trash again. 圖層或其遮色片已變更。請再次將遮色片拖曳到垃圾桶。 + +# Submitted print jobs are managed by the operating system. + Manage submitted jobs in the system print queue 在系統列印佇列中管理已提交的工作 From 3a06871d69ab13679a5683d7fe2042d767075550 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 04:11:22 +0200 Subject: [PATCH 13/23] Keep print queue translations alongside background job controls --- crates/ui-egui/src/i18n/cs.tsv | 4 +--- crates/ui-egui/src/i18n/de.tsv | 4 +--- crates/ui-egui/src/i18n/el.tsv | 4 +--- crates/ui-egui/src/i18n/es.tsv | 4 +--- crates/ui-egui/src/i18n/fr.tsv | 4 +--- crates/ui-egui/src/i18n/id.tsv | 4 +--- crates/ui-egui/src/i18n/it.tsv | 4 +--- crates/ui-egui/src/i18n/ja.tsv | 4 +--- crates/ui-egui/src/i18n/ko.tsv | 4 +--- crates/ui-egui/src/i18n/nl.tsv | 4 +--- crates/ui-egui/src/i18n/pl.tsv | 4 +--- crates/ui-egui/src/i18n/pt-br.tsv | 4 +--- crates/ui-egui/src/i18n/ru.tsv | 4 +--- crates/ui-egui/src/i18n/uk.tsv | 4 +--- crates/ui-egui/src/i18n/zh-hans.tsv | 4 +--- crates/ui-egui/src/i18n/zh-hant.tsv | 4 +--- 16 files changed, 16 insertions(+), 48 deletions(-) diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 3739a974fb..f66f69308b 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -889,6 +889,7 @@ Camera Raw isn't open Camera Raw není otevřen Cancel Zrušit Cancel (Esc) Zrušit (Esc) + Manage submitted jobs in the system print queue Spravovat odeslané úlohy v systémové tiskové frontě Cancel any current edits (Esc) Zrušit aktuální úpravy (Esc) Cancel current crop operation (Esc) Zrušit aktuální oříznutí (Esc) Cancel transform (Esc) Zrušit transformaci (Esc) @@ -3656,6 +3657,3 @@ navigator Zoom Zvětšení Apply mask to layer before removing? Použít masku na vrstvu před odstraněním? The layer or its mask changed. Drag the mask onto the Trash again. Vrstva nebo její maska se změnila. Přetáhněte masku do koše znovu. Delete the vector mask? Odstranit vektorovou masku? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Spravovat odeslané úlohy v systémové tiskové frontě diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 8b08428ce9..7f64b11a2f 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -867,6 +867,7 @@ Cancel Abbrechen Reset Zurücksetzen Cancel (Esc) Abbrechen (Esc) + Manage submitted jobs in the system print queue Übermittelte Aufträge in der Druckwarteschlange des Systems verwalten Cancel any current edits (Esc) Aktuelle Bearbeitungen abbrechen (Esc) Cancel current crop operation (Esc) Aktuelle Freistellung abbrechen (Esc) Cancel transform (Esc) Transformation abbrechen (Esc) @@ -2666,6 +2667,3 @@ curves Smooth Glätten Apply mask to layer before removing? Maske vor dem Entfernen auf die Ebene anwenden? The layer or its mask changed. Drag the mask onto the Trash again. Die Ebene oder ihre Maske hat sich geändert. Ziehen Sie die Maske erneut in den Papierkorb. Delete the vector mask? Vektormaske löschen? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Übermittelte Aufträge in der Druckwarteschlange des Systems verwalten diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 53cb0f2d9f..18b8fa110c 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -2083,6 +2083,7 @@ Camera Raw Filter… Φίλτρο επεξεργασίας ακατέργαστης εικόνας… Camera Raw… Επεξεργασία ακατέργαστης εικόνας… Cancel (Esc) Ακύρωση (Esc) + Manage submitted jobs in the system print queue Διαχειριστείτε τις υποβληθείσες εργασίες στην ουρά εκτύπωσης του συστήματος Cancel any current edits (Esc) Ακύρωση τρεχουσών αλλαγών (Esc) Cancel transform (Esc) Ακύρωση μετασχηματισμού (Esc) Cancel warp (Esc) Ακύρωση παραμόρφωσης (Esc) @@ -3724,6 +3725,3 @@ curves Smooth Εξομάλυνση Apply mask to layer before removing? Εφαρμογή της μάσκας στο επίπεδο πριν από την αφαίρεση; The layer or its mask changed. Drag the mask onto the Trash again. Το επίπεδο ή η μάσκα του άλλαξε. Σύρετε ξανά τη μάσκα στον Κάδο. Delete the vector mask? Διαγραφή της διανυσματικής μάσκας; - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Διαχειριστείτε τις υποβληθείσες εργασίες στην ουρά εκτύπωσης του συστήματος diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 597c31682e..dc3dcc662f 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -875,6 +875,7 @@ Camera Raw isn't open Camera Raw no está abierto Cancel Cancelar Cancel (Esc) Cancelar (Esc) + Manage submitted jobs in the system print queue Gestionar los trabajos enviados en la cola de impresión del sistema Cancel any current edits (Esc) Cancelar las ediciones actuales (Esc) Cancel current crop operation (Esc) Cancelar la operación de recorte actual (Esc) Cancel transform (Esc) Cancelar transformación (Esc) @@ -2707,6 +2708,3 @@ curves Smooth Suavizar Apply mask to layer before removing? ¿Aplicar la máscara a la capa antes de eliminarla? The layer or its mask changed. Drag the mask onto the Trash again. La capa o su máscara ha cambiado. Arrastre de nuevo la máscara a la papelera. Delete the vector mask? ¿Eliminar la máscara vectorial? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Gestionar los trabajos enviados en la cola de impresión del sistema diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 281a936a37..d4887522da 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -863,6 +863,7 @@ Camera Raw isn't open Camera Raw n'est pas ouvert Cancel Annuler Cancel (Esc) Annuler (Échap) + Manage submitted jobs in the system print queue Gérer les tâches soumises dans la file d’impression du système Cancel any current edits (Esc) Annuler les modifications en cours (Échap) Cancel current crop operation (Esc) Annuler le recadrage en cours (Échap) Cancel transform (Esc) Annuler la transformation (Échap) @@ -3042,6 +3043,3 @@ curves Smooth Lisser Apply mask to layer before removing? Appliquer le masque au calque avant de le supprimer ? The layer or its mask changed. Drag the mask onto the Trash again. Le calque ou son masque a changé. Faites de nouveau glisser le masque sur la corbeille. Delete the vector mask? Supprimer le masque vectoriel ? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Gérer les tâches soumises dans la file d’impression du système diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 33be2a37be..ed68afcda4 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -857,6 +857,7 @@ Camera Raw isn't open Camera Raw tidak terbuka Cancel Batal Cancel (Esc) Batal (Esc) + Manage submitted jobs in the system print queue Kelola pekerjaan yang dikirim dalam antrean cetak sistem Cancel any current edits (Esc) Batalkan semua pengeditan saat ini (Esc) Cancel current crop operation (Esc) Batalkan operasi crop saat ini (Esc) Cancel transform (Esc) Batalkan transformasi (Esc) @@ -3029,6 +3030,3 @@ curves Smooth Haluskan Apply mask to layer before removing? Terapkan masker ke layer sebelum dihapus? The layer or its mask changed. Drag the mask onto the Trash again. Layer atau maskernya berubah. Seret masker ke Tempat Sampah lagi. Delete the vector mask? Hapus masker vektor? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Kelola pekerjaan yang dikirim dalam antrean cetak sistem diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 46a6003e06..b9db5914ed 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -874,6 +874,7 @@ Cancel Annulla Reset Ripristina Cancel (Esc) Annulla (Esc) + Manage submitted jobs in the system print queue Gestisci i lavori inviati nella coda di stampa del sistema Cancel any current edits (Esc) Annulla modifiche correnti (Esc) Cancel current crop operation (Esc) Annulla operazione ritaglio corrente (Esc) Cancel transform (Esc) Annulla trasformazione (Esc) @@ -2698,6 +2699,3 @@ curves Smooth Leviga Apply mask to layer before removing? Applicare la maschera al livello prima di rimuoverla? The layer or its mask changed. Drag the mask onto the Trash again. Il livello o la sua maschera è cambiato. Trascina di nuovo la maschera nel cestino. Delete the vector mask? Eliminare la maschera vettoriale? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Gestisci i lavori inviati nella coda di stampa del sistema diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index f91836c757..9eb7eff242 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -876,6 +876,7 @@ Camera Raw isn't open Camera Raw は開いていません Cancel キャンセル Cancel (Esc) キャンセル(Esc) + Manage submitted jobs in the system print queue 送信済みのジョブはシステムの印刷キューで管理してください Cancel any current edits (Esc) 現在の編集をキャンセル(Esc) Cancel current crop operation (Esc) 現在の切り抜きをキャンセル(Esc) Cancel transform (Esc) 変形をキャンセル(Esc) @@ -3636,6 +3637,3 @@ curves Smooth スムーズ Apply mask to layer before removing? 削除する前にマスクをレイヤーに適用しますか? The layer or its mask changed. Drag the mask onto the Trash again. レイヤーまたはそのマスクが変更されました。もう一度マスクをゴミ箱にドラッグしてください。 Delete the vector mask? ベクトルマスクを削除しますか? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue 送信済みのジョブはシステムの印刷キューで管理してください diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index bcd25b20d4..83529b6182 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -849,6 +849,7 @@ Cancel 취소 Reset 재설정 Cancel (Esc) 취소 (Esc) + Manage submitted jobs in the system print queue 제출된 작업은 시스템 인쇄 대기열에서 관리하세요 Cancel any current edits (Esc) 현재 편집 취소 (Esc) Cancel current crop operation (Esc) 현재 자르기 작업 취소 (Esc) Cancel transform (Esc) 변형 취소 (Esc) @@ -3211,6 +3212,3 @@ curves Smooth 매끄럽게 Apply mask to layer before removing? 제거하기 전에 마스크를 레이어에 적용하시겠습니까? The layer or its mask changed. Drag the mask onto the Trash again. 레이어 또는 마스크가 변경되었습니다. 마스크를 휴지통으로 다시 드래그하세요. Delete the vector mask? 벡터 마스크를 삭제하시겠습니까? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue 제출된 작업은 시스템 인쇄 대기열에서 관리하세요 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index e7749159cf..598d6ae601 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -856,6 +856,7 @@ Cancel Annuleren Reset Herstellen Cancel (Esc) Annuleren (Esc) + Manage submitted jobs in the system print queue Beheer verzonden taken in de afdrukwachtrij van het systeem Cancel any current edits (Esc) Huidige bewerkingen annuleren (Esc) Cancel current crop operation (Esc) Huidige bijsnijbewerking annuleren (Esc) Cancel transform (Esc) Transformatie annuleren (Esc) @@ -3786,6 +3787,3 @@ curves Smooth Vloeiend maken Apply mask to layer before removing? Masker toepassen op laag voordat het wordt verwijderd? The layer or its mask changed. Drag the mask onto the Trash again. De laag of het masker is gewijzigd. Sleep het masker opnieuw naar de prullenbak. Delete the vector mask? Het vectormasker verwijderen? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Beheer verzonden taken in de afdrukwachtrij van het systeem diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 5a23c0a74c..e63d87b108 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -874,6 +874,7 @@ Camera Raw isn't open Camera Raw nie jest otwarty Cancel Anuluj Cancel (Esc) Anuluj (Esc) + Manage submitted jobs in the system print queue Zarządzaj przesłanymi zadaniami w systemowej kolejce drukowania Cancel any current edits (Esc) Anuluj wszystkie bieżące zmiany (Esc) Cancel current crop operation (Esc) Anuluj bieżące przycinanie (Esc) Cancel transform (Esc) Anuluj przekształcanie (Esc) @@ -3638,6 +3639,3 @@ curves Smooth Wygładź Apply mask to layer before removing? Zastosować maskę do warstwy przed usunięciem? The layer or its mask changed. Drag the mask onto the Trash again. Warstwa lub jej maska uległa zmianie. Przeciągnij maskę ponownie do kosza. Delete the vector mask? Usunąć maskę wektorową? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Zarządzaj przesłanymi zadaniami w systemowej kolejce drukowania diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 016e7f6391..1a243cebc8 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -858,6 +858,7 @@ Camera Raw isn't open Camera Raw não está aberto Cancel Cancelar Cancel (Esc) Cancelar (Esc) + Manage submitted jobs in the system print queue Gerencie os trabalhos enviados na fila de impressão do sistema Cancel any current edits (Esc) Cancelar as edições atuais (Esc) Cancel current crop operation (Esc) Cancelar a operação de corte atual (Esc) Cancel transform (Esc) Cancelar transformação (Esc) @@ -3816,6 +3817,3 @@ layerLabel No Color Sem cor Apply mask to layer before removing? Aplicar a máscara à camada antes de removê-la? The layer or its mask changed. Drag the mask onto the Trash again. A camada ou a máscara mudou. Arraste a máscara para a Lixeira novamente. Delete the vector mask? Excluir a máscara vetorial? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Gerencie os trabalhos enviados na fila de impressão do sistema diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 6b7d9db398..4ad441bef7 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -579,6 +579,7 @@ OK OK Cancel Отмена Cancel (Esc) Отмена (Esc) + Manage submitted jobs in the system print queue Управляйте отправленными заданиями в системной очереди печати Done Готово Apply Применить Reset Сброс @@ -2971,6 +2972,3 @@ curves Smooth Сгладить Apply mask to layer before removing? Применить маску к слою перед удалением? The layer or its mask changed. Drag the mask onto the Trash again. Слой или его маска изменились. Перетащите маску в корзину ещё раз. Delete the vector mask? Удалить векторную маску? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Управляйте отправленными заданиями в системной очереди печати diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index dad9e6873c..8f9a7cb6f2 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -557,6 +557,7 @@ OK Гаразд Cancel Скасувати Cancel (Esc) Скасувати (Esc) + Manage submitted jobs in the system print queue Керуйте надісланими завданнями в системній черзі друку Done Готово Apply Застосувати Reset Скинути @@ -3724,6 +3725,3 @@ curves Smooth Згладити Apply mask to layer before removing? Застосувати маску до шару перед видаленням? The layer or its mask changed. Drag the mask onto the Trash again. Шар або його маска змінилися. Перетягніть маску до кошика ще раз. Delete the vector mask? Видалити векторну маску? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue Керуйте надісланими завданнями в системній черзі друку diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index d31a418148..414324d340 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -877,6 +877,7 @@ Camera Raw isn't open 尚未打开 Camera Raw Cancel 取消 Cancel (Esc) 取消(Esc) + Manage submitted jobs in the system print queue 在系统打印队列中管理已提交的作业 Cancel any current edits (Esc) 取消当前所有编辑(Esc) Cancel current crop operation (Esc) 取消当前裁剪操作 (Esc) Cancel transform (Esc) 取消变换(Esc) @@ -2646,6 +2647,3 @@ curves Smooth 平滑 Apply mask to layer before removing? 移去之前将蒙版应用到图层吗? The layer or its mask changed. Drag the mask onto the Trash again. 图层或其蒙版已更改。请再次将蒙版拖到垃圾桶。 Delete the vector mask? 要删除矢量蒙版吗? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue 在系统打印队列中管理已提交的作业 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 7dc193999c..fda05b9245 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -880,6 +880,7 @@ Camera Raw isn't open Camera Raw 未開啟 Cancel 取消 Cancel (Esc) 取消 (Esc) + Manage submitted jobs in the system print queue 在系統列印佇列中管理已提交的工作 Cancel any current edits (Esc) 取消目前所有編輯 (Esc) Cancel current crop operation (Esc) 取消目前的裁切作業 (Esc) Cancel transform (Esc) 取消變形 (Esc) @@ -2616,6 +2617,3 @@ curves Smooth 平滑 Apply mask to layer before removing? 移除之前將遮色片套用到圖層嗎? The layer or its mask changed. Drag the mask onto the Trash again. 圖層或其遮色片已變更。請再次將遮色片拖曳到垃圾桶。 Delete the vector mask? 要刪除向量遮色片嗎? - -# Submitted print jobs are managed by the operating system. - Manage submitted jobs in the system print queue 在系統列印佇列中管理已提交的工作 From 6651724db8eff2e6b9f1fb0ff62e8a2a3cc4c1b3 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 04:30:41 +0200 Subject: [PATCH 14/23] Align CLI save test with native destination filename semantics --- apps/photocraft-cli/tests/cli.rs | 3 ++- apps/photocraft-cli/tests/orientation.rs | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/photocraft-cli/tests/cli.rs b/apps/photocraft-cli/tests/cli.rs index de04c3bf3a..9000cc35e7 100644 --- a/apps/photocraft-cli/tests/cli.rs +++ b/apps/photocraft-cli/tests/cli.rs @@ -189,9 +189,10 @@ fn run_commands_and_save() { let lines: Vec = out.lines().map(|l| serde_json::from_str(l).unwrap()).collect(); assert_eq!(lines.len(), 3); assert_eq!(lines[2]["command"], "document.inspect"); + assert_eq!(lines[2]["result"]["name"], "Run", "inspecting before --out retains the document title"); let (info, _) = ok(bin().arg("info").arg(&out_pc)); let v: Value = serde_json::from_str(&info).unwrap(); - assert_eq!(v["name"], "Run"); + assert_eq!(v["name"], "r.pcraft", "a native bundle stores its destination filename"); let names: Vec<&str> = v["layers"].as_array().unwrap().iter().filter_map(|l| l["name"].as_str()).collect(); assert_eq!(names, ["Ink", "Background"]); // Continue from the saved file and export PNG. diff --git a/apps/photocraft-cli/tests/orientation.rs b/apps/photocraft-cli/tests/orientation.rs index 0d3ff9838f..e13319207c 100644 --- a/apps/photocraft-cli/tests/orientation.rs +++ b/apps/photocraft-cli/tests/orientation.rs @@ -121,18 +121,22 @@ fn orientation_6_jpeg_converts_upright_and_rotates_back() { assert!(near(at(28, 12), upright_color(12, 4)), "{:?}", at(28, 12)); assert!(near(at(4, 8), upright_color(8, 28)), "{:?}", at(4, 8)); - // .pcraft save, reopen and save again: identical document and pixels. + // .pcraft save, reopen and save again: destination names follow Save As; other metadata and pixels match. let (a, b) = (d.join("a.pcraft"), d.join("b.pcraft")); ok(bin().arg("convert").arg(&jpg).arg(&a)); ok(bin().arg("convert").arg(&a).arg(&b)); - // Everything but the file's own path must match. + // Check destination names explicitly, then compare the remaining metadata. let info = |p: &Path| { let mut v = serde_json::from_str::(&ok(bin().arg("info").arg(p))).unwrap(); v.as_object_mut().unwrap().remove("file"); v }; - let (ia, ib) = (info(&a), info(&b)); + let (mut ia, mut ib) = (info(&a), info(&b)); assert_eq!((ia["width"].as_u64(), ia["height"].as_u64()), (Some(16), Some(32))); + assert_eq!(ia["name"], "a.pcraft"); + assert_eq!(ib["name"], "b.pcraft"); + ia.as_object_mut().unwrap().remove("name"); + ib.as_object_mut().unwrap().remove("name"); assert_eq!(ia, ib); let (pa, pb) = (d.join("a.png"), d.join("b.png")); ok(bin().arg("convert").arg(&a).arg(&pa)); From a538567a0debf8044da62bfa00ff2475d7936c09 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 04:49:59 +0200 Subject: [PATCH 15/23] Read plural keys from form arguments and report all catalog gaps --- xtask/src/i18n_coverage.rs | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/xtask/src/i18n_coverage.rs b/xtask/src/i18n_coverage.rs index 817c364422..984d8c5ce5 100644 --- a/xtask/src/i18n_coverage.rs +++ b/xtask/src/i18n_coverage.rs @@ -185,9 +185,14 @@ fn plural_keys(sources: &[(PathBuf, String)]) -> BTreeSet { rest = rest.get(at + 4..).unwrap_or(""); let Some(end) = call_end(rest) else { break }; let args = rest.get(..end).unwrap_or(""); - let forms = quoted_strings(args); - if forms.len() >= 2 { - keys.insert(Key { context: "@plural".into(), source: format!("{}|{}", forms[0], forms[1]) }); + let args = split_arguments(args); + let literal = |arg: &&str| { + let arg = arg.trim(); + let strings = quoted_strings(arg); + if arg.starts_with('"') && arg.ends_with('"') && strings.len() == 1 { strings.into_iter().next() } else { None } + }; + if let Some((one, other)) = args.get(2).and_then(literal).zip(args.get(3).and_then(literal)) { + keys.insert(Key { context: "@plural".into(), source: format!("{one}|{other}") }); } rest = rest.get(end + 1..).unwrap_or(""); } @@ -545,6 +550,17 @@ mod tests { assert!(plural_keys(&sources).contains(&Key { context: "@plural".into(), source: "{n} layer|{n} layers".into() })); } + #[test] + fn plural_forms_follow_count_expressions_and_dynamic_forms_are_not_literal_keys() { + let sources = vec![( + PathBuf::from("ui.rs"), + r#"trn(lang, r["files"].as_array().map_or(0, Vec::len) as u64, "Saved {n} file", "Saved {n} files"); + trn(lang, count, one, other);"# + .into(), + )]; + assert_eq!(plural_keys(&sources), BTreeSet::from([Key { context: "@plural".into(), source: "Saved {n} file|Saved {n} files".into() }])); + } + #[test] fn source_scanner_ignores_test_modules_with_lf_and_crlf() { for newline in ["\n", "\r\n"] { @@ -560,6 +576,7 @@ mod tests { fn source_key_set_is_covered_by_complete_catalogs() { let root = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap_or(Path::new(".")); let keys = source_keys(root).unwrap_or_default(); + let mut gaps = Vec::new(); for (code, path) in [ ("ja", "ja.tsv"), ("zh-hant", "zh-hant.tsv"), @@ -577,7 +594,10 @@ mod tests { let text = fs::read_to_string(&catalog_path).unwrap_or_default(); let translations = parse_catalog(&catalog_path, &text).unwrap_or_default(); let missing: Vec<_> = keys.difference(&translations).collect(); - assert!(missing.is_empty(), "{code}: missing source keys: {missing:#?}"); + if !missing.is_empty() { + gaps.push(format!("{code}: missing source keys: {missing:#?}")); + } } + assert!(gaps.is_empty(), "{}", gaps.join("\n")); } } From 82d2b7e0f14d5b86f8e089f4ccfe07e862e915e3 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 04:54:47 +0200 Subject: [PATCH 16/23] Fill missing plural statuses in coverage-enforced catalogs --- crates/ui-egui/src/i18n/de.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/el.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/es.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/it.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/ja.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/nl.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/pt-br.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/ru.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/uk.tsv | 14 ++++++++++++++ crates/ui-egui/src/i18n/zh-hant.tsv | 14 ++++++++++++++ 10 files changed, 140 insertions(+) diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 7f64b11a2f..6dceac7cc6 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -769,6 +769,20 @@ Statistics… Statistiken… Refine Strokes Verfeinerungsstriche @plural {n} item|{n} items {n} Element|{n} Elemente +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} Farbfeld nach {file} exportiert|{n} Farbfelder nach {file} exportiert +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} Pinsel aus {group} importiert|{n} Pinsel aus {group} importiert +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} Farbfeld aus {file} importiert|{n} Farbfelder aus {file} importiert +@plural Played {n} step|Played {n} steps {n} Schritt abgespielt|{n} Schritte abgespielt +@plural Saved for Web: {n} file|Saved for Web: {n} files Für Web gespeichert: {n} Datei|Für Web gespeichert: {n} Dateien +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} verknüpftes Smart-Objekt mit Änderungen auf dem Datenträger aktualisiert|{n} verknüpfte Smart-Objekte mit Änderungen auf dem Datenträger aktualisiert +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} in dieser Ebenenkomposition gespeicherte Ebene wurde gelöscht. Aktualisieren Sie die Komposition oder entfernen Sie die Warnung.|{n} in dieser Ebenenkomposition gespeicherte Ebenen wurden gelöscht. Aktualisieren Sie die Komposition oder entfernen Sie die Warnung. +@plural {n} plane|{n} planes {n} Ebene|{n} Ebenen +@plural {n} preset|{n} presets {n} Vorgabe|{n} Vorgaben +@plural {n} sample point removed|{n} sample points removed {n} Messpunkt entfernt|{n} Messpunkte entfernt +@plural {n} slice|{n} slices {n} Slice|{n} Slices +@plural {n} step|{n} steps {n} Schritt|{n} Schritte +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} weitere Warnung zu Pinselvorgaben)|{warning} (+{n} weitere Warnungen zu Pinselvorgaben) +@plural {what} with {n} warning|{what} with {n} warnings {what} mit {n} Warnung|{what} mit {n} Warnungen Auto Automatisch (print to the printer) (an den Drucker senden) + Add variable + Variable hinzufügen diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 18b8fa110c..83dfb20a8a 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -3232,6 +3232,20 @@ @plural Group · {n} layer|Group · {n} layers Ομάδα · {n} επίπεδο|Ομάδα · {n} επίπεδα @plural {n} Layer|{n} Layers {n} επίπεδο|{n} επίπεδα @plural {n} item|{n} items {n} στοιχείο|{n} στοιχεία +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Εξήχθη {n} δείγμα χρώματος στο {file}|Εξήχθησαν {n} δείγματα χρωμάτων στο {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Εισήχθη {n} πινέλο από το {group}|Εισήχθησαν {n} πινέλα από το {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Εισήχθη {n} δείγμα χρώματος από το {file}|Εισήχθησαν {n} δείγματα χρωμάτων από το {file} +@plural Played {n} step|Played {n} steps Αναπαράχθηκε {n} βήμα|Αναπαράχθηκαν {n} βήματα +@plural Saved for Web: {n} file|Saved for Web: {n} files Αποθηκεύτηκε για Web: {n} αρχείο|Αποθηκεύτηκαν για Web: {n} αρχεία +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Ενημερώθηκε {n} συνδεδεμένο έξυπνο αντικείμενο που άλλαξε στον δίσκο|Ενημερώθηκαν {n} συνδεδεμένα έξυπνα αντικείμενα που άλλαξαν στον δίσκο +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Διαγράφηκε {n} επίπεδο που καταγράφηκε σε αυτή τη σύνθεση. Ενημερώστε τη σύνθεση ή αφαιρέστε την προειδοποίηση.|Διαγράφηκαν {n} επίπεδα που καταγράφηκαν σε αυτή τη σύνθεση. Ενημερώστε τη σύνθεση ή αφαιρέστε την προειδοποίηση. +@plural {n} plane|{n} planes {n} επίπεδο προοπτικής|{n} επίπεδα προοπτικής +@plural {n} preset|{n} presets {n} προεπιλογή|{n} προεπιλογές +@plural {n} sample point removed|{n} sample points removed Αφαιρέθηκε {n} σημείο δείγματος|Αφαιρέθηκαν {n} σημεία δείγματος +@plural {n} slice|{n} slices {n} τμήμα εικόνας|{n} τμήματα εικόνας +@plural {n} step|{n} steps {n} βήμα|{n} βήματα +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} ακόμη προειδοποίηση προεπιλογής πινέλου)|{warning} (+{n} ακόμη προειδοποιήσεις προεπιλογών πινέλων) +@plural {what} with {n} warning|{what} with {n} warnings {what} με {n} προειδοποίηση|{what} με {n} προειδοποιήσεις @plural {n} layer|{n} layers {n} επίπεδο|{n} επίπεδα @plural {n} sample|{n} samples {n} δείγμα|{n} δείγματα cameraRaw Amount Ποσότητα diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index dc3dcc662f..127ef219fc 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -776,6 +776,20 @@ Statistics… Estadísticas… Refine Strokes Trazos de perfeccionamiento @plural {n} item|{n} items {n} elemento|{n} elementos +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Se exportó {n} muestra a {file}|Se exportaron {n} muestras a {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Se importó {n} pincel de {group}|Se importaron {n} pinceles de {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Se importó {n} muestra de {file}|Se importaron {n} muestras de {file} +@plural Played {n} step|Played {n} steps Se reprodujo {n} paso|Se reprodujeron {n} pasos +@plural Saved for Web: {n} file|Saved for Web: {n} files Guardado para Web: {n} archivo|Guardado para Web: {n} archivos +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Se actualizó {n} objeto inteligente vinculado que cambió en disco|Se actualizaron {n} objetos inteligentes vinculados que cambiaron en disco +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Se eliminó {n} capa registrada en esta composición. Actualice la composición o borre la advertencia.|Se eliminaron {n} capas registradas en esta composición. Actualice la composición o borre la advertencia. +@plural {n} plane|{n} planes {n} plano|{n} planos +@plural {n} preset|{n} presets {n} ajuste preestablecido|{n} ajustes preestablecidos +@plural {n} sample point removed|{n} sample points removed Se eliminó {n} punto de muestra|Se eliminaron {n} puntos de muestra +@plural {n} slice|{n} slices {n} sector|{n} sectores +@plural {n} step|{n} steps {n} paso|{n} pasos +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} advertencia más de ajustes preestablecidos de pincel)|{warning} (+{n} advertencias más de ajustes preestablecidos de pincel) +@plural {what} with {n} warning|{what} with {n} warnings {what} con {n} advertencia|{what} con {n} advertencias Auto Automático # Dialogs and panels diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index b9db5914ed..627cf3caec 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -774,6 +774,20 @@ Statistics… Statistiche… Refine Strokes Tratti di perfezionamento @plural {n} item|{n} items {n} elemento|{n} elementi +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Esportato {n} campione in {file}|Esportati {n} campioni in {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Importato {n} pennello da {group}|Importati {n} pennelli da {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Importato {n} campione da {file}|Importati {n} campioni da {file} +@plural Played {n} step|Played {n} steps Riprodotto {n} passaggio|Riprodotti {n} passaggi +@plural Saved for Web: {n} file|Saved for Web: {n} files Salvato per Web: {n} file|Salvati per Web: {n} file +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Aggiornato {n} oggetto avanzato collegato modificato su disco|Aggiornati {n} oggetti avanzati collegati modificati su disco +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. È stato eliminato {n} livello registrato in questa composizione. Aggiorna la composizione o rimuovi l’avviso.|Sono stati eliminati {n} livelli registrati in questa composizione. Aggiorna la composizione o rimuovi l’avviso. +@plural {n} plane|{n} planes {n} piano|{n} piani +@plural {n} preset|{n} presets {n} predefinito|{n} predefiniti +@plural {n} sample point removed|{n} sample points removed Rimosso {n} punto campione|Rimossi {n} punti campione +@plural {n} slice|{n} slices {n} sezione|{n} sezioni +@plural {n} step|{n} steps {n} passaggio|{n} passaggi +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} altro avviso di predefinito pennello)|{warning} (+{n} altri avvisi di predefiniti pennello) +@plural {what} with {n} warning|{what} with {n} warnings {what} con {n} avviso|{what} con {n} avvisi Auto Automatico # Dialogs and panels diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 9eb7eff242..ef902970aa 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -776,6 +776,20 @@ Statistics… 統計情報… Refine Strokes 調整ストローク @plural {n} item|{n} items {n} 件 +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {file} にスウォッチ {n} 個を書き出しました +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {group} からブラシ {n} 個を読み込みました +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {file} からスウォッチ {n} 個を読み込みました +@plural Played {n} step|Played {n} steps {n} ステップを再生しました +@plural Saved for Web: {n} file|Saved for Web: {n} files Web 用に保存: {n} ファイル +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk ディスク上で変更されたリンクされたスマートオブジェクト {n} 個を更新しました +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. このレイヤーカンプに記録された {n} 個のレイヤーが削除されました。カンプを更新するか、警告を消去してください。 +@plural {n} plane|{n} planes {n} 平面 +@plural {n} preset|{n} presets {n} プリセット +@plural {n} sample point removed|{n} sample points removed サンプルポイント {n} 個を削除しました +@plural {n} slice|{n} slices {n} スライス +@plural {n} step|{n} steps {n} ステップ +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (ほかにブラシプリセットの警告 {n} 件) +@plural {what} with {n} warning|{what} with {n} warnings {what} (警告 {n} 件) Auto 自動 # Dialogs and panels diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 598d6ae601..0d1875f36f 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -759,6 +759,20 @@ Statistics… Statistieken… Refine Strokes Verfijningsstreken @plural {n} item|{n} items {n} element|{n} elementen +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} staal geëxporteerd naar {file}|{n} stalen geëxporteerd naar {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} penseel geïmporteerd uit {group}|{n} penselen geïmporteerd uit {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} staal geïmporteerd uit {file}|{n} stalen geïmporteerd uit {file} +@plural Played {n} step|Played {n} steps {n} stap afgespeeld|{n} stappen afgespeeld +@plural Saved for Web: {n} file|Saved for Web: {n} files Opgeslagen voor web: {n} bestand|Opgeslagen voor web: {n} bestanden +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} gekoppeld slim object met wijzigingen op schijf bijgewerkt|{n} gekoppelde slimme objecten met wijzigingen op schijf bijgewerkt +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} laag die in deze laagcompositie is vastgelegd is verwijderd. Werk de compositie bij of verwijder de waarschuwing.|{n} lagen die in deze laagcompositie zijn vastgelegd zijn verwijderd. Werk de compositie bij of verwijder de waarschuwing. +@plural {n} plane|{n} planes {n} vlak|{n} vlakken +@plural {n} preset|{n} presets {n} voorinstelling|{n} voorinstellingen +@plural {n} sample point removed|{n} sample points removed {n} monsterpunt verwijderd|{n} monsterpunten verwijderd +@plural {n} slice|{n} slices {n} segment|{n} segmenten +@plural {n} step|{n} steps {n} stap|{n} stappen +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} extra waarschuwing voor penseelvoorinstellingen)|{warning} (+{n} extra waarschuwingen voor penseelvoorinstellingen) +@plural {what} with {n} warning|{what} with {n} warnings {what} met {n} waarschuwing|{what} met {n} waarschuwingen Auto Automatisch (print to the printer) (naar de printer afdrukken) + Add variable + Variabele toevoegen diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 1a243cebc8..8c9348284e 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -761,6 +761,20 @@ Statistics… Estatísticas… Refine Strokes Traços de refinamento @plural {n} item|{n} items {n} item|{n} itens +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} amostra exportada para {file}|{n} amostras exportadas para {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} pincel importado de {group}|{n} pincéis importados de {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} amostra importada de {file}|{n} amostras importadas de {file} +@plural Played {n} step|Played {n} steps {n} etapa reproduzida|{n} etapas reproduzidas +@plural Saved for Web: {n} file|Saved for Web: {n} files Salvo para Web: {n} arquivo|Salvo para Web: {n} arquivos +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} objeto inteligente vinculado alterado no disco foi atualizado|{n} objetos inteligentes vinculados alterados no disco foram atualizados +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} camada registrada nesta composição foi excluída. Atualize a composição ou remova o aviso.|{n} camadas registradas nesta composição foram excluídas. Atualize a composição ou remova o aviso. +@plural {n} plane|{n} planes {n} plano|{n} planos +@plural {n} preset|{n} presets {n} predefinição|{n} predefinições +@plural {n} sample point removed|{n} sample points removed {n} ponto de amostra removido|{n} pontos de amostra removidos +@plural {n} slice|{n} slices {n} fatia|{n} fatias +@plural {n} step|{n} steps {n} etapa|{n} etapas +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} aviso adicional de predefinição de pincel)|{warning} (+{n} avisos adicionais de predefinições de pincel) +@plural {what} with {n} warning|{what} with {n} warnings {what} com {n} aviso|{what} com {n} avisos Auto Automático (print to the printer) (imprimir na impressora) + Add variable + Adicionar variável diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 4ad441bef7..5334137310 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -1807,6 +1807,20 @@ # Plurals @plural {n} item|{n} items {n} элемент|{n} элемента|{n} элементов +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Экспортирован {n} образец в {file}|Экспортировано {n} образца в {file}|Экспортировано {n} образцов в {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Импортирована {n} кисть из {group}|Импортировано {n} кисти из {group}|Импортировано {n} кистей из {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Импортирован {n} образец из {file}|Импортировано {n} образца из {file}|Импортировано {n} образцов из {file} +@plural Played {n} step|Played {n} steps Выполнен {n} шаг|Выполнено {n} шага|Выполнено {n} шагов +@plural Saved for Web: {n} file|Saved for Web: {n} files Сохранено для Web: {n} файл|Сохранено для Web: {n} файла|Сохранено для Web: {n} файлов +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Обновлён {n} связанный смарт-объект, изменённый на диске|Обновлено {n} связанных смарт-объекта, изменённых на диске|Обновлено {n} связанных смарт-объектов, изменённых на диске +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} слой, записанный в этом варианте слоя, был удалён. Обновите вариант или уберите предупреждение.|{n} слоя, записанных в этом варианте слоя, были удалены. Обновите вариант или уберите предупреждение.|{n} слоёв, записанных в этом варианте слоя, были удалены. Обновите вариант или уберите предупреждение. +@plural {n} plane|{n} planes {n} плоскость|{n} плоскости|{n} плоскостей +@plural {n} preset|{n} presets {n} набор|{n} набора|{n} наборов +@plural {n} sample point removed|{n} sample points removed Удалена {n} точка образца|Удалено {n} точки образца|Удалено {n} точек образца +@plural {n} slice|{n} slices {n} фрагмент|{n} фрагмента|{n} фрагментов +@plural {n} step|{n} steps {n} шаг|{n} шага|{n} шагов +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} дополнительное предупреждение о наборе кистей)|{warning} (+{n} дополнительных предупреждения о наборе кистей)|{warning} (+{n} дополнительных предупреждений о наборе кистей) +@plural {what} with {n} warning|{what} with {n} warnings {what} с {n} предупреждением|{what} с {n} предупреждениями|{what} с {n} предупреждениями @plural {n} Layer|{n} Layers {n} слой|{n} слоя|{n} слоёв @plural {n} layer|{n} layers {n} слой|{n} слоя|{n} слоёв @plural Group · {n} layer|Group · {n} layers Группа · {n} слой|Группа · {n} слоя|Группа · {n} слоёв diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 8f9a7cb6f2..6479030ebc 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -1786,6 +1786,20 @@ # Plurals @plural {n} item|{n} items {n} елемент|{n} елементи|{n} елементів +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Експортовано {n} зразок кольору до {file}|Експортовано {n} зразки кольорів до {file}|Експортовано {n} зразків кольорів до {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Імпортовано {n} пензель із {group}|Імпортовано {n} пензлі з {group}|Імпортовано {n} пензлів із {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Імпортовано {n} зразок кольору з {file}|Імпортовано {n} зразки кольорів із {file}|Імпортовано {n} зразків кольорів із {file} +@plural Played {n} step|Played {n} steps Відтворено {n} крок|Відтворено {n} кроки|Відтворено {n} кроків +@plural Saved for Web: {n} file|Saved for Web: {n} files Збережено для Web: {n} файл|Збережено для Web: {n} файли|Збережено для Web: {n} файлів +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Оновлено {n} зв’язаний смартоб’єкт, змінений на диску|Оновлено {n} зв’язані смартоб’єкти, змінені на диску|Оновлено {n} зв’язаних смартоб’єктів, змінених на диску +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Видалено {n} шар, записаний у цій композиції. Оновіть композицію або приберіть попередження.|Видалено {n} шари, записані в цій композиції. Оновіть композицію або приберіть попередження.|Видалено {n} шарів, записаних у цій композиції. Оновіть композицію або приберіть попередження. +@plural {n} plane|{n} planes {n} площина|{n} площини|{n} площин +@plural {n} preset|{n} presets {n} набір|{n} набори|{n} наборів +@plural {n} sample point removed|{n} sample points removed Видалено {n} точку зразка|Видалено {n} точки зразка|Видалено {n} точок зразка +@plural {n} slice|{n} slices {n} фрагмент|{n} фрагменти|{n} фрагментів +@plural {n} step|{n} steps {n} крок|{n} кроки|{n} кроків +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} додаткове попередження про набір пензлів)|{warning} (+{n} додаткові попередження про набори пензлів)|{warning} (+{n} додаткових попереджень про набори пензлів) +@plural {what} with {n} warning|{what} with {n} warnings {what} з {n} попередженням|{what} з {n} попередженнями|{what} з {n} попередженнями @plural {n} Layer|{n} Layers {n} Шар|{n} Шари|{n} Шарів @plural {n} layer|{n} layers {n} шар|{n} шари|{n} шарів @plural Group · {n} layer|Group · {n} layers Група · {n} шар|Група · {n} шари|Група · {n} шарів diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index fda05b9245..d5ba8f0bc2 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -783,6 +783,20 @@ Statistics… 統計資料… Refine Strokes 調整筆畫 @plural {n} item|{n} items {n} 個項目 +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} 已將 {n} 個色票匯出至 {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} 已從 {group} 匯入 {n} 個筆刷 +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} 已從 {file} 匯入 {n} 個色票 +@plural Played {n} step|Played {n} steps 已播放 {n} 個步驟 +@plural Saved for Web: {n} file|Saved for Web: {n} files 儲存為網頁: {n} 個檔案 +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk 已更新 {n} 個在磁碟上變更的連結智慧型物件 +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. 此圖層構圖中記錄的 {n} 個圖層已刪除。請更新構圖或清除警告。 +@plural {n} plane|{n} planes {n} 個平面 +@plural {n} preset|{n} presets {n} 個預設集 +@plural {n} sample point removed|{n} sample points removed 已移除 {n} 個取樣點 +@plural {n} slice|{n} slices {n} 個切片 +@plural {n} step|{n} steps {n} 個步驟 +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (另有 {n} 個筆刷預設集警告) +@plural {what} with {n} warning|{what} with {n} warnings {what},有 {n} 個警告 Auto 自動 (print to the printer) (列印至印表機) + Add variable + 新增變數 From 67ca74fe182c2796d6a658a59495dd9dd85f6c75 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 05:44:09 +0200 Subject: [PATCH 17/23] Align overlapping CI repairs with upstream while retaining regression coverage --- apps/photocraft-cli/tests/cli.rs | 5 +-- apps/photocraft-cli/tests/orientation.rs | 5 +-- crates/engine/src/adjust_params.rs | 38 ++++++++++++++++----- xtask/src/i18n_coverage.rs | 43 +++++++++++------------- 4 files changed, 56 insertions(+), 35 deletions(-) diff --git a/apps/photocraft-cli/tests/cli.rs b/apps/photocraft-cli/tests/cli.rs index 9000cc35e7..5baa83fde3 100644 --- a/apps/photocraft-cli/tests/cli.rs +++ b/apps/photocraft-cli/tests/cli.rs @@ -189,10 +189,11 @@ fn run_commands_and_save() { let lines: Vec = out.lines().map(|l| serde_json::from_str(l).unwrap()).collect(); assert_eq!(lines.len(), 3); assert_eq!(lines[2]["command"], "document.inspect"); - assert_eq!(lines[2]["result"]["name"], "Run", "inspecting before --out retains the document title"); + assert_eq!(lines[2]["result"]["name"], "Run"); let (info, _) = ok(bin().arg("info").arg(&out_pc)); let v: Value = serde_json::from_str(&info).unwrap(); - assert_eq!(v["name"], "r.pcraft", "a native bundle stores its destination filename"); + // Saving a native document gives the reopened bundle its output filename. + assert_eq!(v["name"], "r.pcraft"); let names: Vec<&str> = v["layers"].as_array().unwrap().iter().filter_map(|l| l["name"].as_str()).collect(); assert_eq!(names, ["Ink", "Background"]); // Continue from the saved file and export PNG. diff --git a/apps/photocraft-cli/tests/orientation.rs b/apps/photocraft-cli/tests/orientation.rs index e13319207c..101195581f 100644 --- a/apps/photocraft-cli/tests/orientation.rs +++ b/apps/photocraft-cli/tests/orientation.rs @@ -121,14 +121,15 @@ fn orientation_6_jpeg_converts_upright_and_rotates_back() { assert!(near(at(28, 12), upright_color(12, 4)), "{:?}", at(28, 12)); assert!(near(at(4, 8), upright_color(8, 28)), "{:?}", at(4, 8)); - // .pcraft save, reopen and save again: destination names follow Save As; other metadata and pixels match. + // .pcraft save, reopen and save again: identical document and pixels. let (a, b) = (d.join("a.pcraft"), d.join("b.pcraft")); ok(bin().arg("convert").arg(&jpg).arg(&a)); ok(bin().arg("convert").arg(&a).arg(&b)); - // Check destination names explicitly, then compare the remaining metadata. + // Everything but the file's own path and saved document name must match. let info = |p: &Path| { let mut v = serde_json::from_str::(&ok(bin().arg("info").arg(p))).unwrap(); v.as_object_mut().unwrap().remove("file"); + v.as_object_mut().unwrap().remove("path"); v }; let (mut ia, mut ib) = (info(&a), info(&b)); diff --git a/crates/engine/src/adjust_params.rs b/crates/engine/src/adjust_params.rs index 4b2f3c79c4..5885f0cdb7 100644 --- a/crates/engine/src/adjust_params.rs +++ b/crates/engine/src/adjust_params.rs @@ -1624,12 +1624,10 @@ mod tests { #[test] fn destructive_levels_dont_clip_in_32_bit() { - // Input 15..230, gamma 1.3, output 10..245: black and white land on the output range in - // integer documents. Float32 keeps HDR values outside 0..1, as the compositor's real-file - // Levels oracle does. These independently calculated endpoints use the signed-power - // curve at black and white, not display-clipped values. + // Input 15..230, gamma 1.3, output 10..245: integer documents stop at the output range, + // while float documents preserve the curve's signed and HDR values beyond it. let params = json!({"inBlack": 15, "inWhite": 230, "gamma": 1.3, "outBlack": 10, "outWhite": 245}); - for (depth, low, high, tolerance) in [(8, 10.0, 245.0, 0.6), (16, 10.0, 245.0, 0.6), (32, -20.308_89, 265.750_3, 0.01)] { + for depth in [8, 16, 32] { let mut s = crate::Session::new(); s.execute("file.new", json!({"width": 16, "height": 16, "depth": depth, "background": "white"})).unwrap(); s.execute("select.rect", json!({"x": 0, "y": 0, "width": 8, "height": 16})).unwrap(); @@ -1637,10 +1635,12 @@ mod tests { s.execute("select.deselect", json!({})).unwrap(); s.execute("image.adjustments.levels", params.clone()).unwrap(); let px = pixels(&s); - assert!((px[0][0] * 255.0 - low).abs() < tolerance, "black @{depth}: {:?}", px[0]); - assert!((px[1][0] * 255.0 - high).abs() < tolerance, "white @{depth}: {:?}", px[1]); if depth == 32 { - assert!(px[0][0] < 0.0 && px[1][0] > 1.0, "HDR endpoints must remain unclipped"); + assert!(px[0][0].is_finite() && px[0][0] < 0.0, "float black keeps its signed result: {:?}", px[0]); + assert!(px[1][0].is_finite() && px[1][0] > 1.0, "float white keeps its HDR result: {:?}", px[1]); + } else { + assert!((px[0][0] * 255.0 - 10.0).abs() < 0.6, "black @{depth}: {:?}", px[0]); + assert!((px[1][0] * 255.0 - 245.0).abs() < 0.6, "white @{depth}: {:?}", px[1]); } } } @@ -1706,4 +1706,26 @@ mod tests { } } } + #[test] + fn destructive_levels_match_independent_signed_hdr_endpoints() { + // Input 15..230, gamma 1.3, output 10..245: black and white land on the output range in + // integer documents. Float32 keeps HDR values outside 0..1, as the compositor's real-file + // Levels oracle does. These independently calculated endpoints use the signed-power + // curve at black and white, not display-clipped values. + let params = json!({"inBlack": 15, "inWhite": 230, "gamma": 1.3, "outBlack": 10, "outWhite": 245}); + for (depth, low, high, tolerance) in [(8, 10.0, 245.0, 0.6), (16, 10.0, 245.0, 0.6), (32, -20.308_89, 265.750_3, 0.01)] { + let mut s = crate::Session::new(); + s.execute("file.new", json!({"width": 16, "height": 16, "depth": depth, "background": "white"})).unwrap(); + s.execute("select.rect", json!({"x": 0, "y": 0, "width": 8, "height": 16})).unwrap(); + s.execute("edit.fill", json!({"color": "#000000"})).unwrap(); + s.execute("select.deselect", json!({})).unwrap(); + s.execute("image.adjustments.levels", params.clone()).unwrap(); + let px = pixels(&s); + assert!((px[0][0] * 255.0 - low).abs() < tolerance, "black @{depth}: {:?}", px[0]); + assert!((px[1][0] * 255.0 - high).abs() < tolerance, "white @{depth}: {:?}", px[1]); + if depth == 32 { + assert!(px[0][0] < 0.0 && px[1][0] > 1.0, "HDR endpoints must remain unclipped"); + } + } + } } diff --git a/xtask/src/i18n_coverage.rs b/xtask/src/i18n_coverage.rs index 984d8c5ce5..ca2787b82d 100644 --- a/xtask/src/i18n_coverage.rs +++ b/xtask/src/i18n_coverage.rs @@ -185,13 +185,10 @@ fn plural_keys(sources: &[(PathBuf, String)]) -> BTreeSet { rest = rest.get(at + 4..).unwrap_or(""); let Some(end) = call_end(rest) else { break }; let args = rest.get(..end).unwrap_or(""); - let args = split_arguments(args); - let literal = |arg: &&str| { - let arg = arg.trim(); - let strings = quoted_strings(arg); - if arg.starts_with('"') && arg.ends_with('"') && strings.len() == 1 { strings.into_iter().next() } else { None } - }; - if let Some((one, other)) = args.get(2).and_then(literal).zip(args.get(3).and_then(literal)) { + // `trn(lang, n, one, other)`: the forms are the last two literals, so a string in the + // count expression (`r["files"].len()`) is not mistaken for one. + let forms = quoted_strings(args); + if let [.., one, other] = forms.as_slice() { keys.insert(Key { context: "@plural".into(), source: format!("{one}|{other}") }); } rest = rest.get(end + 1..).unwrap_or(""); @@ -548,17 +545,11 @@ mod tests { fn plural_keys_come_from_source_calls() { let sources = vec![(PathBuf::from("ui.rs"), r#"trn(lang, count, "{n} layer", "{n} layers");"#.into())]; assert!(plural_keys(&sources).contains(&Key { context: "@plural".into(), source: "{n} layer|{n} layers".into() })); - } - - #[test] - fn plural_forms_follow_count_expressions_and_dynamic_forms_are_not_literal_keys() { - let sources = vec![( - PathBuf::from("ui.rs"), - r#"trn(lang, r["files"].as_array().map_or(0, Vec::len) as u64, "Saved {n} file", "Saved {n} files"); - trn(lang, count, one, other);"# - .into(), - )]; - assert_eq!(plural_keys(&sources), BTreeSet::from([Key { context: "@plural".into(), source: "Saved {n} file|Saved {n} files".into() }])); + // A string literal in the count expression is not one of the forms. + let sources = vec![(PathBuf::from("ui.rs"), r#"trn(lang, r["files"].len() as u64, "{n} file", "{n} files");"#.into())]; + let keys = plural_keys(&sources); + assert!(keys.contains(&Key { context: "@plural".into(), source: "{n} file|{n} files".into() }), "{keys:?}"); + assert_eq!(keys.len(), 1, "{keys:?}"); } #[test] @@ -576,7 +567,6 @@ mod tests { fn source_key_set_is_covered_by_complete_catalogs() { let root = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap_or(Path::new(".")); let keys = source_keys(root).unwrap_or_default(); - let mut gaps = Vec::new(); for (code, path) in [ ("ja", "ja.tsv"), ("zh-hant", "zh-hant.tsv"), @@ -594,10 +584,17 @@ mod tests { let text = fs::read_to_string(&catalog_path).unwrap_or_default(); let translations = parse_catalog(&catalog_path, &text).unwrap_or_default(); let missing: Vec<_> = keys.difference(&translations).collect(); - if !missing.is_empty() { - gaps.push(format!("{code}: missing source keys: {missing:#?}")); - } + assert!(missing.is_empty(), "{code}: missing source keys: {missing:#?}"); } - assert!(gaps.is_empty(), "{}", gaps.join("\n")); + } + #[test] + fn plural_forms_follow_count_expressions_and_dynamic_forms_are_not_literal_keys() { + let sources = vec![( + PathBuf::from("ui.rs"), + r#"trn(lang, r["files"].as_array().map_or(0, Vec::len) as u64, "Saved {n} file", "Saved {n} files"); + trn(lang, count, one, other);"# + .into(), + )]; + assert_eq!(plural_keys(&sources), BTreeSet::from([Key { context: "@plural".into(), source: "Saved {n} file|Saved {n} files".into() }])); } } From 8c557fcb7d12a8f0d7d5ba07e9ee1bd1375cdfbd Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 05:46:49 +0200 Subject: [PATCH 18/23] Place identical browser engine profile beside upstream override --- Cargo.toml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9c0d911604..65e6c12d23 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,8 +82,8 @@ codegen-units = 1 # The browser build (apps/photocraft-web, `data-cargo-profile` in its index.html). Hosts cap the # size of a single file (Cloudflare Pages/Workers: 25 MiB), and the wasm is downloaded on every -# visit, so this profile optimizes for size: fat LTO, opt-level "z" for the UI shell, and "s" for -# other crates except pixel processing, which keeps opt-level 3 for filters and compositing. panic +# visit, so this profile optimizes for size: fat LTO, opt-level "z" for the UI, command, and I/O +# shells, and "s" for other crates except pixel processing, which keeps opt-level 3. panic # stays the target default (wasm32-unknown-unknown aborts; AGENTS.md's `panic = "unwind"` is for # the native app shell). packaging/web/package.sh fails the build above 24 MiB. [profile.wasm-release] @@ -101,6 +101,15 @@ opt-level = "s" [profile.wasm-release.package.photocraft-ui-egui] opt-level = "z" +# Keep browser command dispatch, import/export glue, and the entry point compact. Native +# builds and the speed-oriented pixel-processing overrides below retain their settings. +[profile.wasm-release.package.photocraft-engine] +opt-level = "z" +[profile.wasm-release.package.photocraft-io] +opt-level = "z" +[profile.wasm-release.package.photocraft-web] +opt-level = "z" + [profile.wasm-release.package.photocraft-raster] opt-level = 3 [profile.wasm-release.package.photocraft-color] @@ -114,6 +123,3 @@ opt-level = 3 [profile.wasm-release.package.photocraft-paint] opt-level = 3 -# Size-focused command orchestration in the browser; pixel kernels keep their overrides above. -[profile.wasm-release.package.photocraft-engine] -opt-level = "z" From 0467f715c60cdc30ae4af77639603935c7ecb9a0 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 05:48:59 +0200 Subject: [PATCH 19/23] Reuse upstream counted catalogs to prevent duplicate keys in PR merge --- crates/ui-egui/src/i18n/de.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/el.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/es.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/it.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/ja.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/nl.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/pt-br.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/ru.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/uk.tsv | 29 +++++++++++++++-------------- crates/ui-egui/src/i18n/zh-hant.tsv | 29 +++++++++++++++-------------- 10 files changed, 150 insertions(+), 140 deletions(-) diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 6dceac7cc6..3deb6aefe8 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -769,20 +769,6 @@ Statistics… Statistiken… Refine Strokes Verfeinerungsstriche @plural {n} item|{n} items {n} Element|{n} Elemente -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} Farbfeld nach {file} exportiert|{n} Farbfelder nach {file} exportiert -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} Pinsel aus {group} importiert|{n} Pinsel aus {group} importiert -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} Farbfeld aus {file} importiert|{n} Farbfelder aus {file} importiert -@plural Played {n} step|Played {n} steps {n} Schritt abgespielt|{n} Schritte abgespielt -@plural Saved for Web: {n} file|Saved for Web: {n} files Für Web gespeichert: {n} Datei|Für Web gespeichert: {n} Dateien -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} verknüpftes Smart-Objekt mit Änderungen auf dem Datenträger aktualisiert|{n} verknüpfte Smart-Objekte mit Änderungen auf dem Datenträger aktualisiert -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} in dieser Ebenenkomposition gespeicherte Ebene wurde gelöscht. Aktualisieren Sie die Komposition oder entfernen Sie die Warnung.|{n} in dieser Ebenenkomposition gespeicherte Ebenen wurden gelöscht. Aktualisieren Sie die Komposition oder entfernen Sie die Warnung. -@plural {n} plane|{n} planes {n} Ebene|{n} Ebenen -@plural {n} preset|{n} presets {n} Vorgabe|{n} Vorgaben -@plural {n} sample point removed|{n} sample points removed {n} Messpunkt entfernt|{n} Messpunkte entfernt -@plural {n} slice|{n} slices {n} Slice|{n} Slices -@plural {n} step|{n} steps {n} Schritt|{n} Schritte -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} weitere Warnung zu Pinselvorgaben)|{warning} (+{n} weitere Warnungen zu Pinselvorgaben) -@plural {what} with {n} warning|{what} with {n} warnings {what} mit {n} Warnung|{what} mit {n} Warnungen Auto Automatisch (print to the printer) (an den Drucker senden) + Add variable + Variable hinzufügen @@ -2681,3 +2667,18 @@ curves Smooth Glätten Apply mask to layer before removing? Maske vor dem Entfernen auf die Ebene anwenden? The layer or its mask changed. Drag the mask onto the Trash again. Die Ebene oder ihre Maske hat sich geändert. Ziehen Sie die Maske erneut in den Papierkorb. Delete the vector mask? Vektormaske löschen? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} Farbfeld nach {file} exportiert|{n} Farbfelder nach {file} exportiert +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} Pinsel aus {group} importiert|{n} Pinsel aus {group} importiert +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} Farbfeld aus {file} importiert|{n} Farbfelder aus {file} importiert +@plural Played {n} step|Played {n} steps {n} Schritt wiedergegeben|{n} Schritte wiedergegeben +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} verknüpftes Smart-Objekt aktualisiert, das auf dem Datenträger geändert wurde|{n} verknüpfte Smart-Objekte aktualisiert, die auf dem Datenträger geändert wurden +@plural Saved for Web: {n} file|Saved for Web: {n} files Für Web gespeichert: {n} Datei|Für Web gespeichert: {n} Dateien +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} von dieser Komposition erfasste Ebene wurde gelöscht. Aktualisiere die Komposition oder lösche die Warnung.|{n} von dieser Komposition erfasste Ebenen wurden gelöscht. Aktualisiere die Komposition oder lösche die Warnung. +@plural {n} plane|{n} planes {n} Fläche|{n} Flächen +@plural {n} preset|{n} presets {n} Vorgabe|{n} Vorgaben +@plural {n} sample point removed|{n} sample points removed {n} Messpunkt entfernt|{n} Messpunkte entfernt +@plural {n} slice|{n} slices {n} Slice|{n} Slices +@plural {n} step|{n} steps {n} Schritt|{n} Schritte +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} weitere Pinselvorgaben-Warnung)|{warning} (+{n} weitere Pinselvorgaben-Warnungen) +@plural {what} with {n} warning|{what} with {n} warnings {what} mit {n} Warnung|{what} mit {n} Warnungen diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 83dfb20a8a..ae85c5293c 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -3232,20 +3232,6 @@ @plural Group · {n} layer|Group · {n} layers Ομάδα · {n} επίπεδο|Ομάδα · {n} επίπεδα @plural {n} Layer|{n} Layers {n} επίπεδο|{n} επίπεδα @plural {n} item|{n} items {n} στοιχείο|{n} στοιχεία -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Εξήχθη {n} δείγμα χρώματος στο {file}|Εξήχθησαν {n} δείγματα χρωμάτων στο {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Εισήχθη {n} πινέλο από το {group}|Εισήχθησαν {n} πινέλα από το {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Εισήχθη {n} δείγμα χρώματος από το {file}|Εισήχθησαν {n} δείγματα χρωμάτων από το {file} -@plural Played {n} step|Played {n} steps Αναπαράχθηκε {n} βήμα|Αναπαράχθηκαν {n} βήματα -@plural Saved for Web: {n} file|Saved for Web: {n} files Αποθηκεύτηκε για Web: {n} αρχείο|Αποθηκεύτηκαν για Web: {n} αρχεία -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Ενημερώθηκε {n} συνδεδεμένο έξυπνο αντικείμενο που άλλαξε στον δίσκο|Ενημερώθηκαν {n} συνδεδεμένα έξυπνα αντικείμενα που άλλαξαν στον δίσκο -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Διαγράφηκε {n} επίπεδο που καταγράφηκε σε αυτή τη σύνθεση. Ενημερώστε τη σύνθεση ή αφαιρέστε την προειδοποίηση.|Διαγράφηκαν {n} επίπεδα που καταγράφηκαν σε αυτή τη σύνθεση. Ενημερώστε τη σύνθεση ή αφαιρέστε την προειδοποίηση. -@plural {n} plane|{n} planes {n} επίπεδο προοπτικής|{n} επίπεδα προοπτικής -@plural {n} preset|{n} presets {n} προεπιλογή|{n} προεπιλογές -@plural {n} sample point removed|{n} sample points removed Αφαιρέθηκε {n} σημείο δείγματος|Αφαιρέθηκαν {n} σημεία δείγματος -@plural {n} slice|{n} slices {n} τμήμα εικόνας|{n} τμήματα εικόνας -@plural {n} step|{n} steps {n} βήμα|{n} βήματα -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} ακόμη προειδοποίηση προεπιλογής πινέλου)|{warning} (+{n} ακόμη προειδοποιήσεις προεπιλογών πινέλων) -@plural {what} with {n} warning|{what} with {n} warnings {what} με {n} προειδοποίηση|{what} με {n} προειδοποιήσεις @plural {n} layer|{n} layers {n} επίπεδο|{n} επίπεδα @plural {n} sample|{n} samples {n} δείγμα|{n} δείγματα cameraRaw Amount Ποσότητα @@ -3739,3 +3725,18 @@ curves Smooth Εξομάλυνση Apply mask to layer before removing? Εφαρμογή της μάσκας στο επίπεδο πριν από την αφαίρεση; The layer or its mask changed. Drag the mask onto the Trash again. Το επίπεδο ή η μάσκα του άλλαξε. Σύρετε ξανά τη μάσκα στον Κάδο. Delete the vector mask? Διαγραφή της διανυσματικής μάσκας; +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Εξήχθη {n} δείγμα χρώματος στο {file}|Εξήχθησαν {n} δείγματα χρωμάτων στο {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Εισήχθη {n} πινέλο από την ομάδα {group}|Εισήχθησαν {n} πινέλα από την ομάδα {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Εισήχθη {n} δείγμα χρώματος από το {file}|Εισήχθησαν {n} δείγματα χρωμάτων από το {file} +@plural Played {n} step|Played {n} steps Αναπαράχθηκε {n} βήμα|Αναπαράχθηκαν {n} βήματα +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Ενημερώθηκε {n} συνδεδεμένο έξυπνο αντικείμενο που άλλαξε στον δίσκο|Ενημερώθηκαν {n} συνδεδεμένα έξυπνα αντικείμενα που άλλαξαν στον δίσκο +@plural Saved for Web: {n} file|Saved for Web: {n} files Αποθήκευση για Web: {n} αρχείο|Αποθήκευση για Web: {n} αρχεία +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Διαγράφηκε {n} επίπεδο που καταγράφει αυτή η σύνθεση. Ενημερώστε τη σύνθεση ή καταργήστε την προειδοποίηση.|Διαγράφηκαν {n} επίπεδα που καταγράφει αυτή η σύνθεση. Ενημερώστε τη σύνθεση ή καταργήστε την προειδοποίηση. +@plural {n} plane|{n} planes {n} επίπεδο προοπτικής|{n} επίπεδα προοπτικής +@plural {n} preset|{n} presets {n} προεπιλογή|{n} προεπιλογές +@plural {n} sample point removed|{n} sample points removed Αφαιρέθηκε {n} σημείο δειγματοληψίας|Αφαιρέθηκαν {n} σημεία δειγματοληψίας +@plural {n} slice|{n} slices {n} τομή|{n} τομές +@plural {n} step|{n} steps {n} βήμα|{n} βήματα +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} ακόμη προειδοποίηση προεπιλογών πινέλων)|{warning} (+{n} ακόμη προειδοποιήσεις προεπιλογών πινέλων) +@plural {what} with {n} warning|{what} with {n} warnings {what} με {n} προειδοποίηση|{what} με {n} προειδοποιήσεις diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 127ef219fc..1496ca4861 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -776,20 +776,6 @@ Statistics… Estadísticas… Refine Strokes Trazos de perfeccionamiento @plural {n} item|{n} items {n} elemento|{n} elementos -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Se exportó {n} muestra a {file}|Se exportaron {n} muestras a {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Se importó {n} pincel de {group}|Se importaron {n} pinceles de {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Se importó {n} muestra de {file}|Se importaron {n} muestras de {file} -@plural Played {n} step|Played {n} steps Se reprodujo {n} paso|Se reprodujeron {n} pasos -@plural Saved for Web: {n} file|Saved for Web: {n} files Guardado para Web: {n} archivo|Guardado para Web: {n} archivos -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Se actualizó {n} objeto inteligente vinculado que cambió en disco|Se actualizaron {n} objetos inteligentes vinculados que cambiaron en disco -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Se eliminó {n} capa registrada en esta composición. Actualice la composición o borre la advertencia.|Se eliminaron {n} capas registradas en esta composición. Actualice la composición o borre la advertencia. -@plural {n} plane|{n} planes {n} plano|{n} planos -@plural {n} preset|{n} presets {n} ajuste preestablecido|{n} ajustes preestablecidos -@plural {n} sample point removed|{n} sample points removed Se eliminó {n} punto de muestra|Se eliminaron {n} puntos de muestra -@plural {n} slice|{n} slices {n} sector|{n} sectores -@plural {n} step|{n} steps {n} paso|{n} pasos -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} advertencia más de ajustes preestablecidos de pincel)|{warning} (+{n} advertencias más de ajustes preestablecidos de pincel) -@plural {what} with {n} warning|{what} with {n} warnings {what} con {n} advertencia|{what} con {n} advertencias Auto Automático # Dialogs and panels @@ -2722,3 +2708,18 @@ curves Smooth Suavizar Apply mask to layer before removing? ¿Aplicar la máscara a la capa antes de eliminarla? The layer or its mask changed. Drag the mask onto the Trash again. La capa o su máscara ha cambiado. Arrastre de nuevo la máscara a la papelera. Delete the vector mask? ¿Eliminar la máscara vectorial? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Se exportó {n} muestra a {file}|Se exportaron {n} muestras a {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Se importó {n} pincel de {group}|Se importaron {n} pinceles de {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Se importó {n} muestra de {file}|Se importaron {n} muestras de {file} +@plural Played {n} step|Played {n} steps Se reprodujo {n} paso|Se reprodujeron {n} pasos +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Se actualizó {n} objeto inteligente enlazado modificado en el disco|Se actualizaron {n} objetos inteligentes enlazados modificados en el disco +@plural Saved for Web: {n} file|Saved for Web: {n} files Guardado para Web: {n} archivo|Guardado para Web: {n} archivos +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Se eliminó {n} capa registrada por esta composición. Actualice la composición o borre la advertencia.|Se eliminaron {n} capas registradas por esta composición. Actualice la composición o borre la advertencia. +@plural {n} plane|{n} planes {n} plano|{n} planos +@plural {n} preset|{n} presets {n} ajuste preestablecido|{n} ajustes preestablecidos +@plural {n} sample point removed|{n} sample points removed Se quitó {n} punto de muestreo|Se quitaron {n} puntos de muestreo +@plural {n} slice|{n} slices {n} sector|{n} sectores +@plural {n} step|{n} steps {n} paso|{n} pasos +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} advertencia más de ajustes preestablecidos de pincel)|{warning} (+{n} advertencias más de ajustes preestablecidos de pincel) +@plural {what} with {n} warning|{what} with {n} warnings {what} con {n} advertencia|{what} con {n} advertencias diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 627cf3caec..3dd931dccd 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -774,20 +774,6 @@ Statistics… Statistiche… Refine Strokes Tratti di perfezionamento @plural {n} item|{n} items {n} elemento|{n} elementi -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Esportato {n} campione in {file}|Esportati {n} campioni in {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Importato {n} pennello da {group}|Importati {n} pennelli da {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Importato {n} campione da {file}|Importati {n} campioni da {file} -@plural Played {n} step|Played {n} steps Riprodotto {n} passaggio|Riprodotti {n} passaggi -@plural Saved for Web: {n} file|Saved for Web: {n} files Salvato per Web: {n} file|Salvati per Web: {n} file -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Aggiornato {n} oggetto avanzato collegato modificato su disco|Aggiornati {n} oggetti avanzati collegati modificati su disco -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. È stato eliminato {n} livello registrato in questa composizione. Aggiorna la composizione o rimuovi l’avviso.|Sono stati eliminati {n} livelli registrati in questa composizione. Aggiorna la composizione o rimuovi l’avviso. -@plural {n} plane|{n} planes {n} piano|{n} piani -@plural {n} preset|{n} presets {n} predefinito|{n} predefiniti -@plural {n} sample point removed|{n} sample points removed Rimosso {n} punto campione|Rimossi {n} punti campione -@plural {n} slice|{n} slices {n} sezione|{n} sezioni -@plural {n} step|{n} steps {n} passaggio|{n} passaggi -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} altro avviso di predefinito pennello)|{warning} (+{n} altri avvisi di predefiniti pennello) -@plural {what} with {n} warning|{what} with {n} warnings {what} con {n} avviso|{what} con {n} avvisi Auto Automatico # Dialogs and panels @@ -2713,3 +2699,18 @@ curves Smooth Leviga Apply mask to layer before removing? Applicare la maschera al livello prima di rimuoverla? The layer or its mask changed. Drag the mask onto the Trash again. Il livello o la sua maschera è cambiato. Trascina di nuovo la maschera nel cestino. Delete the vector mask? Eliminare la maschera vettoriale? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} campione esportato in {file}|{n} campioni esportati in {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} pennello importato da {group}|{n} pennelli importati da {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} campione importato da {file}|{n} campioni importati da {file} +@plural Played {n} step|Played {n} steps {n} passaggio riprodotto|{n} passaggi riprodotti +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} oggetto avanzato collegato modificato su disco aggiornato|{n} oggetti avanzati collegati modificati su disco aggiornati +@plural Saved for Web: {n} file|Saved for Web: {n} files Salvato per il Web: {n} file|Salvato per il Web: {n} file +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} livello registrato da questa composizione è stato eliminato. Aggiorna la composizione o cancella l'avviso.|{n} livelli registrati da questa composizione sono stati eliminati. Aggiorna la composizione o cancella l'avviso. +@plural {n} plane|{n} planes {n} piano|{n} piani +@plural {n} preset|{n} presets {n} predefinito|{n} predefiniti +@plural {n} sample point removed|{n} sample points removed {n} punto di campionamento rimosso|{n} punti di campionamento rimossi +@plural {n} slice|{n} slices {n} sezione|{n} sezioni +@plural {n} step|{n} steps {n} passaggio|{n} passaggi +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} altro avviso sui predefiniti pennello)|{warning} (+{n} altri avvisi sui predefiniti pennello) +@plural {what} with {n} warning|{what} with {n} warnings {what} con {n} avviso|{what} con {n} avvisi diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index ef902970aa..f43ce5b8f3 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -776,20 +776,6 @@ Statistics… 統計情報… Refine Strokes 調整ストローク @plural {n} item|{n} items {n} 件 -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {file} にスウォッチ {n} 個を書き出しました -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {group} からブラシ {n} 個を読み込みました -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {file} からスウォッチ {n} 個を読み込みました -@plural Played {n} step|Played {n} steps {n} ステップを再生しました -@plural Saved for Web: {n} file|Saved for Web: {n} files Web 用に保存: {n} ファイル -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk ディスク上で変更されたリンクされたスマートオブジェクト {n} 個を更新しました -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. このレイヤーカンプに記録された {n} 個のレイヤーが削除されました。カンプを更新するか、警告を消去してください。 -@plural {n} plane|{n} planes {n} 平面 -@plural {n} preset|{n} presets {n} プリセット -@plural {n} sample point removed|{n} sample points removed サンプルポイント {n} 個を削除しました -@plural {n} slice|{n} slices {n} スライス -@plural {n} step|{n} steps {n} ステップ -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (ほかにブラシプリセットの警告 {n} 件) -@plural {what} with {n} warning|{what} with {n} warnings {what} (警告 {n} 件) Auto 自動 # Dialogs and panels @@ -3651,3 +3637,18 @@ curves Smooth スムーズ Apply mask to layer before removing? 削除する前にマスクをレイヤーに適用しますか? The layer or its mask changed. Drag the mask onto the Trash again. レイヤーまたはそのマスクが変更されました。もう一度マスクをゴミ箱にドラッグしてください。 Delete the vector mask? ベクトルマスクを削除しますか? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} スウォッチ {n} 個を {file} に書き出しました +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {group} からブラシ {n} 個を読み込みました +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {file} からスウォッチ {n} 個を読み込みました +@plural Played {n} step|Played {n} steps {n} ステップを再生しました +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk ディスク上で変更されたリンクされたスマートオブジェクト {n} 個を更新しました +@plural Saved for Web: {n} file|Saved for Web: {n} files Web 用に保存: {n} ファイル +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. このカンプに記録されたレイヤー {n} 個が削除されました。カンプを更新するか、警告を消去してください。 +@plural {n} plane|{n} planes {n} 個の平面 +@plural {n} preset|{n} presets {n} 個のプリセット +@plural {n} sample point removed|{n} sample points removed サンプルポイント {n} 個を削除しました +@plural {n} slice|{n} slices {n} 個のスライス +@plural {n} step|{n} steps {n} ステップ +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning}(ほかにブラシプリセットの警告 {n} 件) +@plural {what} with {n} warning|{what} with {n} warnings {what}(警告 {n} 件) diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 0d1875f36f..c273c8f26f 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -759,20 +759,6 @@ Statistics… Statistieken… Refine Strokes Verfijningsstreken @plural {n} item|{n} items {n} element|{n} elementen -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} staal geëxporteerd naar {file}|{n} stalen geëxporteerd naar {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} penseel geïmporteerd uit {group}|{n} penselen geïmporteerd uit {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} staal geïmporteerd uit {file}|{n} stalen geïmporteerd uit {file} -@plural Played {n} step|Played {n} steps {n} stap afgespeeld|{n} stappen afgespeeld -@plural Saved for Web: {n} file|Saved for Web: {n} files Opgeslagen voor web: {n} bestand|Opgeslagen voor web: {n} bestanden -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} gekoppeld slim object met wijzigingen op schijf bijgewerkt|{n} gekoppelde slimme objecten met wijzigingen op schijf bijgewerkt -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} laag die in deze laagcompositie is vastgelegd is verwijderd. Werk de compositie bij of verwijder de waarschuwing.|{n} lagen die in deze laagcompositie zijn vastgelegd zijn verwijderd. Werk de compositie bij of verwijder de waarschuwing. -@plural {n} plane|{n} planes {n} vlak|{n} vlakken -@plural {n} preset|{n} presets {n} voorinstelling|{n} voorinstellingen -@plural {n} sample point removed|{n} sample points removed {n} monsterpunt verwijderd|{n} monsterpunten verwijderd -@plural {n} slice|{n} slices {n} segment|{n} segmenten -@plural {n} step|{n} steps {n} stap|{n} stappen -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} extra waarschuwing voor penseelvoorinstellingen)|{warning} (+{n} extra waarschuwingen voor penseelvoorinstellingen) -@plural {what} with {n} warning|{what} with {n} warnings {what} met {n} waarschuwing|{what} met {n} waarschuwingen Auto Automatisch (print to the printer) (naar de printer afdrukken) + Add variable + Variabele toevoegen @@ -3801,3 +3787,18 @@ curves Smooth Vloeiend maken Apply mask to layer before removing? Masker toepassen op laag voordat het wordt verwijderd? The layer or its mask changed. Drag the mask onto the Trash again. De laag of het masker is gewijzigd. Sleep het masker opnieuw naar de prullenbak. Delete the vector mask? Het vectormasker verwijderen? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} staal geëxporteerd naar {file}|{n} stalen geëxporteerd naar {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} penseel geïmporteerd uit {group}|{n} penselen geïmporteerd uit {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} staal geïmporteerd uit {file}|{n} stalen geïmporteerd uit {file} +@plural Played {n} step|Played {n} steps {n} stap afgespeeld|{n} stappen afgespeeld +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} gekoppeld slim object bijgewerkt dat op schijf is gewijzigd|{n} gekoppelde slimme objecten bijgewerkt die op schijf zijn gewijzigd +@plural Saved for Web: {n} file|Saved for Web: {n} files Opgeslagen voor web: {n} bestand|Opgeslagen voor web: {n} bestanden +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} laag die deze compositie vastlegt, is verwijderd. Werk de compositie bij of wis de waarschuwing.|{n} lagen die deze compositie vastlegt, zijn verwijderd. Werk de compositie bij of wis de waarschuwing. +@plural {n} plane|{n} planes {n} vlak|{n} vlakken +@plural {n} preset|{n} presets {n} voorinstelling|{n} voorinstellingen +@plural {n} sample point removed|{n} sample points removed {n} steekproefpunt verwijderd|{n} steekproefpunten verwijderd +@plural {n} slice|{n} slices {n} segment|{n} segmenten +@plural {n} step|{n} steps {n} stap|{n} stappen +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} andere waarschuwing over penseelvoorinstellingen)|{warning} (+{n} andere waarschuwingen over penseelvoorinstellingen) +@plural {what} with {n} warning|{what} with {n} warnings {what} met {n} waarschuwing|{what} met {n} waarschuwingen diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 8c9348284e..8c3fedb7d6 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -761,20 +761,6 @@ Statistics… Estatísticas… Refine Strokes Traços de refinamento @plural {n} item|{n} items {n} item|{n} itens -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} amostra exportada para {file}|{n} amostras exportadas para {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} pincel importado de {group}|{n} pincéis importados de {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} amostra importada de {file}|{n} amostras importadas de {file} -@plural Played {n} step|Played {n} steps {n} etapa reproduzida|{n} etapas reproduzidas -@plural Saved for Web: {n} file|Saved for Web: {n} files Salvo para Web: {n} arquivo|Salvo para Web: {n} arquivos -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} objeto inteligente vinculado alterado no disco foi atualizado|{n} objetos inteligentes vinculados alterados no disco foram atualizados -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} camada registrada nesta composição foi excluída. Atualize a composição ou remova o aviso.|{n} camadas registradas nesta composição foram excluídas. Atualize a composição ou remova o aviso. -@plural {n} plane|{n} planes {n} plano|{n} planos -@plural {n} preset|{n} presets {n} predefinição|{n} predefinições -@plural {n} sample point removed|{n} sample points removed {n} ponto de amostra removido|{n} pontos de amostra removidos -@plural {n} slice|{n} slices {n} fatia|{n} fatias -@plural {n} step|{n} steps {n} etapa|{n} etapas -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} aviso adicional de predefinição de pincel)|{warning} (+{n} avisos adicionais de predefinições de pincel) -@plural {what} with {n} warning|{what} with {n} warnings {what} com {n} aviso|{what} com {n} avisos Auto Automático (print to the printer) (imprimir na impressora) + Add variable + Adicionar variável @@ -3831,3 +3817,18 @@ layerLabel No Color Sem cor Apply mask to layer before removing? Aplicar a máscara à camada antes de removê-la? The layer or its mask changed. Drag the mask onto the Trash again. A camada ou a máscara mudou. Arraste a máscara para a Lixeira novamente. Delete the vector mask? Excluir a máscara vetorial? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {n} amostra exportada para {file}|{n} amostras exportadas para {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {n} pincel importado de {group}|{n} pincéis importados de {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {n} amostra importada de {file}|{n} amostras importadas de {file} +@plural Played {n} step|Played {n} steps {n} etapa reproduzida|{n} etapas reproduzidas +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk {n} objeto inteligente vinculado alterado no disco foi atualizado|{n} objetos inteligentes vinculados alterados no disco foram atualizados +@plural Saved for Web: {n} file|Saved for Web: {n} files Salvo para Web: {n} arquivo|Salvo para Web: {n} arquivos +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} camada registrada por esta composição foi excluída. Atualize a composição ou limpe o aviso.|{n} camadas registradas por esta composição foram excluídas. Atualize a composição ou limpe o aviso. +@plural {n} plane|{n} planes {n} plano|{n} planos +@plural {n} preset|{n} presets {n} predefinição|{n} predefinições +@plural {n} sample point removed|{n} sample points removed {n} ponto de amostragem removido|{n} pontos de amostragem removidos +@plural {n} slice|{n} slices {n} fatia|{n} fatias +@plural {n} step|{n} steps {n} etapa|{n} etapas +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} outro aviso de predefinição de pincel)|{warning} (+{n} outros avisos de predefinição de pincel) +@plural {what} with {n} warning|{what} with {n} warnings {what} com {n} aviso|{what} com {n} avisos diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 5334137310..1cc7640067 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -1807,20 +1807,6 @@ # Plurals @plural {n} item|{n} items {n} элемент|{n} элемента|{n} элементов -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Экспортирован {n} образец в {file}|Экспортировано {n} образца в {file}|Экспортировано {n} образцов в {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Импортирована {n} кисть из {group}|Импортировано {n} кисти из {group}|Импортировано {n} кистей из {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Импортирован {n} образец из {file}|Импортировано {n} образца из {file}|Импортировано {n} образцов из {file} -@plural Played {n} step|Played {n} steps Выполнен {n} шаг|Выполнено {n} шага|Выполнено {n} шагов -@plural Saved for Web: {n} file|Saved for Web: {n} files Сохранено для Web: {n} файл|Сохранено для Web: {n} файла|Сохранено для Web: {n} файлов -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Обновлён {n} связанный смарт-объект, изменённый на диске|Обновлено {n} связанных смарт-объекта, изменённых на диске|Обновлено {n} связанных смарт-объектов, изменённых на диске -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} слой, записанный в этом варианте слоя, был удалён. Обновите вариант или уберите предупреждение.|{n} слоя, записанных в этом варианте слоя, были удалены. Обновите вариант или уберите предупреждение.|{n} слоёв, записанных в этом варианте слоя, были удалены. Обновите вариант или уберите предупреждение. -@plural {n} plane|{n} planes {n} плоскость|{n} плоскости|{n} плоскостей -@plural {n} preset|{n} presets {n} набор|{n} набора|{n} наборов -@plural {n} sample point removed|{n} sample points removed Удалена {n} точка образца|Удалено {n} точки образца|Удалено {n} точек образца -@plural {n} slice|{n} slices {n} фрагмент|{n} фрагмента|{n} фрагментов -@plural {n} step|{n} steps {n} шаг|{n} шага|{n} шагов -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} дополнительное предупреждение о наборе кистей)|{warning} (+{n} дополнительных предупреждения о наборе кистей)|{warning} (+{n} дополнительных предупреждений о наборе кистей) -@plural {what} with {n} warning|{what} with {n} warnings {what} с {n} предупреждением|{what} с {n} предупреждениями|{what} с {n} предупреждениями @plural {n} Layer|{n} Layers {n} слой|{n} слоя|{n} слоёв @plural {n} layer|{n} layers {n} слой|{n} слоя|{n} слоёв @plural Group · {n} layer|Group · {n} layers Группа · {n} слой|Группа · {n} слоя|Группа · {n} слоёв @@ -2986,3 +2972,18 @@ curves Smooth Сгладить Apply mask to layer before removing? Применить маску к слою перед удалением? The layer or its mask changed. Drag the mask onto the Trash again. Слой или его маска изменились. Перетащите маску в корзину ещё раз. Delete the vector mask? Удалить векторную маску? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Экспортирован {n} образец в {file}|Экспортировано {n} образца в {file}|Экспортировано {n} образцов в {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Импортирована {n} кисть из {group}|Импортировано {n} кисти из {group}|Импортировано {n} кистей из {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Импортирован {n} образец из {file}|Импортировано {n} образца из {file}|Импортировано {n} образцов из {file} +@plural Played {n} step|Played {n} steps Воспроизведён {n} шаг|Воспроизведено {n} шага|Воспроизведено {n} шагов +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Обновлён {n} связанный смарт-объект, изменённый на диске|Обновлено {n} связанных смарт-объекта, изменённых на диске|Обновлено {n} связанных смарт-объектов, изменённых на диске +@plural Saved for Web: {n} file|Saved for Web: {n} files Сохранено для Web: {n} файл|Сохранено для Web: {n} файла|Сохранено для Web: {n} файлов +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Удалён {n} слой, записанный в этом варианте. Обновите вариант или сбросьте предупреждение.|Удалено {n} слоя, записанных в этом варианте. Обновите вариант или сбросьте предупреждение.|Удалено {n} слоёв, записанных в этом варианте. Обновите вариант или сбросьте предупреждение. +@plural {n} plane|{n} planes {n} плоскость|{n} плоскости|{n} плоскостей +@plural {n} preset|{n} presets {n} набор|{n} набора|{n} наборов +@plural {n} sample point removed|{n} sample points removed Удалена {n} точка замера|Удалено {n} точки замера|Удалено {n} точек замера +@plural {n} slice|{n} slices {n} фрагмент|{n} фрагмента|{n} фрагментов +@plural {n} step|{n} steps {n} шаг|{n} шага|{n} шагов +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (и ещё {n} предупреждение о наборах кистей)|{warning} (и ещё {n} предупреждения о наборах кистей)|{warning} (и ещё {n} предупреждений о наборах кистей) +@plural {what} with {n} warning|{what} with {n} warnings {what}: {n} предупреждение|{what}: {n} предупреждения|{what}: {n} предупреждений diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 6479030ebc..b0110fb2cc 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -1786,20 +1786,6 @@ # Plurals @plural {n} item|{n} items {n} елемент|{n} елементи|{n} елементів -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Експортовано {n} зразок кольору до {file}|Експортовано {n} зразки кольорів до {file}|Експортовано {n} зразків кольорів до {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Імпортовано {n} пензель із {group}|Імпортовано {n} пензлі з {group}|Імпортовано {n} пензлів із {group} -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Імпортовано {n} зразок кольору з {file}|Імпортовано {n} зразки кольорів із {file}|Імпортовано {n} зразків кольорів із {file} -@plural Played {n} step|Played {n} steps Відтворено {n} крок|Відтворено {n} кроки|Відтворено {n} кроків -@plural Saved for Web: {n} file|Saved for Web: {n} files Збережено для Web: {n} файл|Збережено для Web: {n} файли|Збережено для Web: {n} файлів -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Оновлено {n} зв’язаний смартоб’єкт, змінений на диску|Оновлено {n} зв’язані смартоб’єкти, змінені на диску|Оновлено {n} зв’язаних смартоб’єктів, змінених на диску -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Видалено {n} шар, записаний у цій композиції. Оновіть композицію або приберіть попередження.|Видалено {n} шари, записані в цій композиції. Оновіть композицію або приберіть попередження.|Видалено {n} шарів, записаних у цій композиції. Оновіть композицію або приберіть попередження. -@plural {n} plane|{n} planes {n} площина|{n} площини|{n} площин -@plural {n} preset|{n} presets {n} набір|{n} набори|{n} наборів -@plural {n} sample point removed|{n} sample points removed Видалено {n} точку зразка|Видалено {n} точки зразка|Видалено {n} точок зразка -@plural {n} slice|{n} slices {n} фрагмент|{n} фрагменти|{n} фрагментів -@plural {n} step|{n} steps {n} крок|{n} кроки|{n} кроків -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} додаткове попередження про набір пензлів)|{warning} (+{n} додаткові попередження про набори пензлів)|{warning} (+{n} додаткових попереджень про набори пензлів) -@plural {what} with {n} warning|{what} with {n} warnings {what} з {n} попередженням|{what} з {n} попередженнями|{what} з {n} попередженнями @plural {n} Layer|{n} Layers {n} Шар|{n} Шари|{n} Шарів @plural {n} layer|{n} layers {n} шар|{n} шари|{n} шарів @plural Group · {n} layer|Group · {n} layers Група · {n} шар|Група · {n} шари|Група · {n} шарів @@ -3739,3 +3725,18 @@ curves Smooth Згладити Apply mask to layer before removing? Застосувати маску до шару перед видаленням? The layer or its mask changed. Drag the mask onto the Trash again. Шар або його маска змінилися. Перетягніть маску до кошика ще раз. Delete the vector mask? Видалити векторну маску? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} Експортовано {n} зразок кольору до {file}|Експортовано {n} зразки кольорів до {file}|Експортовано {n} зразків кольорів до {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} Імпортовано {n} пензель з {group}|Імпортовано {n} пензлі з {group}|Імпортовано {n} пензлів з {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} Імпортовано {n} зразок кольору з {file}|Імпортовано {n} зразки кольорів з {file}|Імпортовано {n} зразків кольорів з {file} +@plural Played {n} step|Played {n} steps Відтворено {n} крок|Відтворено {n} кроки|Відтворено {n} кроків +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Оновлено {n} пов'язаний смартоб'єкт, змінений на диску|Оновлено {n} пов'язані смартоб'єкти, змінені на диску|Оновлено {n} пов'язаних смартоб'єктів, змінених на диску +@plural Saved for Web: {n} file|Saved for Web: {n} files Збережено для вебу: {n} файл|Збережено для вебу: {n} файли|Збережено для вебу: {n} файлів +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Видалено {n} шар, записаний у цій композиції. Оновіть композицію або скиньте попередження.|Видалено {n} шари, записані в цій композиції. Оновіть композицію або скиньте попередження.|Видалено {n} шарів, записаних у цій композиції. Оновіть композицію або скиньте попередження. +@plural {n} plane|{n} planes {n} площина|{n} площини|{n} площин +@plural {n} preset|{n} presets {n} набір|{n} набори|{n} наборів +@plural {n} sample point removed|{n} sample points removed Вилучено {n} точку вимірювання|Вилучено {n} точки вимірювання|Вилучено {n} точок вимірювання +@plural {n} slice|{n} slices {n} фрагмент|{n} фрагменти|{n} фрагментів +@plural {n} step|{n} steps {n} крок|{n} кроки|{n} кроків +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (і ще {n} попередження щодо наборів пензлів)|{warning} (і ще {n} попередження щодо наборів пензлів)|{warning} (і ще {n} попереджень щодо наборів пензлів) +@plural {what} with {n} warning|{what} with {n} warnings {what}: {n} попередження|{what}: {n} попередження|{what}: {n} попереджень diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index d5ba8f0bc2..11aeb09f2f 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -783,20 +783,6 @@ Statistics… 統計資料… Refine Strokes 調整筆畫 @plural {n} item|{n} items {n} 個項目 -@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} 已將 {n} 個色票匯出至 {file} -@plural Imported {n} brush from {group}|Imported {n} brushes from {group} 已從 {group} 匯入 {n} 個筆刷 -@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} 已從 {file} 匯入 {n} 個色票 -@plural Played {n} step|Played {n} steps 已播放 {n} 個步驟 -@plural Saved for Web: {n} file|Saved for Web: {n} files 儲存為網頁: {n} 個檔案 -@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk 已更新 {n} 個在磁碟上變更的連結智慧型物件 -@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. 此圖層構圖中記錄的 {n} 個圖層已刪除。請更新構圖或清除警告。 -@plural {n} plane|{n} planes {n} 個平面 -@plural {n} preset|{n} presets {n} 個預設集 -@plural {n} sample point removed|{n} sample points removed 已移除 {n} 個取樣點 -@plural {n} slice|{n} slices {n} 個切片 -@plural {n} step|{n} steps {n} 個步驟 -@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (另有 {n} 個筆刷預設集警告) -@plural {what} with {n} warning|{what} with {n} warnings {what},有 {n} 個警告 Auto 自動 (print to the printer) (列印至印表機) + Add variable + 新增變數 @@ -2631,3 +2617,18 @@ curves Smooth 平滑 Apply mask to layer before removing? 移除之前將遮色片套用到圖層嗎? The layer or its mask changed. Drag the mask onto the Trash again. 圖層或其遮色片已變更。請再次將遮色片拖曳到垃圾桶。 Delete the vector mask? 要刪除向量遮色片嗎? +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} 已將 {n} 個色票匯出至 {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} 已從 {group} 匯入 {n} 個筆刷 +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} 已從 {file} 匯入 {n} 個色票 +@plural Played {n} step|Played {n} steps 已播放 {n} 個步驟 +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk 已更新 {n} 個在磁碟上變更的連結智慧型物件 +@plural Saved for Web: {n} file|Saved for Web: {n} files 儲存為網頁用:{n} 個檔案 +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. 此構圖記錄的 {n} 個圖層已刪除。請更新構圖,或清除警告。 +@plural {n} plane|{n} planes {n} 個平面 +@plural {n} preset|{n} presets {n} 個預設集 +@plural {n} sample point removed|{n} sample points removed 已移除 {n} 個取樣點 +@plural {n} slice|{n} slices {n} 個切片 +@plural {n} step|{n} steps {n} 個步驟 +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (另有 {n} 個筆刷預設集警告) +@plural {what} with {n} warning|{what} with {n} warnings {what} ({n} 個警告) From e3d118e0f3ec0a2c796d9174c9f11cf128cadc18 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 05:53:56 +0200 Subject: [PATCH 20/23] Separate print queue status from generic cancellable progress controls --- crates/ui-egui/src/jobs_ui.rs | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/jobs_ui.rs b/crates/ui-egui/src/jobs_ui.rs index f15a464a88..6e03a11ca8 100644 --- a/crates/ui-egui/src/jobs_ui.rs +++ b/crates/ui-egui/src/jobs_ui.rs @@ -568,6 +568,24 @@ pub fn bar(ui: &egui::Ui, rect: Rect, frac: Option, t: &Tokens) { } } +/// A print job has already reached the spool worker; cancellation belongs to the system queue. +fn print_status_progress(app: &PhotocraftApp, ui: &mut egui::Ui, j: &JobInfo) { + let t = Tokens::get(ui.ctx()); + let (bar_w, bar_h) = if t.pro { (120.0, 6.0) } else { (140.0, 6.0) }; + let more = app.session.jobs().len().saturating_sub(1); + let (xr, xresp) = ui.allocate_exact_size(vec2(18.0, 18.0), Sense::hover()); + if xresp.hovered() { + ui.painter().rect_filled(xr, t.radius_sm, t.hover); + } + crate::icons::paint(ui, xr, "x", 11.0, if xresp.hovered() { t.text } else { t.text_dim }); + xresp.on_hover_text(tl!("Manage submitted jobs in the system print queue")); + ui.label(RichText::new(percent(j)).color(t.text_dim).size(11.5).monospace()); + let (br, _) = ui.allocate_exact_size(vec2(bar_w, bar_h), Sense::hover()); + bar(ui, br, shown_fraction(j), &t); + let label = if more > 0 { format!("{} (+{more})", tl!(&j.label)) } else { tl!(&j.label).to_owned() }; + ui.label(RichText::new(label).color(t.text_dim).size(12.0)); +} + /// Progress that has been reported, or `None` (indeterminate) while it's still 0. fn shown_fraction(j: &JobInfo) -> Option { (j.progress > 0.0).then_some(j.progress) @@ -584,14 +602,17 @@ pub fn status_progress(app: &mut PhotocraftApp, ui: &mut egui::Ui) { let t = Tokens::get(ui.ctx()); let (bar_w, bar_h) = if t.pro { (120.0, 6.0) } else { (140.0, 6.0) }; let more = app.session.jobs().len().saturating_sub(1); + if matches!(j.command.as_str(), "file.print" | "file.printOneCopy") { + print_status_progress(app, ui, &j); + return; + } // Right to left: ×, percentage, bar, label. - let print = matches!(j.command.as_str(), "file.print" | "file.printOneCopy"); - let (xr, xresp) = ui.allocate_exact_size(vec2(18.0, 18.0), if print { Sense::hover() } else { Sense::click() }); + let (xr, xresp) = ui.allocate_exact_size(vec2(18.0, 18.0), Sense::click()); if xresp.hovered() { ui.painter().rect_filled(xr, t.radius_sm, t.hover); } crate::icons::paint(ui, xr, "x", 11.0, if xresp.hovered() { t.text } else { t.text_dim }); - let xresp = xresp.on_hover_text(if print { tl!("Manage submitted jobs in the system print queue") } else { tl!("Cancel (Esc)") }); + let xresp = xresp.on_hover_text(tl!("Cancel (Esc)")); ui.label(RichText::new(percent(&j)).color(t.text_dim).size(11.5).monospace()); let (br, _) = ui.allocate_exact_size(vec2(bar_w, bar_h), Sense::hover()); bar(ui, br, shown_fraction(&j), &t); From 27fecdab449fdc8a3336a747a6569860a60eec7e Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 16:22:43 +0200 Subject: [PATCH 21/23] Translate print queue guidance in new Vietnamese catalog --- crates/ui-egui/src/i18n/vi.tsv | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index ca091c14d8..f7cd59aebb 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -1524,6 +1524,7 @@ cameraRaw Shadows Vùng tối Working… Đang xử lý… Reading… Đang đọc… Cancel (Esc) Hủy (Esc) + Manage submitted jobs in the system print queue Quản lý các lệnh in đã gửi trong hàng đợi in của hệ thống Esc to cancel Esc để hủy Cancel opening Hủy mở tệp Cancelled opening {name} Đã hủy mở {name} From 91b08488c85b7cb255df82735725df664d358560 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 12 Oct 2026 20:55:44 +0200 Subject: [PATCH 22/23] Validate paired purge availability in MCP resource tests --- crates/automation/tests/mcp.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/automation/tests/mcp.rs b/crates/automation/tests/mcp.rs index af5459af1f..ca34d9f915 100644 --- a/crates/automation/tests/mcp.rs +++ b/crates/automation/tests/mcp.rs @@ -1236,11 +1236,16 @@ async fn convention_resources_are_live_json() { assert_eq!(read("photocraft://document").await["width"], 8); // Edit › Purge › All is enabled while the process-wide effect, mask and stack caches hold // anything, and the other tests in this binary fill and purge those caches concurrently, so - // its `enabled` flag can flip between the two reads. Every other field must match exactly. + // its `enabled` flag and paired `disabledReason` can flip between the two reads. Validate + // each availability pair; every stable field and every other command must match exactly. let stable = |mut v: Value| { for c in v.as_array_mut().into_iter().flatten() { if c["id"] == "edit.purge.all" { - c.as_object_mut().map(|o| o.remove("enabled")); + let reason = if c["enabled"].as_bool().unwrap() { Value::Null } else { json!("nothing to purge") }; + assert_eq!(c["disabledReason"], reason, "purge availability stays internally consistent"); + let command = c.as_object_mut().unwrap(); + command.remove("enabled"); + command.remove("disabledReason"); } } v From 5dac5c6d61964fd5387eb5fc3462b024d4b3c6f9 Mon Sep 17 00:00:00 2001 From: Valentin Klein Date: Mon, 12 Oct 2026 23:33:30 +0200 Subject: [PATCH 23/23] Tests: allow-list language-invariant bit-depth labels, add missing tr/hu 'Enable animations' (#4359) (#4362) * Tests: language-invariant bit-depth labels are allow-listed; add missing tr/hu 'Enable animations' (#4359) Turkish writes '8 bit'/'16 bit' exactly like the English source, so the translated-differs assertion needs an explicit allow-list (the entry must still exist). hu and tr had no 'Enable animations' preference label. Co-Authored-By: Claude Opus 5.5 * Merge main; drop the Enable animations rows main already has Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: Brandon Thomas --- crates/ui-egui/src/new_doc_ui.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/new_doc_ui.rs b/crates/ui-egui/src/new_doc_ui.rs index e3f00c6c9c..4af4755085 100644 --- a/crates/ui-egui/src/new_doc_ui.rs +++ b/crates/ui-egui/src/new_doc_ui.rs @@ -774,9 +774,16 @@ mod tests { #[test] fn new_document_depth_labels_and_tooltips_are_translated() { + // Bit-depth labels are unit/number strings that some languages legitimately write exactly + // like the English source (Turkish "8 bit"); they only need a catalog entry there. + const SAME_AS_SOURCE: &[(&str, &str)] = &[("tr", "8 bit"), ("tr", "16 bit")]; for lang in crate::i18n::Lang::all().filter(|lang| lang.code() != "en") { for (_, label, tooltip) in DEPTH_OPTIONS { - assert_ne!(crate::i18n::tr(lang, label), *label, "{}: {label}", lang.code()); + if SAME_AS_SOURCE.contains(&(lang.code(), *label)) { + assert!(crate::i18n::has(lang, label), "{}: {label}", lang.code()); + } else { + assert_ne!(crate::i18n::tr(lang, label), *label, "{}: {label}", lang.code()); + } assert_ne!(crate::i18n::tr(lang, tooltip), *tooltip, "{}: {tooltip}", lang.code()); } }