LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #1846: i18n(pl): finish the format messages, counts right for every
francoisgne297b9ab7aa8
diff --cc crates/ui-egui/locales/pl-formats.jsonindex e3ce316a0,4256b63e7..407adc8d8--- a/crates/ui-egui/locales/pl-formats.json+++ b/crates/ui-egui/locales/pl-formats.json@@@ -252,50 -252,42 +252,50 @@@" · kept, not applied: {}": " · zachowane, niezastosowane: {}"," — kept but not applied: {}": " — zachowane, ale niezastosowane: {}","Apply to “{mask}” on Selected Photos": "Zastosuj do „{mask}” na zaznaczonych zdjęciach",- "Delete the effect preset “{name}”?": "Usunąć ustawienie wstępne efektu „{name}”?",- "Delete these {n} effect presets?": "Usunąć te ustawienia wstępne efektów ({n})?",- "Delete {n} effect preset{}? This can't be undone.": "Usunąć ustawienia wstępne efektów ({n})?{:.0} Tej operacji nie można cofnąć.",+ "Delete the effect preset “{name}”?": "Usunąć ustawienie efektu „{name}”?",+ "Delete these {n} effect presets?": "Usunąć zaznaczone ustawienia efektów ({n})?",+ "Delete {n} effect preset{}? This can't be undone.": "Usunąć ustawienia efektów ({n})?{:.0} Tej operacji nie można cofnąć.","Effect: {name}": "Efekt: {name}",- "Exported {} effect preset{}": "Wyeksportowane ustawienia wstępne efektów: {}{:.0}",+ "Exported {} effect preset{}": "Wyeksportowane ustawienia efektów: {}{:.0}","Imported {e} mask effect{} (Masking ▸ Effect)": "Zaimportowane efekty masek: {e}{:.0} (Maskowanie → Efekt)",- "Update “{name}” with Current Settings": "Aktualizuj „{name}” bieżącymi ustawieniami",- "{n} preset{}": "Ustawienia wstępne: {n}{:.0}",+ "Update “{name}” with Current Settings": "Zaktualizuj „{name}” bieżącymi ustawieniami",+ "{n} preset{}": "Ustawienia: {n}{:.0}","{count} more warnings.": "Pozostałe ostrzeżenia: {count}.",+ "{skipped} catalog images were not imported because their records in the catalog are incomplete.": "Nie zaimportowano obrazów z katalogu: {skipped}. Ich rekordy w katalogu są niekompletne.","{photos} catalog records processed; {collections} collections.": "Przetworzone rekordy katalogu: {photos}; kolekcje: {collections}.",- "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "Brakujące oryginały: {missing}. Ich rekordy w katalogu są dostępne; użyj polecenia „Znajdź brakujące zdjęcia”, aby ponownie je połączyć.",- "Applied {name}": "Zastosowano: {name}",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "Brakujące oryginały: {missing}. Ich rekordy w katalogu są dostępne; użyj polecenia Znajdź brakujące zdjęcia, aby je ponownie powiązać.",+ "Applied {name}": "Zastosowano {name}","Delete “{name}”?": "Usunąć „{name}”?",- "Updated {name}": "Zaktualizowano: {name}",+ "Updated {name}": "Zaktualizowano {name}","Exported to {path}": "Wyeksportowano do {path}","Saved template {name}": "Zapisano szablon {name}",- "Imported {name}": "Zaimportowano: {name}",+ "Imported {name}": "Zaimportowano {name}","Skipped {problem}": "Pominięto: {problem}","…and {more} more": "…i jeszcze {more}","Template preview: {name}": "Podgląd szablonu: {name}","{n} photos in view · {slides} slides · {time}": "Zdjęcia w widoku: {n} · slajdy: {slides} · {time}","{n} pages": "Strony: {n}","{n} JPEG files": "Pliki JPEG: {n}",- "{s} s of AV1 video": "{s} s wideo AV1",+ "{s} s of AV1 video": "Wideo AV1: {s} s","Slideshow exported: {what}": "Wyeksportowano pokaz slajdów: {what}"," · {n} skipped (could not be rendered)": " · pominięte (nie udało się wyrenderować): {n}",- "{n} raws can now be developed from their raw data": "Pliki RAW, które można teraz wywołać z danych surowych: {n}",- "The XMP sidecars of {n} photos couldn't be written (is their folder offline?). LightCraft keeps trying.": "Nie udało się zapisać plików pomocniczych XMP zdjęć ({n}). Czy ich folder jest offline? LightCraft ponawia próby.",+ "{n} raws can now be developed from their raw data": "Pliki RAW, które można już wywołać z danych surowych: {n}",+ "The XMP sidecars of {n} photos couldn't be written (is their folder offline?). LightCraft keeps trying.": "Nie udało się zapisać plików XMP dla zdjęć ({n}) — czy ich folder jest niedostępny? LightCraft ponawia próby.","Create the keyword “{name}”": "Utwórz słowo kluczowe „{name}”",- "new, inside {parent}": "nowe, wewnątrz {parent}",+ "new, inside {parent}": "nowe, w {parent}","Keywords of {n} selected photos": "Słowa kluczowe zaznaczonych zdjęć ({n})",- "Removed “{name}” from {n} photos. Edit ▸ Undo puts it back.": "Usunięto „{name}” z {n} zdjęć. Edytuj → Cofnij przywraca je.",+ "Removed “{name}” from {n} photos. Edit ▸ Undo puts it back.": "Usunięto „{name}” ze zdjęć ({n}). Edytuj → Cofnij przywraca.","LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft nieoczekiwanie zakończył działanie: {e}\n\nSzczegóły są w pliku dziennika: {path}","LightCraft stopped unexpectedly: {e}": "LightCraft nieoczekiwanie zakończył działanie: {e}",- "Renames {n} face{} across the library. The files are not changed.": "Zmienia nazwę twarzy w całej bibliotece (liczba twarzy: {n}).{:.0} Pliki nie są zmieniane.",- "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "„{to}” to już istniejąca osoba. Połączenie utworzy jedną osobę; Cofnij ponownie je rozdzieli.",- "{what} merge added at {mp}: its full size, {full}, needs more memory than this computer has": "Dodano połączenie {what} w rozdzielczości {mp}: pełny rozmiar, {full}, wymaga więcej pamięci, niż ma ten komputer",- "{what} merge added at {mp}, the largest a panorama can be (its full size is {full})": "Dodano połączenie {what} w rozdzielczości {mp}, największej możliwej dla panoramy (pełny rozmiar to {full})",+ "Renames {n} face{} across the library. The files are not changed.": "Zmienia nazwę twarzy w całej bibliotece (twarze: {n}).{:.0} Pliki nie są zmieniane.",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "„{to}” to już istniejąca osoba. Połączenie utworzy jedną osobę; Cofnij rozdzieli je z powrotem.",+ "{what} merge added at {mp}: its full size, {full}, needs more memory than this computer has": "Dodano scalenie {what} w rozdzielczości {mp}: pełny rozmiar, {full}, wymaga więcej pamięci, niż ma ten komputer",- "{what} merge added at {mp}, the largest a panorama can be (its full size is {full})": "Dodano scalenie {what} w rozdzielczości {mp}, największej możliwej dla panoramy (pełny rozmiar: {full})"++ "{what} merge added at {mp}, the largest a panorama can be (its full size is {full})": "Dodano scalenie {what} w rozdzielczości {mp}, największej możliwej dla panoramy (pełny rozmiar: {full})",+ "Color space: Rec. 2020 {curve} (HDR AVIF)": "Przestrzeń kolorów: Rec. 2020 {curve} (HDR AVIF)",+ "{n} selected photos · {pages} pages": "Zaznaczone zdjęcia: {n} · strony: {pages}",+ "Already in “{}”": "Już w „{}”",+ "Move {n} photo{} to “{}”": "Przenieś do „{1}” — zdjęcia: {n}{0:.0}",+ "Move {n} photo{} to “{}”?": "Przenieść do „{1}” — zdjęcia: {n}{0:.0}?",+ "Listing folders — folders: {folders}, files: {files}": "Przeglądanie folderów — foldery: {folders}, pliki: {files}",+ "Moved {n} photo{} to “{}”. Edit → Undo moves them back.": "Przeniesiono do „{1}” — zdjęcia: {n}{0:.0}. Edytuj → Cofnij przywróci je."}diff --cc crates/ui-egui/src/i18n.rsindex 158a00664,d266193b3..b17ab4ce6--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@@ -593,94 -516,62 +593,150 @@@ mod testsset_language(Locale::En);}+ /// Polish: the menu and control channel select it, dates read day.month.year, and every count+ /// reads right for any number. Polish has three plural forms (1 zdjęcie, 2 zdjęcia, 5 zdjęć), so+ /// counts follow their noun ("Zaimportowane zdjęcia: 22") instead of a form that fits only some.+ #[test]+ fn polish_switches_formats_dates_and_reads_every_count() {+ use crate::control::{ControlRequest, Outcome};+ let mut app = crate::LightcraftApp::new(lightcraft_engine::Session::with_demo(), Default::default());+ app.run("app.language.polish", serde_json::json!({})).unwrap();+ assert_eq!(app.ui.language, Locale::Pl);+ assert_eq!(Locale::Pl.name(), "Polski");+ assert_eq!(crate::menubar::checked(&app, "app.language.polish"), Some(true));+ assert_eq!(tr("File"), "Plik");+ assert_eq!(tr("Exposure"), "Ekspozycja");+ assert_eq!(date_group_label("2026-09-20", false), "Niedziela, 20.09.2026");+ assert_eq!(date_group_label("2026-09-20", true), "Niedziela, 20");+ assert_eq!(date_group_label("2026-09", false), "09.2026");+ assert_eq!(date_group_label("2026", false), "2026");+ assert_eq!(display_time("2026-09-20T16:04:05"), "Niedziela, 20.09.2026 16:04:05");+ for n in [0, 1, 2, 3, 4, 5, 12, 21, 22, 25, 111] {+ let s = if n == 1 { "" } else { "s" };+ assert_eq!(tr_format!("Imported {} photo{}", n, s), format!("Zaimportowane zdjęcia: {n}"));+ for (one, many, noun) in [+ ("photo waiting", "photos waiting", "Oczekujące zdjęcia"),+ ("cached picture", "cached pictures", "Obrazy w pamięci podręcznej"),+ ("photo has its denoised picture.", "photos have their denoised picture.", "Zdjęcia z odszumioną wersją"),+ ] {+ assert_eq!(tr_format!("{n} {noun}", n = n, noun = tr(if n == 1 { one } else { many })), format!("{noun}: {n}"));+ }+ assert_eq!(tr_format!("Delete {n} Photos", n = n), format!("Usuń zdjęcia ({n})"));+ assert_eq!(tr_format!("{n} preset{}", s, n = n), format!("Ustawienia: {n}"));+ }+ let name = String::from("Color 1234.56 {title} 日本語");+ assert_eq!(tr_format!("Added {n} photo{} to “{}”", "s", name, n = 22), format!("Dodano do „{name}”: 22"));+ let saved = serde_json::to_string(&app.ui).unwrap();+ assert_eq!(serde_json::from_str::<crate::state::UiState>(&saved).unwrap().language, Locale::Pl);+ let ctx = egui::Context::default();+ for tag in ["pl", "pl-PL", "pl_PL.UTF-8", "PL-pl"] {+ assert_eq!(Locale::parse_tag(tag), Some(Locale::Pl), "{tag}");+ let (request, _) = ControlRequest::new("ui.set", serde_json::json!({"language": tag}));+ let Outcome::Done(reply) = crate::control::handle(&mut app, &ctx, &request) else { panic!("expected reply") };+ assert_eq!(reply["ok"], true);+ assert_eq!(language(), Locale::Pl);+ }+ let text = painted_text(&ctx, &mut app, Locale::Pl);+ assert!(text.contains("Plik") && text.contains("Ekspozycja"), "{text}");+ ctx.fonts_mut(|fonts| {+ for family in [egui::FontFamily::Proportional, egui::FontFamily::Name(crate::theme::FONT_SEMIBOLD.into())] {+ let font = egui::FontId::new(13.0, family);+ for ch in "ąćęłńóśźżĄĆĘŁŃÓŚŹŻ„”".chars() {+ assert!(fonts.has_glyph(&font, ch), "missing Polish glyph {ch}");+ }+ }+ });+ set_language(Locale::En);+ }++ #[test]+ fn indonesian_switches_persists_formats_dates_and_preserves_values() {+ use crate::control::{ControlRequest, Outcome};+ let mut app = crate::LightcraftApp::new(lightcraft_engine::Session::with_demo(), Default::default());+ app.run("app.language.indonesian", serde_json::json!({})).unwrap();+ assert_eq!(app.ui.language, Locale::Id);+ assert_eq!(Locale::Id.name(), "Bahasa Indonesia");+ assert_eq!(Locale::Id.script(), "Latn");+ assert_eq!(crate::menubar::checked(&app, "app.language.indonesian"), Some(true));+ assert_eq!(tr("Exposure"), "Eksposur");+ assert_eq!(tr("My Photos"), "Foto saya");+ assert_eq!(date_group_label("2026-09-20", false), "Minggu, 20/09/2026");+ assert_eq!(date_group_label("2026-09-20", true), "Minggu, 20");+ assert_eq!(date_group_label("2026-09", false), "09/2026");+ assert_eq!(date_group_label("2026", false), "2026");+ assert_eq!(display_time("2026-09-20T16:04:05"), "Minggu, 20/09/2026 16:04:05");+ // Indonesian keeps a noun unchanged after a count ("1 foto", "22 foto"), so the English+ // plural suffix is consumed and never shows.+ for n in [0, 1, 2, 5, 11, 22] {+ assert_eq!(tr_format!("Imported {} photo{}", n, if n == 1 { "" } else { "s" }), format!("{n} foto diimpor"));+ }+ let name = String::from("Color 1234.56 {title} 日本語");+ assert_eq!(tr_format!("Added {n} photo{} to “{}”", "s", name, n = 22), format!("22 foto ditambahkan ke “{name}”"));+ assert_eq!(builtin_label("Warm Glow", false), "Warm Glow");+ assert_eq!(tr("photo-{title}.jpg"), "photo-{title}.jpg");+ let saved = serde_json::to_string(&app.ui).unwrap();+ assert!(saved.contains(r#""language":"id""#));+ assert_eq!(serde_json::from_str::<crate::state::UiState>(&saved).unwrap().language, Locale::Id);+ let ctx = egui::Context::default();+ for tag in ["id", "id-ID", "id_ID.UTF-8", "id-Latn-ID"] {+ assert_eq!(Locale::parse_tag(tag), Some(Locale::Id));+ let (request, _) = ControlRequest::new("ui.set", serde_json::json!({"language": tag}));+ let Outcome::Done(reply) = crate::control::handle(&mut app, &ctx, &request) else { panic!("expected reply") };+ assert_eq!(reply["ok"], true);+ assert_eq!(language(), Locale::Id);+ }+ set_language(Locale::En);+ }++ #[test]+ fn sentence_case_keeps_georgian_lowercase() {+ assert_eq!(upper_first("its input is not an image"), "Its input is not an image");+ assert_eq!(upper_first("ფაილი ვერ იკითხება"), "ფაილი ვერ იკითხება");+ assert_eq!(upper_first("ᲥᲐᲠᲗᲣᲚᲘ"), "ᲥᲐᲠᲗᲣᲚᲘ");+ assert_eq!(upper_first(""), "");+ assert!(capitalizes('a') && capitalizes('ж') && !capitalizes('ქ') && !capitalizes('Ⴀ') && !capitalizes('ⴀ'));+ }++ #[test]+ fn swedish_switches_persists_and_formats_without_changing_user_values() {+ use crate::control::{ControlRequest, Outcome};+ let mut app = crate::LightcraftApp::new(lightcraft_engine::Session::with_demo(), Default::default());+ app.run("app.language.swedish", serde_json::json!({})).unwrap();+ assert_eq!(app.ui.language, Locale::Sv);+ assert_eq!(Locale::Sv.name(), "Svenska");+ assert_eq!(Locale::Sv.script(), "Latn");+ assert_eq!(crate::menubar::checked(&app, "app.language.swedish"), Some(true));+ assert_eq!(tr("File"), "Fil");+ assert_eq!(tr("Develop"), "Framkalla");+ assert_eq!(tr("Exposure"), "Exponering");+ assert_eq!(date_group_label("2026", false), "2026");+ assert!(date_group_label("2026-09-20", false).starts_with("Söndag 20 "), "{}", date_group_label("2026-09-20", false));+ assert_eq!(builtin_label("Warm Glow", false), "Warm Glow");+ assert_eq!(tr("photo-{title}.jpg"), "photo-{title}.jpg");+ let saved = serde_json::to_string(&app.ui).unwrap();+ assert!(saved.contains("\"sv\""), "{saved}");+ assert_eq!(serde_json::from_str::<crate::state::UiState>(&saved).unwrap().language, Locale::Sv);+ let ctx = egui::Context::default();+ for tag in ["sv", "sv-SE", "sv_SE.UTF-8", "sv-FI"] {+ assert_eq!(Locale::parse_tag(tag), Some(Locale::Sv), "{tag}");+ let (request, _) = ControlRequest::new("ui.set", serde_json::json!({"language": tag}));+ let Outcome::Done(reply) = crate::control::handle(&mut app, &ctx, &request) else { panic!("expected reply") };+ assert_eq!(reply["ok"], true);+ assert_eq!(language(), Locale::Sv);+ }+ let text = painted_text(&ctx, &mut app, Locale::Sv);+ assert!(text.contains("Fil") && text.contains("Exponering"), "{text}");+ ctx.fonts_mut(|fonts| {+ for family in [egui::FontFamily::Proportional, egui::FontFamily::Name(crate::theme::FONT_SEMIBOLD.into())] {+ let font = egui::FontId::new(13.0, family);+ for ch in "åäöÅÄÖé”’".chars() {+ assert!(fonts.has_glyph(&font, ch), "missing Swedish glyph {ch}");+ }+ }+ });+ set_language(Locale::En);+ }+#[test]fn every_language_has_a_catalog_covering_the_source() {assert!(crate::i18n::Locale::En.catalog().is_empty(), "the source language needs no catalog");diff --cc docs/localization-parity.mdindex 41669e4b7,6e454adc6..8a7ea2007--- a/docs/localization-parity.md+++ b/docs/localization-parity.md@@@ -6,7 -6,7 +6,7 @@@ How far each interface language is fro[localization.md](localization.md); per-language notes are in `localization-<code>.md`([zh-hans](localization-zh-hans.md), [zh-hant](localization-zh-hant.md), [ja](localization-ja.md),[pt-br](localization-pt-br.md), [es](localization-es.md), [de](localization-de.md),- [ru](localization-ru.md), [fi](localization-fi.md), [ka](localization-ka.md), [id](localization-id.md), [vi](localization-vi.md)).-[ru](localization-ru.md), [pl](localization-pl.md)).++[ru](localization-ru.md), [fi](localization-fi.md), [ka](localization-ka.md), [id](localization-id.md), [vi](localization-vi.md), [pl](localization-pl.md)).## The target@@@ -69,11 -65,9 +69,12 @@@ string follows that| Traditional Chinese (Taiwan) | `zh-hant` | 1,993 / 2,304 (87%) | Hant; uses the Simplified Chinese face until craft-fonts has a TC face | no (community edits) | partial | 8–14 h (incl. the font) || Russian | `ru` | 1,704 / 2,304 (74%) | Cyrillic (Inter) | no (community edits) | partial | 8–12 h || Ukrainian | `uk` | 2,383 / 2,398 (99%; 2026-10-12) | Cyrillic (Inter) | no (community edits) | partial (lower-layer errors English) | 2–4 h |+| Italian | `it` | 2,628 / 3,278 (80%, measured 2026-10-15; every interface string is translated, the other 650 are What's New lines, left in English) | Latin (Inter) | partly (written with an agent; corrections and the 2026-10-15 additions by a native speaker) | partial (lower-layer errors English) | 3–5 h |+| Georgian | `ka` | 2,398 / 2,398 (100%: every plain and formats message any catalog has on 2026-10-12, plus the 27 display labels and 397 What's New lines no other catalog translates) | Geor: no craft-fonts face yet (boxes until one is available) | yes (native speaker) | partial (lower-layer errors English) | 2–4 h (+ a Georgian face) |+| Finnish | `fi` | 2,610 / 3,308 (79%, measured 2026-10-17: 2,313 plain + 297 formats; the rest is What's New) | Latin (Inter) | yes (written with an agent; native-speaker review by @roopeg) | partial (lower-layer errors English) | 3–5 h |+ | Polish | `pl` | 2,159 messages + 291 formats; every format message translated (2026-10-15) | Latin (Inter) | no (AI-drafted; follow-up by a native speaker) | partial (lower-layer errors English) | 2–4 h (full native review) |- Target languages LightCraft lacks: Korean, Dutch, Polish, Swedish, Norwegian Bokmål, Thai-Target languages LightCraft lacks: Italian, Korean, Dutch, Swedish, Norwegian Bokmål, Thai++Target languages LightCraft lacks: Korean, Dutch, Swedish, Norwegian Bokmål, Thai(Thai needs shaping and line breaking without spaces). Each Latin-script one is ~10–16 h; Thai~20–35 h on top of the shaping work.@@@ -98,14 -92,7 +99,15 @@@| Date | Change | Summary ||---|---|---|+| 2026-10-19 | minor | Indonesian interface catalog (`id`): every plain and formats message any catalog has, plus 69 command labels; What's New left in English |+| 2026-10-17 | minor | Finnish interface catalog (`fi`): 2,610 of 3,308 messages (2,313 plain + 297 formats), What's New left in English |+| 2026-10-15 | trivial | Italian (`it`): 339 interface messages and 60 format strings that were missing or still in English translated (2,628 of 3,278; only What's New left in English); native-speaker corrections: Exposure → *Esposizione*, Sharpening → *Nitidezza*, Preset → *Preset*, blurry → *sfocate* |+| 2026-10-13 | minor | Remeasured denominator (2,222 plain + 249 formats = 2,471); Vietnamese catalog complete at 2,471/2,471 (status partial: lower-layer errors still English) |+| 2026-10-12 | minor | Italian interface catalog (`it`): 2,201 of 2,398 messages, What's New left in English |+ | 2026-10-15 | minor | Polish row added: the format messages still in English translated, counts made right for every number, dates day.month.year ([localization-pl.md](localization-pl.md)) || 2026-10-11 | minor | Shared work: the interface decides on error kinds, not English error text (#1046) |+| 2026-10-12 | minor | Georgian (`ka`) row: every catalog message || 2026-10-10 | major | Created: per-language counts measured from the catalogs, the twelve key languages, script support, estimates || 2026-10-12 | minor | de, es, fr, ja and uk catalogs filled to every message another catalog knows (agent translations, native review welcome); those rows re-measured against the current 2,398 messages. Other rows keep their 2026-10-10 counts (open PRs for pt-BR, ru, zh) |+| 2026-10-16 | minor | German (`de`): 217 interface strings and 862 What's New lines added (agent translations, native review welcome); re-measured 2,572 → 3,644 of 3,754 messages (80% → 97%). The denominator grew because German now translates What's New lines no other catalog has; other rows keep their earlier counts |+| 2026-10-20 | minor | German (`de`) speaks to the user with *du*; the 11 messages that used *Sie* changed, no count changes |diff --cc docs/localization.mdindex 94abfe236,d12d858ac..f0edb2230--- a/docs/localization.md+++ b/docs/localization.md@@@ -2,11 -2,11 +2,11 @@@The interface ships in the language it is written in (English) plus every language in the table in`crates/ui-egui/src/i18n.rs`. Today that is English, Simplified Chinese (`zh-hans`), Traditional- Chinese (`zh-hant`, Taiwan), Japanese (`ja`), Brazilian Portuguese (`pt-br`), Spanish (`es`), German (`de`), Russian (`ru`), French (`fr`), Ukrainian (`uk`), Czech (`cs`), Georgian (`ka`), Swedish (`sv`), Finnish (`fi`), Indonesian (`id`) and Vietnamese (`vi`). This file is the reference for **adding or maintaining a language**; the per-language notes-Chinese (`zh-hant`, Taiwan), Japanese (`ja`), Brazilian Portuguese (`pt-br`), Spanish (`es`), German (`de`), Russian (`ru`), French (`fr`), Ukrainian (`uk`), Czech (`cs`) and Polish (`pl`). This file is the reference for **adding or maintaining a language**; the per-language notes++Chinese (`zh-hant`, Taiwan), Japanese (`ja`), Brazilian Portuguese (`pt-br`), Spanish (`es`), German (`de`), Russian (`ru`), French (`fr`), Ukrainian (`uk`), Czech (`cs`), Georgian (`ka`), Swedish (`sv`), Finnish (`fi`), Indonesian (`id`), Vietnamese (`vi`) and Polish (`pl`). This file is the reference for **adding or maintaining a language**; the per-language notesare in [`localization-zh-hans.md`](localization-zh-hans.md), [`localization-zh-hant.md`](localization-zh-hant.md),[`localization-ja.md`](localization-ja.md), [`localization-pt-br.md`](localization-pt-br.md), [`localization-es.md`](localization-es.md),[`localization-de.md`](localization-de.md), [`localization-ru.md`](localization-ru.md),- [`localization-cs.md`](localization-cs.md), [`localization-fi.md`](localization-fi.md), [`localization-ka.md`](localization-ka.md), [`localization-id.md`](localization-id.md) and [`localization-vi.md`](localization-vi.md).-[`localization-cs.md`](localization-cs.md) and [`localization-pl.md`](localization-pl.md).++[`localization-cs.md`](localization-cs.md), [`localization-fi.md`](localization-fi.md), [`localization-ka.md`](localization-ka.md), [`localization-id.md`](localization-id.md), [`localization-vi.md`](localization-vi.md) and [`localization-pl.md`](localization-pl.md).## Adding a languagediff --cc docs/parity-checklist.mdindex 41faea38d,9befc9ff5..b02c8cc26--- a/docs/parity-checklist.md+++ b/docs/parity-checklist.md@@@ -485,8 -479,8 +485,10 @@@ differences and missing bindings are i| LR-BEHAV-TEXTFIELD | Text fields behave alike | P1 | 🟡 | `crates/ui-egui/src/text_field.rs`, `crates/ui-egui/src/panels/topbar.rs`, `crates/ui-egui/src/widgets.rs`, `crates/ui-egui/src/panels/right.rs` (`meta_field`), `crates/ui-egui/src/panels/dialogs.rs`, `crates/ui-egui/src/panels/unnamed.rs` | one shared field: right-click Cut / Copy / Paste / Select All (no Paste in the browser), Esc gives back the text from before the edit, Return / leaving / Esc reported to the caller, optional select-on-focus; agents use `ui.clipboard` (MCP `clipboard`) and `ui.inspect` → `copied`. Used by Search Photos, slider values, the Info panel's metadata fields (multi-line captions), the one-field dialogs (New / Rename Album, New Smart Album, Rename / Merge Keywords, text prompts) and the unnamed faces' name field so far; the other text fields (most dialogs, import, settings, masking, keywords …) still use egui's own and have no menu || LR-BEHAV-HEADLESS | Headless UI snapshots | P2 | ✅ | `apps/lightcraft-cli/src/main.rs`, `crates/ui-egui/src/headless.rs`, `docs/control-protocol.md` | `snapshot` rasterizes the UI and defaults photo development to the CPU before the first frame, without adapter discovery; scaled dimensions are validated before allocation, and UI zoom preserves the requested physical viewport; JSON-lines control scripts are supported || LR-BEHAV-ACCESS | Accessibility | P2 | 🟡 | `crates/ui-egui/src/widgets.rs`, `crates/ui-egui/src/text_field.rs`, `crates/ui-egui/src/panels/grid.rs`, `crates/ui-egui/tests/accessibility.rs` | AccessKit (VoiceOver / Narrator / AT-SPI): sliders announce control, value, range and step and take Increment / Decrement, buttons / icon buttons / dropdowns / section headers / sources their labels and state, text fields their caption, grid thumbnails file name, rating, flag and label. `tests/accessibility.rs` fails on an unnamed control, a slider without range or an untitled dialog in every view, Develop tool and 13 dialogs, and checks that Crop and Remove sliders are reached with Tab and that Tab walks the right panels top to bottom. Canvas tools by keyboard (`crates/ui-egui/src/canvas_keys.rs`, `crates/ui-egui/src/tests_canvas_keys.rs`): crop corners, edges and box, spot targets and sources, a New spot point (Return adds), radial / linear gradient handles and mask pins take the focus, are announced with their position and move with the arrows (Shift: further). Brush strokes and red-eye ellipses are pointer-only; not tried with a real screen reader ([audit](ui-parity.md#accessibility-audit)) |+| LR-BEHAV-LOCALE | Language options | P2 | ✅ | `cmd:app.language.english`, `cmd:app.language.simplifiedChinese`, `cmd:app.language.traditionalChinese`, `cmd:app.language.japanese`, `cmd:app.language.portuguese`, `cmd:app.language.french`, `cmd:app.language.spanish`, `cmd:app.language.german`, `cmd:app.language.russian`, `cmd:app.language.ukrainian`, `cmd:app.language.georgian` | Edit > Language lists every language in the table and the active one is checked; shared with Settings > General (docs/localization.md) |+| LR-BEHAV-LOCALIZE | Localisation | P2 | 🟡 | `crates/ui-egui/src/i18n.rs`, `crates/ui-egui/locales/`, `docs/localization.md`, `docs/localization-zh-hans.md`, `docs/localization-zh-hant.md`, `docs/localization-ja.md`, `docs/localization-pt-br.md`, `docs/localization-es.md`, `docs/localization-de.md`, `docs/localization-ru.md`, `docs/localization-ka.md` | One table entry per language (code, endonym, ISO 15924 script, catalog): English, Simplified Chinese, Traditional Chinese (Taiwan), Japanese, Brazilian Portuguese, Spanish, German, Russian, Ukrainian and Georgian UI with a persisted language preference and craft-fonts regular/bold faces per script (a variable face, as for Arabic, is drawn heavier for bold from its one file); menus, edit, crop/masks, settings, import/export and primary progress messages. Adding a language registers the locale and its language command, plus two catalogs. Stock presets/profiles, history steps, library headings, date headings and capture times are localised (user-named items stay verbatim); the Ukrainian catalog covers every existing catalog key, command/control label and rule-editor label; the German catalog reports newly added gaps; the other catalogs fall back to English for messages they lack. Technical errors remain English; release notes are translated in German and Ukrainian; craft-fonts faces for other scripts (Thai, Arabic, …) are UI fallbacks in every language, for file, folder and album names (#736); Traditional Chinese borrows the Simplified Chinese face (no TC face in craft-fonts yet), and the web build embeds the Japanese, Thai and Georgian faces in WASM while loading the Simplified Chinese face from a separate font file. |+ | LR-BEHAV-LOCALE | Language options | P2 | ✅ | `cmd:app.language.english`, `cmd:app.language.simplifiedChinese`, `cmd:app.language.traditionalChinese`, `cmd:app.language.japanese`, `cmd:app.language.portuguese`, `cmd:app.language.french`, `cmd:app.language.spanish`, `cmd:app.language.german`, `cmd:app.language.russian`, `cmd:app.language.ukrainian`, `cmd:app.language.polish` | Edit > Language lists every language in the table and the active one is checked; shared with Settings > General (docs/localization.md) |+ | LR-BEHAV-LOCALIZE | Localisation | P2 | 🟡 | `crates/ui-egui/src/i18n.rs`, `crates/ui-egui/locales/`, `docs/localization.md`, `docs/localization-zh-hans.md`, `docs/localization-zh-hant.md`, `docs/localization-ja.md`, `docs/localization-pt-br.md`, `docs/localization-es.md`, `docs/localization-de.md`, `docs/localization-ru.md`, `docs/localization-pl.md` | One table entry per language (code, endonym, ISO 15924 script, catalog): English, Simplified Chinese, Traditional Chinese (Taiwan), Japanese, Brazilian Portuguese, Spanish, German, Russian and Ukrainian UI with a persisted language preference and craft-fonts regular/bold faces per script (a variable face, as for Arabic, is drawn heavier for bold from its one file); menus, edit, crop/masks, settings, import/export and primary progress messages. Adding a language registers the locale and its language command, plus two catalogs. Stock presets/profiles, history steps, library headings, date headings and capture times are localised (user-named items stay verbatim); the Ukrainian catalog covers every existing catalog key, command/control label and rule-editor label; the German catalog reports newly added gaps; the other catalogs fall back to English for messages they lack. Technical errors remain English; release notes are translated in German and Ukrainian; craft-fonts faces for other scripts (Thai, Arabic, …) are UI fallbacks in every language, for file, folder and album names (#736); Traditional Chinese borrows the Simplified Chinese face (no TC face in craft-fonts yet), and the web build embeds the Japanese face in WASM while loading the Simplified Chinese face from a separate font file. || LR-BEHAV-LEARN | Tutorials | OOS | 🚫 | | || LR-BEHAV-WHATSNEW | What's new | P2 | ✅ | `cmd:app.whatsNew`, `docs/whats-new.md` | Help ▸ What's New: release highlights || LR-BEHAV-AI-EA | Early-access badges | P2 | ⬜ | | |@@@ -926,19 -864,4 +928,20 @@@ Latin stays upright. Advanced Japanese| 2026-10-13 | minor | LRC-LIB-CATALOG-IMPORT review: offline Local promotion and result dismissal across library switches covered; redundant operation/settings copies removed. Status and summary counts unchanged. || 2026-10-14 | patch | LRC-LIB-CATALOG-IMPORT: reconciled with upstream phased progress, cancellation kinds, WAL-only import, translations and current progress tracking. Status and summary counts unchanged. || 2026-10-13 | minor | KEYC-COMPARE: `=` / `-` (also `+`) increase / decrease the grid thumbnail size (`view.thumbSizeUp` / `view.thumbSizeDown`, View menu), grids only; status unchanged (🟡) |+| 2026-10-16 | patch | LR-META-XMP: a TIFF or JPEG imported beside a raw of its stem reads its own `<file>.xmp` and takes nothing from the raw's `IMG_0001.xmp`, whether it arrives with the raw or after it (a stem sidecar belongs to one file: a raw first, then the first by name); status unchanged (✅) |+| 2026-10-21 | minor | LR-MERGE-HDR / LR-MERGE-PANO: HDR alignment warps, panorama projection and Boundary Warp sample Lanczos-3 instead of bilinear (`lightcraft_raster::sample`); status unchanged |+| 2026-10-18 | minor | LR-EDIT-OPTICS-PROFILE: raws that name no lens model (Nikon DSLRs record only the lens specification in their maker note) look up the lens database by a name built from it (`24-70mm f/2.8`) and use only a profile named exactly that; status unchanged (🟡) |+| 2026-10-19 | minor | LR-GUIDED-SELECT and LR-GUIDED-DELETE: Guided Upright guides select on the press near their line (another press deselects), start a new guide where the press lands (not where egui's drag threshold was crossed), and an endpoint drags to reshape the guide (`Gesture::GuideEndpoint`, one undo step); Delete / Backspace with the tool open removes only the selected guide; new rows land as ✅ (`tests_guided_guides` 8/8) |+| 2026-10-21 | patch | LR-VIEW-ZOOM: a pinch also holds the size the loupe's fit view is shrunk to, so it no longer renders the whole frame at every zoom step; status unchanged (✅) |+| 2026-10-21 | patch | LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables (X-T4 and other newer bodies) read at the plain radius, the corner at the eighth knot; X-T4 zoom raws now get their distortion correction (253 of 425 checked had none) and corners no longer brighten up to 6.5 % more than the camera's; status unchanged (🟡) |+| 2026-10-12 | minor | LR-IMP-FORMATS: Mamiya MEF decodes from sensor data and is imported (`vendor/mef.rs`) |+| 2026-10-18 | minor | LR-IMP-FORMATS: Minolta / Konica Minolta MRW decodes from sensor data (DiMAGE 7, 7Hi, A1, A2, A200, Dynax / Maxxum 7D verified on CC0 files); status unchanged (🟡) |+| 2026-10-12 | minor | LR-IMP-FORMATS: Epson ERF decodes from sensor data (`vendor/erf.rs`), no longer preview-only |+| 2026-10-16 | minor | LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan row says how many folders and files it has listed while it lists the folder (an indeterminate bar, not "0 of N"), and ✕ stops the listing; statuses unchanged |+| 2026-10-19 | patch | LRC-LIB-LIBFOLDERS: Synchronize Folder on a folder that is up to date says so with one Close instead of four empty choices and a Synchronize that started an empty job; status unchanged (✅) |+| 2026-10-16 | minor | LR-VIEW-PHOTOGRID: when the photos shown change by those an edit touched (an import's batch, a capture time, a crop), the grid reads only those photos' dates and shapes again instead of every photo of the list (a 16-photo batch at 181,749 photos: grid frame 101 ms → 7 ms); status unchanged |+| 2026-10-19 | minor | LRC-LIB-LIBFOLDERS: the sidebar trees indent by a narrower step (14 / 12 / 10 / 8 pt) when the deepest open row would not fit the panel, instead of cutting its name or scrolling sideways at once (issue #2298); status unchanged (✅) |+| 2026-10-15 | patch | LR-EXP-DIM: Width & Height (`fit: widthHeight`) limits the width and the height as the photo stands, beside Dimensions (W × H, either orientation), as in Lightroom (#1620); status unchanged (✅) |+| 2026-10-16 | patch | LR-BEHAV-BG-TASKS: progress bars and spinners come from one component (`progress.rs`): the activity stack, model downloads, denoise and the face scan share it; busy buttons and a themed thumbnail placeholder added; status unchanged |+| 2026-10-17 | minor | MENU-VIEW-DETAIL, MENU-VIEW-EDIT, MENU-VIEW-CLIPPING, MENU-VIEW-MASKOVERLAY, MENU-VIEW-PHOTOCOUNT, MENU-VIEW-BEFOREAFTER, LR-VIEW-FOCUSPOINT: menu labels renamed: switches are named for what they show (Photo Counts, Focus Point, Clipping, Mask Overlay, All Mask Overlays, Mask Pins, Layout Image), View ▸ Detail is Detail View, Window ▸ Edit is Edit Panel, Compare Before and After is Before/After Side by Side, Clear Preview Cache is Discard Preview Cache; shortcuts and commands unchanged; statuses unchanged |+ | 2026-10-15 | patch | LR-BEHAV-LOCALIZE: cites `docs/localization-pl.md` (Polish format messages finished, counts right for every number); status unchanged (🟡) |