Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

XMP.434: reconcile current main & complete warning locales

Adrian D'souza5855ab80a67e
diff --cc crates/engine/src/import.rs
index 650ebbda3,29ea013e3..8eb1ba23d
--- a/crates/engine/src/import.rs
+++ b/crates/engine/src/import.rs
@@@ -198,48 -201,6 +201,48 @@@ pub struct ImportReport
pub scanned: usize,
/// Photos whose metadata/develop settings were read from an XMP sidecar (or embedded XMP).
pub sidecars: usize,
+ /// Per-photo diagnostics from foreign XMP develop settings that could not be fully carried over.
+ #[serde(skip_serializing_if = "Vec::is_empty")]
+ pub warnings: Vec<ImportWarning>,
+}
+
+/// A structured diagnostic from foreign XMP develop settings.
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub enum ImportWarningCode {
+ /// A named camera profile was found but cannot be applied as Lightroom does.
+ CameraProfile,
+ /// Lightroom geometry data was found but its saved transform is not retained.
+ UprightGeometry,
+ /// One or more other XMP develop fields have no LightCraft mapping.
+ UnmappedXmp,
+}
+
+/// The saved Lightroom Upright mode associated with a foreign geometry transform.
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub enum ImportUprightMode {
+ Off,
+ Auto,
+ Level,
+ Vertical,
+ Full,
+ Guided,
+ Unknown,
+}
+
+/// One actionable XMP import diagnostic. `path` is filled when its photo is committed.
+#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct ImportWarning {
+ pub path: String,
+ pub code: ImportWarningCode,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub profile: Option<String>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub mode: Option<ImportUprightMode>,
- #[serde(skip_serializing_if = "Vec::is_empty")]
++ #[serde(default, skip_serializing_if = "Vec::is_empty")]
+ pub fields: Vec<String>,
}
/// A file moved by an import.
diff --cc crates/engine/src/sidecar.rs
index b2c531488,e92d193a7..ed5a9bb73
--- a/crates/engine/src/sidecar.rs
+++ b/crates/engine/src/sidecar.rs
@@@ -165,61 -165,7 +168,61 @@@ pub fn parse_sidecar(xmp: &str, target
out.develop = match full {
Some(s) => Some(DevelopPatch::Full(Box::new(s))),
None if crate::crs::has_adjustments(&d.properties) => {
- let (partial, unmapped) = crate::crs::to_partial_report(&d.properties, Some(&d.values), Some(raw), crate::crs_masks::DEFAULT_ASPECT);
- Some(DevelopPatch::Partial(crate::crs::to_partial_report(&d.properties, Some(&d.values), target, crate::crs_masks::DEFAULT_ASPECT).0))
++ let (partial, unmapped) = crate::crs::to_partial_report(&d.properties, Some(&d.values), target, crate::crs_masks::DEFAULT_ASPECT);
+ let profile = crate::crs::camera_profile_name(&d.properties).map(str::to_string);
+ if let Some(name) = profile {
+ out.warnings.push(crate::import::ImportWarning {
+ path: String::new(),
+ code: crate::import::ImportWarningCode::CameraProfile,
+ profile: Some(name),
+ mode: None,
+ fields: Vec::new(),
+ });
+ }
+ let upright = crate::crs::has_saved_upright_transform(&d.properties);
+ if upright {
+ let mode = d
+ .properties
+ .get("crs:PerspectiveUpright")
+ .and_then(|values| values.first())
+ .map(String::as_str)
+ .map(|mode| match mode {
+ "0" => crate::import::ImportUprightMode::Off,
+ "1" => crate::import::ImportUprightMode::Auto,
+ "2" => crate::import::ImportUprightMode::Level,
+ "3" => crate::import::ImportUprightMode::Vertical,
+ "4" => crate::import::ImportUprightMode::Full,
+ "5" => crate::import::ImportUprightMode::Guided,
+ _ => crate::import::ImportUprightMode::Unknown,
+ })
+ .unwrap_or(crate::import::ImportUprightMode::Unknown);
+ out.warnings.push(crate::import::ImportWarning {
+ path: String::new(),
+ code: crate::import::ImportWarningCode::UprightGeometry,
+ profile: None,
+ mode: Some(mode),
+ fields: Vec::new(),
+ });
+ }
+ let other: Vec<&str> = unmapped
+ .iter()
+ .map(String::as_str)
+ .filter(|name| {
+ *name != "CameraProfile"
+ && !name.starts_with("UprightTransform_")
+ && !matches!(*name, "UprightTransformCount" | "UprightCenterNormX" | "UprightCenterNormY" | "UprightVersion")
+ })
+ .collect();
+ if !other.is_empty() {
+ out.warnings.push(crate::import::ImportWarning {
+ path: String::new(),
+ code: crate::import::ImportWarningCode::UnmappedXmp,
+ profile: None,
+ mode: None,
+ fields: other.into_iter().map(str::to_string).collect(),
+ });
+ }
+ Some(DevelopPatch::Partial(partial))
}
None => None,
};
@@@ -537,13 -490,15 +552,20 @@@ impl Session
let p = self.catalog.photo(id).ok_or(lightcraft_catalog::CatalogError::NoPhoto(id))?;
let Some(orig) = file_path(p) else { return Ok(None) };
let Some((packet, from)) = read_packet(orig, p.kind, self.sidecar_naming(id)) else { return Ok(None) };
- let sc = parse_sidecar(&packet, p.kind == MediaKind::Raw)
- .map_err(|e| EngineError::Other(format!("{}: {e}", from.display())))?
- .resolve_label(&self.catalog);
+ let sc = parse_sidecar(&packet, crate::crs::Target::for_photo(p)).map_err(|e| EngineError::Other(format!("{}: {e}", from.display())))?;
- Ok(Some((self.sidecar_op(id, sc)?, from)))
+ let mut warnings = sc.warnings.clone();
+ for warning in &mut warnings {
+ warning.path = orig.to_string();
+ }
++ let op = self.sidecar_op(id, sc)?;
++ Ok(Some((op, from, warnings)))
+ }
+
+ /// The op that applies what a sidecar says (already read and parsed, e.g. on a worker
+ /// thread) to photo `id`: the sidecar wins. No file is read.
+ pub fn sidecar_op(&self, id: PhotoId, sc: SidecarData) -> Result<Op> {
+ let p = self.catalog.photo(id).ok_or(lightcraft_catalog::CatalogError::NoPhoto(id))?;
+ let sc = sc.resolve_label(&self.catalog);
let mut q = (**p).clone();
let develop_changed = merge_into(&mut q, &sc, &(self.clock)());
let mut ops = vec![
diff --cc crates/engine/src/tests_xmp.rs
index d47647cad,e3137da00..9eceb7e9f
--- a/crates/engine/src/tests_xmp.rs
+++ b/crates/engine/src/tests_xmp.rs
@@@ -170,78 -171,6 +171,111 @@@ fn foreign_crs_sidecar_on_import_and_re
std::fs::remove_file(src.join("harbour.xmp")).unwrap();
let r = s.execute("photo.readMetadataFromFile", &json!({})).unwrap();
assert_eq!(r["failed"].as_array().unwrap().len(), 1);
+ assert!(r.get("warnings").is_none(), "{r}");
+ let _ = std::fs::remove_dir_all(&src);
+}
+
+/// Foreign profile names and saved Upright matrices stay visible without pretending their
+/// proprietary colour or coordinate data was imported. Diagnostics are per-photo report data;
+/// importing a file without XMP remains quiet, and the source packet is never rewritten.
+#[test]
+fn foreign_profile_and_upright_import_diagnostics_are_actionable() {
+ let src = temp_dir("xmp-diagnostics");
+ let photo = src.join("faithful.png");
+ write_png(&photo, 6);
+ let xmp = r#"<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
+ crs:CameraProfile="Camera Faithful" crs:Exposure2012="1.68" crs:PerspectiveUpright="1"
+ crs:UprightVersion="151388160" crs:UprightTransformCount="6"
+ crs:UprightCenterNormX="0.554156" crs:UprightCenterNormY="0.529745"
+ crs:UprightTransform_1="0.897233402,-0.013204641,-0.030578613,-0.096087436,0.953621255,0.003270197,-0.157075841,-0.043520282,1.000000000"/>
+ </rdf:RDF></x:xmpmeta>"#;
+ let sidecar = src.join("faithful.xmp");
+ std::fs::write(&sidecar, xmp).unwrap();
+ let before = std::fs::read(&sidecar).unwrap();
++ let photo_path = photo.to_string_lossy().to_string();
+ let mut s = Session::new().with_fs();
+ let r = s.execute("library.import", &json!({"paths": [photo.to_string_lossy()]})).unwrap();
+ let warnings = r["warnings"].as_array().unwrap();
+ assert!(warnings.iter().any(|w| w["code"] == "cameraProfile" && w["profile"] == "Camera Faithful"), "{r}");
+ assert!(warnings.iter().any(|w| w["code"] == "uprightGeometry" && w["mode"] == "auto"), "{r}");
++ assert!(warnings.iter().all(|w| w.get("fields").is_none()), "{r}");
++ let import_warnings: Vec<crate::import::ImportWarning> =
++ warnings.iter().cloned().map(serde_json::from_value).collect::<std::result::Result<_, _>>().unwrap();
++ let import_profile = import_warnings.iter().find(|w| w.code == crate::import::ImportWarningCode::CameraProfile).unwrap();
++ assert_eq!(import_profile.path, photo_path);
++ assert_eq!(import_profile.profile.as_deref(), Some("Camera Faithful"));
++ assert!(import_profile.fields.is_empty());
++ let import_upright = import_warnings.iter().find(|w| w.code == crate::import::ImportWarningCode::UprightGeometry).unwrap();
++ assert_eq!(import_upright.path, photo_path);
++ assert_eq!(import_upright.mode, Some(crate::import::ImportUprightMode::Auto));
++ assert!(import_upright.fields.is_empty());
+ let p = s.catalog.photos().next().unwrap().clone();
+ assert_eq!(p.develop.profile.id, "lc.color");
+ assert_eq!(p.develop.light.exposure, 1.68);
+ assert_eq!(std::fs::read(&sidecar).unwrap(), before, "import never rewrites foreign XMP");
+
+ // Metadata reread carries same structured diagnostics, with each saved Upright mode typed.
- let photo_path = photo.to_string_lossy().to_string();
+ let reread = s.execute("photo.readMetadataFromFile", &json!({"ids": [p.id.0]})).unwrap();
++ let reread_wires = reread["warnings"].as_array().unwrap();
++ assert!(reread_wires.iter().all(|w| w.get("fields").is_none()), "{reread}");
++ let reread_warnings: Vec<crate::import::ImportWarning> =
++ reread_wires.iter().cloned().map(serde_json::from_value).collect::<std::result::Result<_, _>>().unwrap();
++ let reread_profile = reread_warnings.iter().find(|w| w.code == crate::import::ImportWarningCode::CameraProfile).unwrap();
++ assert_eq!(reread_profile.path, photo_path);
++ assert_eq!(reread_profile.profile.as_deref(), Some("Camera Faithful"));
++ assert!(reread_profile.fields.is_empty());
++ let reread_upright = reread_warnings.iter().find(|w| w.code == crate::import::ImportWarningCode::UprightGeometry).unwrap();
++ assert_eq!(reread_upright.path, photo_path);
++ assert_eq!(reread_upright.mode, Some(crate::import::ImportUprightMode::Auto));
++ assert!(reread_upright.fields.is_empty());
+ assert!(
+ reread["warnings"]
+ .as_array()
+ .unwrap()
+ .iter()
+ .any(|w| w["code"] == "cameraProfile" && w["profile"] == "Camera Faithful" && w["path"] == photo_path),
+ "{reread}"
+ );
+ assert!(reread["warnings"].as_array().unwrap().iter().any(|w| w["code"] == "uprightGeometry" && w["mode"] == "auto"), "{reread}");
+ for (source, mode) in [("0", "off"), ("2", "level"), ("3", "vertical"), ("4", "full"), ("5", "guided"), ("9", "unknown")] {
+ let mode_xmp = xmp.replace("crs:PerspectiveUpright=\"1\"", &format!("crs:PerspectiveUpright=\"{source}\""));
+ std::fs::write(&sidecar, mode_xmp).unwrap();
+ let reread = s.execute("photo.readMetadataFromFile", &json!({"ids": [p.id.0]})).unwrap();
+ assert!(reread["warnings"].as_array().unwrap().iter().any(|w| w["code"] == "uprightGeometry" && w["mode"] == mode), "{source}: {reread}");
+ }
+
+ // A foreign name colliding with a built-in profile label remains warning metadata only.
+ let collision = src.join("collision.png");
+ write_png(&collision, 8);
+ std::fs::write(src.join("collision.xmp"), xmp.replace("Camera Faithful", "Color")).unwrap();
+ let collision_report = s.execute("library.import", &json!({"paths": [collision.to_string_lossy()]})).unwrap();
+ assert!(
+ collision_report["warnings"].as_array().unwrap().iter().any(|w| w["code"] == "cameraProfile" && w["profile"] == "Color"),
+ "{collision_report}"
+ );
+ let collision_photo = s.catalog.photos().find(|photo| photo.file_name == "collision.png").unwrap();
+ assert_eq!(collision_photo.develop.profile.id, "lc.color");
+
++ let unmapped = crate::import::ImportWarning {
++ path: photo_path.clone(),
++ code: crate::import::ImportWarningCode::UnmappedXmp,
++ profile: None,
++ mode: None,
++ fields: vec!["Tint".into()],
++ };
++ let unmapped_wire = serde_json::to_value(&unmapped).unwrap();
++ assert_eq!(serde_json::from_value::<crate::import::ImportWarning>(unmapped_wire).unwrap(), unmapped);
++
+ // A second import still diagnoses the untouched foreign packet, while an XMP-free photo does not.
+ drop(s);
+ let clean = src.join("clean.png");
+ write_png(&clean, 7);
+ let mut s = Session::new().with_fs();
+ let clean_report = s.execute("library.import", &json!({"paths": [clean.to_string_lossy()]})).unwrap();
+ assert!(clean_report.get("warnings").is_none(), "{clean_report}");
+ let repeat = s.execute("library.import", &json!({"paths": [photo.to_string_lossy()]})).unwrap();
+ assert_eq!(repeat["warnings"].as_array().unwrap().len(), 2, "{repeat}");
let _ = std::fs::remove_dir_all(&src);
}
diff --cc crates/ui-egui/locales/fr-formats.json
index 000000000,7ccaf5a38..b22962782
mode 000000,100644..100644
--- a/crates/ui-egui/locales/fr-formats.json
+++ b/crates/ui-egui/locales/fr-formats.json
@@@ -1,0 -1,232 +1,239 @@@
+ {
+ " ({unsure} with several look-alike files: use Locate)": " ({unsure} avec plusieurs fichiers similaires : utilisez Localiser)",
+ " ({} in Recently Deleted)": " ({} dans « Supprimés récemment »)",
+ " · {:.0}% clipped": " · {:.0}% écrêté",
+ " · {failed} couldn't be rendered": " · {failed} impossible(s) à afficher",
+ " · {skipped} skipped (file exists)": " · {skipped} ignoré(s) (le fichier existe)",
+ " · {} duplicate{} skipped": " · {} doublon{} ignoré(s)",
+ " · {} failed: {}": " · {} échec(s) : {}",
+ " · {} moved": " · {} déplacé(s)",
+ " · {} not readable": " · {} illisible(s)",
+ " · {} original{} left at the source": " · {} original/originaux{} conservé(s) à la source",
+ " · {} restored from Recently Deleted": " · {} restauré(s) depuis « Supprimés récemment »",
+ " — not carried over: {}{}": " — non transféré : {}{}",
+ "+{} more": "+{} de plus",
+ ", {failed} file{} not readable": ", {failed} fichier{} illisible(s)",
+ "; {kept} already had a location": " ; {kept} possédaient déjà un emplacement",
+ "; {outside} outside its time range": " ; {outside} hors de leur plage horaire",
+ "@{}: {} PRs, {} commits, +{} / −{} lines (Δ {}), +{} / −{} binary assets, {} – {}": "@{} : {} PR, {} commits, +{} / −{} lignes (Δ {}), +{} / −{} ressources binaires, {} – {}",
+ "Add {local_n} to My Photos": "Ajouter {local_n} à Mes photos",
+ "Add {} Photo{}": "Ajouter {} photo{}",
+ "Add {} Photo{}, restore {}": "Ajouter {} photo{}, restaurer {}",
+ "Add “{}” to Favorites": "Ajouter « {} » aux favoris",
+ "Added {n} photo{} to My Photos": "{n} photo{} ajoutée(s) à Mes photos",
+ "Added {n} photo{} to “{}”": "{n} photo{} ajoutée(s) à « {} »",
+ "Added {what} to {name}": "{what} ajouté à {name}",
+ "Adding photos… {} of {}": "Ajout des photos… {} sur {}",
+ "All {n} selected photos move by the same amount.": "Les {n} photos sélectionnées se déplacent de la même valeur.",
+ "Already in the library, in Recently Deleted: {} photo{} selected · right-click ▸ Restore, or Delete Permanently to import afresh": "Déjà dans la bibliothèque, dans « Supprimés récemment » : {} photo{} sélectionnée(s) · clic droit → Restaurer, ou Supprimer définitivement pour importer à nouveau",
+ "Already in the library: {} photo{} selected in All Photos": "Déjà dans la bibliothèque : {} photo{} sélectionnée(s) dans Toutes les photos",
+ "Auto ({})": "Automatique ({})",
+ "Auto Import: added {} photo{}": "Importation automatique : {} photo{} ajoutée(s)",
+ "Auto Sync: edits apply to {n} photos": "Synchronisation automatique : les modifications s’appliquent à {n} photos",
+ "Automatic ({} MB)": "Automatique ({} Mo)",
+ "Build 1:1 Previews ({scope})": "Créer les aperçus 1:1 ({scope})",
+ "Build Smart Previews ({scope})": "Créer les aperçus dynamiques ({scope})",
+ "Build Standard-Sized Previews ({scope})": "Créer les aperçus de taille standard ({scope})",
+ "Building previews for {} photos…": "Création des aperçus pour {} photos…",
+ "Click {}:1": "Cliquer sur {}:1",
+ "Couldn't open the editor: {e}": "Impossible d’ouvrir l’éditeur : {e}",
+ "Create {n} Virtual Copies": "Créer {n} copies virtuelles",
+ "Creates {} stacks from {} of {scope}": "Crée {} piles à partir de {} parmi {scope}",
+ "Decoder: {reason}": "Décodeur : {reason}",
+ "Delete \"{label}\"": "Supprimer « {label} »",
+ "Delete \"{label}\" (and the mask)": "Supprimer « {label} » (et le masque)",
+ "Delete {n} Photos": "Supprimer {n} photos",
+ "Delete “{current}”": "Supprimer « {current} »",
+ "Discard Smart Previews ({scope})": "Supprimer les aperçus dynamiques ({scope})",
+ "Done ({what}): {done} photo{plural}": "Terminé ({what}) : {done} photo{plural}",
+ "Duplicate \"{label}\"": "Dupliquer « {label} »",
+ "Example: {example}": "Exemple : {example}",
+ "Exported {n} photo{}": "{n} photo{} exportée(s)",
+ "Exported {ok} of {total} photo{}": "{ok} photo{} exportée(s) sur {total}",
+ "Exported {} point curve preset{}": "{} préréglage{} de courbe de points exporté(s)",
+ "Exported {} preset{}": "{} préréglage{} exporté(s)",
+ "Exporting {} of {total}": "Exportation : {} sur {total}",
+ "Filter bar — {active} active filter{}": "Barre de filtres — {active} filtre{} actif(s)",
+ "Focus {:.0}": "Mise au point {:.0}",
+ "Folder “{}” (and its subfolders)": "Dossier « {} » (et ses sous-dossiers)",
+ "Found {n} missing photo{}; {left} still missing{unsure}": "{n} photo{} manquante(s) retrouvée(s) ; {left} toujours manquante(s){unsure}",
+ "Healed {n} dust spot{}": "{n} tache{} de poussière corrigée(s)",
+ "Import cancelled · {} photo{} added": "Importation annulée · {} photo{} ajoutée(s)",
+ "Import failed: {e}": "Échec de l’importation : {e}",
++ "Import warnings ({n}):\n{warnings}": "Avertissements d’importation ({n}) :\n{warnings}",
+ "Imported {n} point curve preset{}": "{n} préréglage{} de courbe de points importé(s)",
+ "Imported {n} preset{}": "{n} préréglage{} importé(s)",
+ "Imported {n} preset{}, {f} file{} not readable": "{n} préréglage{} importé(s), {f} fichier{} illisible(s)",
+ "Imported {profiles} profile{} (Profile browser ▸ their groups)": "{profiles} profil{} importé(s) (Navigateur de profils → leurs groupes)",
++ "XMP profile \"{profile}\" was not applied for {path}; colors may differ from Lightroom.": "Le profil XMP « {profile} » n’a pas été appliqué à {path} ; les couleurs peuvent différer de Lightroom.",
++ "Lightroom geometry was not preserved for {path}; {mode} will be recalculated.": "La géométrie Lightroom de {path} n’a pas été conservée ; {mode} sera recalculé.",
++ "Lightroom geometry for {path} was not preserved; saved transform is ignored because Upright is Off.": "La géométrie Lightroom de {path} n’a pas été conservée ; la transformation enregistrée est ignorée, car Upright est désactivé.",
++ "Lightroom geometry for {path} was not preserved; Guided Upright saved transform is unsupported.": "La géométrie Lightroom de {path} n’a pas été conservée ; la transformation enregistrée de Guided Upright n’est pas prise en charge.",
++ "Lightroom geometry for {path} was not preserved; saved Upright transform is unsupported.": "La géométrie Lightroom de {path} n’a pas été conservée ; la transformation Upright enregistrée n’est pas prise en charge.",
++ "XMP adjustments were not imported for {path}: {fields}.": "Les réglages XMP de {path} n’ont pas été importés : {fields}.",
+ "Imported {} photo{}": "{} photo{} importée(s)",
+ "Insert at the cursor (also written {})": "Insérer à la position du curseur (également écrit {})",
+ "Label Set: {name}": "Ensemble d’étiquettes : {name}",
+ "LightCraft could not open its window: {e}": "LightCraft n’a pas pu ouvrir sa fenêtre : {e}",
+ "LightCraft could not open its window: {e}\n\nThe log file has the details: {path}": "LightCraft n’a pas pu ouvrir sa fenêtre : {e}\n\nConsultez le fichier journal pour plus de détails : {path}",
+ "Lightroom catalog inspected: {photos} photos, {collections} collections, {missing} missing": "Catalogue Lightroom analysé : {photos} photos, {collections} collections, {missing} manquante(s)",
+ "Lightroom import complete: {imported} photos added": "Importation Lightroom terminée : {imported} photos ajoutées",
+ "Lightroom import complete: {imported} photos added, {failed} failed": "Importation Lightroom terminée : {imported} photos ajoutées, {failed} échec(s)",
+ "Lightroom import complete: {imported} photos added; index warning: {warning}": "Importation Lightroom terminée : {imported} photos ajoutées ; avertissement d’index : {warning}",
+ "Lightroom import failed: {e}{warning}": "Échec de l’importation Lightroom : {e}{warning}",
+ "Lightroom inspection failed: {e}{warning}": "Échec de l’analyse Lightroom : {e}{warning}",
+ "MIT OR Apache-2.0. Fonts: {} (OFL). Icons: original.": "MIT ou Apache-2.0. Polices : {} (OFL). Icônes : originales.",
+ "Matches: {}": "Correspondances : {}",
+ "Merging… {stage} {:.0}%": "Fusion… {stage} {:.0}%",
+ "Move {what} to Recently Deleted?": "Déplacer {what} vers « Supprimés récemment » ?",
+ "Named ({named_n})": "Nommés ({named_n})",
+ "Painting “{k}”: click photos to add or remove it · Esc stops": "Application de « {k} » : cliquez sur les photos pour l’ajouter ou le retirer · Échap pour arrêter",
+ "Paste into {n} photo{} — only settings that were copied are pasted": "Coller dans {n} photo{} — seuls les réglages copiés seront collés",
+ "Preset: {name}": "Préréglage : {name}",
+ "Preview only — editing the camera's embedded JPEG ({})": "Aperçu uniquement — modification du JPEG intégré de l’appareil photo ({})",
+ "Preview only — {}": "Aperçu uniquement — {}",
+ "Previews ready for {done} photo{plural}": "Aperçus prêts pour {done} photo{plural}",
+ "Profile: {}": "Profil : {}",
+ "Proof Copy ({})": "Copie d’épreuve ({})",
+ "Proof Preview · {}": "Aperçu d’épreuve · {}",
+ "Quick Develop · {n} photos": "Développement rapide · {n} photos",
+ "Quick Develop: {name}": "Développement rapide : {name}",
+ "Rated {}": "Noté {}",
+ "Reading Lightroom catalog… {done} of {total}": "Lecture du catalogue Lightroom… {done} sur {total}",
+ "Reading photos… {done} of {total}": "Lecture des photos… {done} sur {total}",
+ "Reading photos… {} of {}": "Lecture des photos… {} sur {}",
+ "Redo {}": "Rétablir {}",
+ "Remove “{name}” and its {count} photo{} from the library?": "Retirer « {name} » et ses {count} photo{} de la bibliothèque ?",
+ "Remove “{}” from Favorites": "Retirer « {} » des favoris",
+ "Removed from {}": "Retiré de {}",
+ "Removed {what} from {name}": "{what} retiré de {name}",
+ "Rename {n} Photos…": "Renommer {n} photos…",
+ "Rename “{name}”": "Renommer « {name} »",
+ "Renames “{from}” on {n} photo{} (keywords below it too). Use | for levels, e.g. Travel|Italy. An existing name merges the two.": "Renomme « {from} » sur {n} photo{} (ainsi que les mots-clés qui en dépendent). Utilisez | pour séparer les niveaux, par ex. Voyages|Italie. Si le nom existe déjà, les deux sont fusionnés.",
+ "Rendering on the CPU: {why}": "Rendu sur le processeur : {why}",
+ "Replace {} with:": "Remplacer {} par :",
+ "Reset {name}": "Réinitialiser {name}",
+ "Reset {} Channel": "Réinitialiser le canal {}",
+ "Restore {}": "Restaurer {}",
+ "Restore {} Photo{}": "Restaurer {} photo{}",
+ "Saved export preset “{}”": "Préréglage d’exportation « {} » enregistré",
+ "Scores {scope} for focus and exposure and finds similar shots taken within seconds of each other (bursts).": "Évalue la mise au point et l’exposition de {scope}, puis repère les prises similaires réalisées à quelques secondes d’intervalle (rafales).",
+ "Show {hidden} hidden location{}": "Afficher {hidden} emplacement{} masqué(s)",
+ "Showing {n} of {}": "Affichage de {n} sur {}",
+ "Smart album: {}": "Album dynamique : {}",
+ "Tagged {n} photo{} from the tracklog": "{n} photo{} géolocalisée(s) à partir du journal de trajet",
+ "The SAM 3 download failed: {e}": "Échec du téléchargement de SAM 3 : {e}",
+ "Undo {}": "Annuler {}",
+ "Unknown tag{s} {} stay{} as typed (see Tags)": "Les étiquettes inconnues{s} {} restent{} telles quelles (voir Étiquettes)",
+ "Updated “{name}”": "« {name} » mis à jour",
+ "Version {} — a clean-room, pure-Rust photo library and raw developer.": "Version {} — bibliothèque photo et développeur RAW en Rust pur, développés indépendamment.",
+ "Version: {}": "Version : {}",
+ "Virtual copy “{name}” of {of}": "Copie virtuelle « {name} » de {of}",
+ "Working on {what} for {} photos…": "Traitement de {what} pour {} photos…",
+ "none (CPU rendering): {why}": "aucun (rendu sur le processeur) : {why}",
+ "the {n} selected photos": "les {n} photos sélectionnées",
+ "the {} photos in view": "les {} photos affichées",
+ "these {count} photos": "ces {count} photos",
+ "{count} smart preview{} · {:.1} MB": "{count} aperçu{0} dynamique{0} · {1:.1} Mo",
+ "{f} folders (and their subfolders)": "{f} dossier(s) (et leurs sous-dossiers)",
+ "{label} Grading": "Étalonnage de {label}",
+ "{label} {d:+} on every selected photo": "{label} {d:+} sur chaque photo sélectionnée",
+ "{label} {index} of {n}": "{label} {index} sur {n}",
+ "{label}, {n} photos": "{label}, {n} photos",
+ "{matching} of {t} photos": "{matching} sur {t} photos",
+ "{matching} photos": "{matching} photos",
+ "{mode} spot {} of {}": "Tache {mode} {} sur {}",
+ "{month}": "{month:02}",
+ "{month} {year}": "{month:02}/{year}",
+ "{msg} ({failed} failed)": "{msg} ({failed} échec(s))",
+ "{name} Label": "Étiquette {name}",
+ "{name} Off": "{name} : désactivé",
+ "{name} On": "{name} : activé",
+ "{name} opened for editing; it is stacked with the original": "{name} ouvert pour modification ; il est empilé avec l’original",
+ "{name} — double-click to reset it": "{name} — double-cliquez pour réinitialiser",
+ "{n} change{} couldn't be written to disk: {e}\nIf you quit now, {} lost.": "Impossible d’écrire {n} modification{} sur le disque : {e}\nSi vous quittez maintenant, {} seront perdues.",
+ "{n} change{} saved in memory but not written to disk: {e}\nLightCraft retries automatically; quitting now would lose {}.": "{n} modification{} enregistrée(s) en mémoire mais non écrite(s) sur le disque : {e}\nLightCraft réessaiera automatiquement ; quitter maintenant entraînerait la perte de {}.",
+ "{n} change{} saved in memory but not written to disk: {e} — LightCraft will retry": "{n} modification{} enregistrée(s) en mémoire mais non écrite(s) sur le disque : {e} — LightCraft réessaiera.",
+ "{n} found · {sel} selected": "{n} trouvé(s) · {sel} sélectionné(s)",
+ "{n} photos": "{n} photos",
+ "{n} photos in {} are hidden by the filters above": "Les filtres ci-dessus masquent {n} photos dans {}",
+ "{n} photo{}": "{n} photo{}",
+ "{n} photo{} match · updates automatically as photos change": "{n} photo{} correspondante(s) · mise à jour automatique lorsque les photos changent",
+ "{n} photo{} now · updates automatically as photos change": "{n} photo{} actuellement · mise à jour automatique lorsque les photos changent",
+ "{pid} (missing)": "{pid} (manquant)",
+ "{sel_n} selected · {counted}": "{sel_n} sélectionné(s) · {counted}",
+ "{stage}… {:.0}%": "{stage}… {:.0}%",
+ "{verb} {n} Photo{}": "{verb} {n} photo{}",
+ "{weekday}, {day}": "{weekday} {day}",
+ "{weekday}, {day} {month} {year}": "{weekday} {day} {month} {year}",
+ "{what} merge added": "Fusion de {what} ajoutée",
+ "{what} merge failed: {e}": "Échec de la fusion de {what} : {e}",
+ "{year}": "{year}",
+ "{{date:…}} directives: {}": "Directives {{date:…}} : {}",
+ "{} and higher": "{} et plus",
+ "{} contributors · {} commits": "{} contributeurs · {} commits",
+ "{} failed": "{} échec(s)",
+ "{} files": "{} fichiers",
+ "{} files and {f} folder{}": "{} fichiers et {f} dossier{}",
+ "{} item{}": "{} élément{}",
+ "{} of 4 guides — drag along lines that should be vertical or horizontal.": "{} guides sur 4 — faites-les glisser le long des lignes qui doivent être verticales ou horizontales.",
+ "{} photos": "{} photos",
+ "{} photos · exposures {} EV": "{} photos · expositions {} EV",
+ "{} photos · {} · {:.0}° × {:.0}°": "{} photos · {} · {:.0}° × {:.0}°",
+ "{} photo{} not readable": "{} photo{} illisible(s)",
+ "{} sample{}": "{} échantillon{}",
+ "{} sec": "{} s",
+ "{} spot(s) on this photo": "{} tache(s) sur cette photo",
+ "{} — show their photos": "{} — afficher leurs photos",
+ "· {dups} already in the library": "· déjà dans la bibliothèque : {dups}",
+ "· {n} photo{}": "· {n} photo{}",
+ "… and {more} more": "… et {more} de plus",
+ "LightCraft can't decode this raw variant yet ({}). You're editing the camera's embedded JPEG preview, which already includes the camera's picture style (e.g. Monochrome) and white balance.": "LightCraft ne peut pas encore décoder cette variante RAW ({}). Vous modifiez l’aperçu JPEG intégré de l’appareil photo, qui inclut déjà le style d’image (par ex. monochrome) et la balance des blancs de l’appareil.",
+ "Filtered: {label}": "Filtré : {label}",
+ "{n} similar photo{} · View ▸ Clear Filters to see all": "{n} photo{} similaire(s) · Affichage → Effacer les filtres pour tout voir",
+ "Moved; {} photo(s) relinked": "Déplacé ; {} photo(s) de nouveau associée(s)",
+ "{} label (click more labels to show any of them)": "Étiquette {} (cliquez sur « autres étiquettes » pour afficher celles de votre choix)",
+ ", {} star{}": ", {} étoile{}",
+ ", {} label": ", étiquette {}",
+ "Downloads from {host}. Once it has arrived and checked out, LightCraft installs it, {after}.": "Téléchargement depuis {host}. Une fois le téléchargement terminé et vérifié, LightCraft l’installe, {after}.",
+ "{:.1} MB": "{:.1} Mo",
+ "Running on the processor: {}.": "Exécution sur le processeur : {}.",
+ "{} · {}. Kept in the library's “denoise” folder; the oldest ones that no photo uses go first when the limit is reached.": "{} · {}. Conservé dans le dossier « denoise » de la bibliothèque ; lorsque la limite est atteinte, les fichiers les plus anciens inutilisés par les photos sont supprimés en premier.",
+ "Denoising {name}: {done} of {total} tiles{}": "Réduction du bruit de {name} : {done} sur {total} tuile{}",
+ "{size} GB": "{size} Go",
+ "{} of {} from {host}": "{} sur {} depuis {host}",
+ "{} KB": "{} Ko",
+ "{} MB": "{} Mo",
+ "Making the denoised picture… {}%": "Création de l’image débruitée… {}%",
+ "{name} · {terms}": "{name} · {terms}",
+ "{n} {noun}": "{n} {noun}",
+ "Trained on: {provenance}": "Entraîné sur : {provenance}",
+ " · {queued} waiting": " · {queued} en attente",
+ "Shows the model's terms, then downloads {} from {host}, installs it and starts using it. Nothing else is sent.": "Affiche les conditions du modèle, puis télécharge {} depuis {host}, l’installe et commence à l’utiliser. Aucune autre donnée n’est envoyée.",
+ "In line for AI Denoise ({ahead} ahead)…": "En attente de la réduction du bruit par IA ({ahead} devant)…",
+ "Running on {}.": "En cours d’exécution sur {}.",
+ "{file} · {size}": "{file} · {size}",
+ "• {assumption}": "• {assumption}",
+ "Put inside “{parent}”": "Placer dans « {parent} »",
+ "Delete the keyword “{name}”?": "Supprimer le mot-clé « {name} » ?",
+ "It is taken off {count} photo{}, with the keywords below it. Undo brings it back.": "Il est retiré de {count} photo{}, avec les mots-clés qu’il contient. Annuler le rétablit.",
+ "Create Keyword Tag Inside “{name}”…": "Créer un mot-clé dans « {name} »…",
+ "“{parent}” has a “{name}” already. Merge the two?": "« {parent} » contient déjà « {name} ». Fusionner les deux ?",
+ "There is a “{name}” at the top level already. Merge the two?": "Il existe déjà « {name} » au premier niveau. Fusionner les deux ?",
+ "Added “{keyword}” to {n} photo{}": "« {keyword} » ajouté à {n} photo{}",
+ "On {have} of {of} selected photos": "Sur {have} des {of} photos sélectionnées",
+ "Remove “{name}”": "Retirer « {name} »",
+ "There is a keyword set “{name}” already": "Un jeu de mots-clés « {name} » existe déjà",
+ "Added {n} keyword{}": "Mots-clés ajoutés : {n}{:.0}",
+ "; {n} gained synonyms": " ; avec de nouveaux synonymes : {n}",
+ "Exported {n} keyword{}": "Mots-clés exportés : {n}{:.0}",
+ " — Capture One won't import a list with ; , < or > in a keyword: {names}": " — Capture One n’importe pas une liste dont un mot-clé contient ; , < ou > : {names}",
+ " — left out, as a keyword list can't hold them: {names}": " — omis, car une liste de mots-clés ne peut pas les contenir : {names}",
+ "{done} of {total}": "{done} sur {total}",
+ "{done} of {total} MB": "{done} sur {total} Mo",
+ "{pct} %": "{pct} %",
+ "+{n} more": "+{n} autres",
+ "1 task is still running: {names}. Quitting stops it.": "1 tâche est encore en cours : {names}. Quitter l'arrête.",
+ "{n} tasks are still running: {names}. Quitting stops them.": "{n} tâches sont encore en cours : {names}. Quitter les arrête.",
+ "{what} merge cancelled": "Fusion {what} annulée"
+ }
diff --cc crates/ui-egui/locales/uk-formats.json
index 000000000,c33dd0cb0..42dbfcbec
mode 000000,100644..100644
--- a/crates/ui-egui/locales/uk-formats.json
+++ b/crates/ui-egui/locales/uk-formats.json
@@@ -1,0 -1,232 +1,239 @@@
+ {
+ " ({unsure} with several look-alike files: use Locate)": " ({unsure} із кількома схожими файлами: використайте «Знайти»)",
+ " ({} in Recently Deleted)": " ({} у нещодавно видалених)",
+ " · {:.0}% clipped": " · {:.0}% відсічено",
+ " · {failed} couldn't be rendered": " · не вдалося відтворити: {failed}",
+ " · {skipped} skipped (file exists)": " · пропущено: {skipped} (файл існує)",
+ " · {} duplicate{} skipped": " · дублікатів пропущено: {}{:.0}",
+ " · {} failed: {}": " · помилок: {}: {}",
+ " · {} moved": " · переміщено: {}",
+ " · {} not readable": " · не читається: {}",
+ " · {} original{} left at the source": " · оригіналів залишено в джерелі: {}{:.0}",
+ " · {} restored from Recently Deleted": " · відновлено з нещодавно видалених: {}",
+ " — not carried over: {}{}": " — не перенесено: {}{}",
+ "+{} more": "+{} ще",
+ ", {failed} file{} not readable": ", файлів не читається: {failed}{:.0}",
+ "; {kept} already had a location": "; уже мали розташування: {kept}",
+ "; {outside} outside its time range": "; поза часовим діапазоном маршруту: {outside}",
+ "@{}: {} PRs, {} commits, +{} / −{} lines (Δ {}), +{} / −{} binary assets, {} – {}": "@{}: PR: {}, комітів: {}, рядків: +{} / −{} (Δ {}), двійкових ресурсів: +{} / −{}, {} – {}",
+ "Add {local_n} to My Photos": "Додати до моїх фото: {local_n}",
+ "Add {} Photo{}": "Додати фото: {}{:.0}",
+ "Add {} Photo{}, restore {}": "Додати фото: {}{:.0}, відновити: {}",
+ "Add “{}” to Favorites": "Додати «{}» до улюблених",
+ "Added {n} photo{} to My Photos": "До моїх фото додано: {n}{:.0}",
+ "Added {n} photo{} to “{}”": "До «{1}» додано фото: {n}{0:.0}",
+ "Added {what} to {name}": "{what}: додано до {name}",
+ "Adding photos… {} of {}": "Додавання фото… {} з {}",
+ "All {n} selected photos move by the same amount.": "Усі вибрані фото ({n}) зміщуються на однакове значення.",
+ "Already in the library, in Recently Deleted: {} photo{} selected · right-click ▸ Restore, or Delete Permanently to import afresh": "Уже в бібліотеці, у нещодавно видалених: вибрано фото: {}{:.0} · права кнопка → Відновити або Видалити назавжди, щоб імпортувати заново",
+ "Already in the library: {} photo{} selected in All Photos": "Уже в бібліотеці: вибрано фото в усіх фото: {}{:.0}",
+ "Auto ({})": "Автоматично ({})",
+ "Auto Import: added {} photo{}": "Автоімпорт: додано фото: {}{:.0}",
+ "Auto Sync: edits apply to {n} photos": "Автосинхронізація: зміни застосовуються до фото: {n}",
+ "Automatic ({} MB)": "Автоматично ({} МБ)",
+ "Build 1:1 Previews ({scope})": "Створити перегляди 1:1 ({scope})",
+ "Build Smart Previews ({scope})": "Створити смарт-перегляди ({scope})",
+ "Build Standard-Sized Previews ({scope})": "Створити перегляди стандартного розміру ({scope})",
+ "Building previews for {} photos…": "Створення переглядів для фото: {}…",
+ "Click {}:1": "Клацання {}:1",
+ "Couldn't open the editor: {e}": "Не вдалося відкрити редактор: {e}",
+ "Create {n} Virtual Copies": "Створити віртуальні копії: {n}",
+ "Creates {} stacks from {} of {scope}": "Буде створено стосів: {} із {} ({scope})",
+ "Decoder: {reason}": "Декодер: {reason}",
+ "Delete \"{label}\"": "Видалити «{label}»",
+ "Delete \"{label}\" (and the mask)": "Видалити «{label}» (і маску)",
+ "Delete {n} Photos": "Видалити фото: {n}",
+ "Delete “{current}”": "Видалити «{current}»",
+ "Discard Smart Previews ({scope})": "Видалити смарт-перегляди ({scope})",
+ "Done ({what}): {done} photo{plural}": "Готово ({what}): фото: {done}{plural:.0}",
+ "Duplicate \"{label}\"": "Дублювати «{label}»",
+ "Example: {example}": "Приклад: {example}",
+ "Exported {n} photo{}": "Експортовано фото: {n}{:.0}",
+ "Exported {ok} of {total} photo{}": "Експортовано фото: {ok} із {total}{:.0}",
+ "Exported {} point curve preset{}": "Експортовано наборів налаштувань точкової кривої: {}{:.0}",
+ "Exported {} preset{}": "Експортовано наборів налаштувань: {}{:.0}",
+ "Exporting {} of {total}": "Експорт: {} із {total}",
+ "Filter bar — {active} active filter{}": "Панель фільтрів — активних фільтрів: {active}{:.0}",
+ "Focus {:.0}": "Фокус {:.0}",
+ "Folder “{}” (and its subfolders)": "Тека «{}» (і вкладені теки)",
+ "Found {n} missing photo{}; {left} still missing{unsure}": "Знайдено відсутніх фото: {n}{:.0}; усе ще відсутні: {left}{unsure}",
+ "Healed {n} dust spot{}": "Усунено пилових плям: {n}{:.0}",
+ "Import cancelled · {} photo{} added": "Імпорт скасовано · додано фото: {}{:.0}",
+ "Import failed: {e}": "Помилка імпорту: {e}",
++ "Import warnings ({n}):\n{warnings}": "Попередження імпорту ({n}):\n{warnings}",
+ "Imported {n} point curve preset{}": "Імпортовано наборів налаштувань точкової кривої: {n}{:.0}",
+ "Imported {n} preset{}": "Імпортовано наборів налаштувань: {n}{:.0}",
+ "Imported {n} preset{}, {f} file{} not readable": "Імпортовано наборів налаштувань: {n}{:.0}, файлів не читається: {f}{:.0}",
+ "Imported {profiles} profile{} (Profile browser ▸ their groups)": "Імпортовано профілів: {profiles}{:.0} (Оглядач профілів → їхні групи)",
++ "XMP profile \"{profile}\" was not applied for {path}; colors may differ from Lightroom.": "Профіль XMP «{profile}» не застосовано до {path}; кольори можуть відрізнятися від Lightroom.",
++ "Lightroom geometry was not preserved for {path}; {mode} will be recalculated.": "Геометрію Lightroom для {path} не збережено; режим {mode} буде перераховано.",
++ "Lightroom geometry for {path} was not preserved; saved transform is ignored because Upright is Off.": "Геометрію Lightroom для {path} не збережено; збережене перетворення ігнорується, оскільки Upright вимкнено.",
++ "Lightroom geometry for {path} was not preserved; Guided Upright saved transform is unsupported.": "Геометрію Lightroom для {path} не збережено; збережене перетворення Guided Upright не підтримується.",
++ "Lightroom geometry for {path} was not preserved; saved Upright transform is unsupported.": "Геометрію Lightroom для {path} не збережено; збережене перетворення Upright не підтримується.",
++ "XMP adjustments were not imported for {path}: {fields}.": "Коригування XMP для {path} не імпортовано: {fields}.",
+ "Imported {} photo{}": "Імпортовано фото: {}{:.0}",
+ "Insert at the cursor (also written {})": "Вставити в позицію курсора (також записується як {})",
+ "Label Set: {name}": "Набір міток: {name}",
+ "LightCraft could not open its window: {e}": "LightCraft не вдалося відкрити вікно: {e}",
+ "LightCraft could not open its window: {e}\n\nThe log file has the details: {path}": "LightCraft не вдалося відкрити вікно: {e}\n\nПодробиці у файлі журналу: {path}",
+ "Lightroom catalog inspected: {photos} photos, {collections} collections, {missing} missing": "Каталог Lightroom перевірено: фото — {photos}, колекцій — {collections}, відсутні — {missing}",
+ "Lightroom import complete: {imported} photos added": "Імпорт Lightroom завершено: додано фото — {imported}",
+ "Lightroom import complete: {imported} photos added, {failed} failed": "Імпорт Lightroom завершено: додано фото — {imported}, помилок — {failed}",
+ "Lightroom import complete: {imported} photos added; index warning: {warning}": "Імпорт Lightroom завершено: додано фото — {imported}; попередження індексу: {warning}",
+ "Lightroom import failed: {e}{warning}": "Помилка імпорту Lightroom: {e}{warning}",
+ "Lightroom inspection failed: {e}{warning}": "Помилка перевірки Lightroom: {e}{warning}",
+ "MIT OR Apache-2.0. Fonts: {} (OFL). Icons: original.": "MIT OR Apache-2.0. Шрифти: {} (OFL). Значки: оригінальні.",
+ "Matches: {}": "Збігів: {}",
+ "Merging… {stage} {:.0}%": "Об’єднання… {stage} {:.0}%",
+ "Move {what} to Recently Deleted?": "Перемістити {what} до нещодавно видалених?",
+ "Named ({named_n})": "З іменами ({named_n})",
+ "Painting “{k}”: click photos to add or remove it · Esc stops": "Призначення «{k}»: клацайте фото, щоб додати або вилучити його · Esc завершує",
+ "Paste into {n} photo{} — only settings that were copied are pasted": "Вставка у фото: {n}{:.0} — вставляються лише скопійовані налаштування",
+ "Preset: {name}": "Набір налаштувань: {name}",
+ "Preview only — editing the camera's embedded JPEG ({})": "Лише перегляд — редагування вбудованого JPEG камери ({})",
+ "Preview only — {}": "Лише перегляд — {}",
+ "Previews ready for {done} photo{plural}": "Перегляди готові для фото: {done}{plural:.0}",
+ "Profile: {}": "Профіль: {}",
+ "Proof Copy ({})": "Пробна копія ({})",
+ "Proof Preview · {}": "Пробний перегляд · {}",
+ "Quick Develop · {n} photos": "Швидка обробка · фото: {n}",
+ "Quick Develop: {name}": "Швидка обробка: {name}",
+ "Rated {}": "Оцінено: {}",
+ "Reading Lightroom catalog… {done} of {total}": "Читання каталогу Lightroom… {done} із {total}",
+ "Reading photos… {done} of {total}": "Читання фото… {done} із {total}",
+ "Reading photos… {} of {}": "Читання фото… {} із {}",
+ "Redo {}": "Повторити {}",
+ "Remove “{name}” and its {count} photo{} from the library?": "Вилучити «{name}» і фото ({count}){:.0} з бібліотеки?",
+ "Remove “{}” from Favorites": "Вилучити «{}» з улюблених",
+ "Removed from {}": "Вилучено з {}",
+ "Removed {what} from {name}": "{what}: вилучено з {name}",
+ "Rename {n} Photos…": "Перейменувати фото: {n}…",
+ "Rename “{name}”": "Перейменувати «{name}»",
+ "Renames “{from}” on {n} photo{} (keywords below it too). Use | for levels, e.g. Travel|Italy. An existing name merges the two.": "Перейменовує «{from}» на фото ({n}){:.0} (також вкладені ключові слова). Використовуйте | для рівнів, наприклад Подорожі|Італія. Наявна назва об’єднує обидва слова.",
+ "Rendering on the CPU: {why}": "Рендеринг на ЦП: {why}",
+ "Replace {} with:": "Замінити {} на:",
+ "Reset {name}": "Скинути: {name}",
+ "Reset {} Channel": "Скинути канал: {}",
+ "Restore {}": "Відновити {}",
+ "Restore {} Photo{}": "Відновити фото: {}{:.0}",
+ "Saved export preset “{}”": "Набір налаштувань експорту «{}» збережено",
+ "Scores {scope} for focus and exposure and finds similar shots taken within seconds of each other (bursts).": "Оцінює фокус і експозицію ({scope}) та знаходить подібні знімки з різницею в кілька секунд (серії).",
+ "Show {hidden} hidden location{}": "Показати приховані розташування: {hidden}{:.0}",
+ "Showing {n} of {}": "Показано {n} із {}",
+ "Smart album: {}": "Смарт-альбом: {}",
+ "Tagged {n} photo{} from the tracklog": "Позначено за журналом маршруту фото: {n}{:.0}",
+ "The SAM 3 download failed: {e}": "Не вдалося завантажити SAM 3: {e}",
+ "Undo {}": "Скасувати {}",
+ "Unknown tag{s} {} stay{} as typed (see Tags)": "Невідомі теги{s:.0} {} залишаються як введено{:.0} (див. «Теги»)",
+ "Updated “{name}”": "«{name}» оновлено",
+ "Version {} — a clean-room, pure-Rust photo library and raw developer.": "Версія {} — незалежно розроблена бібліотека фото й обробка RAW на чистому Rust.",
+ "Version: {}": "Версія: {}",
+ "Virtual copy “{name}” of {of}": "Віртуальна копія «{name}» з {of}",
+ "Working on {what} for {} photos…": "{what}: обробка фото ({})…",
+ "none (CPU rendering): {why}": "немає (рендеринг на ЦП): {why}",
+ "the {n} selected photos": "вибрані фото: {n}",
+ "the {} photos in view": "фото в поданні: {}",
+ "these {count} photos": "ці фото ({count})",
+ "{count} smart preview{} · {:.1} MB": "Смарт-переглядів: {count}{:.0} · {:.1} МБ",
+ "{f} folders (and their subfolders)": "Тек: {f} (і їхніх вкладених тек)",
+ "{label} Grading": "Колірне тонування: {label}",
+ "{label} {d:+} on every selected photo": "{label} {d:+} на кожному вибраному фото",
+ "{label} {index} of {n}": "{label} {index} із {n}",
+ "{label}, {n} photos": "{label}, фото: {n}",
+ "{matching} of {t} photos": "Фото: {matching} із {t}",
+ "{matching} photos": "Фото: {matching}",
+ "{mode} spot {} of {}": "{mode}: ділянка {} із {}",
+ "{month}": "{month}",
+ "{month} {year}": "{month:02}.{year}",
+ "{msg} ({failed} failed)": "{msg} (помилок: {failed})",
+ "{name} Label": "Мітка: {name}",
+ "{name} Off": "{name}: вимкнено",
+ "{name} On": "{name}: увімкнено",
+ "{name} opened for editing; it is stacked with the original": "{name} відкрито для редагування й об’єднано в стос з оригіналом",
+ "{name} — double-click to reset it": "{name} — подвійне клацання для скидання",
+ "{n} change{} couldn't be written to disk: {e}\nIf you quit now, {} lost.": "Змін не вдалося записати на диск: {n}{0:.0}: {e}\nЯкщо вийти зараз, їх буде втрачено.{1:.0}",
+ "{n} change{} saved in memory but not written to disk: {e}\nLightCraft retries automatically; quitting now would lose {}.": "Змін збережено в пам’яті, але не записано на диск: {n}{:.0}: {e}\nLightCraft повторює спроби автоматично; вихід зараз призведе до їхньої втрати.{:.0}",
+ "{n} change{} saved in memory but not written to disk: {e} — LightCraft will retry": "Змін збережено в пам’яті, але не записано на диск: {n}{:.0}: {e} — LightCraft повторить спробу",
+ "{n} found · {sel} selected": "Знайдено: {n} · вибрано: {sel}",
+ "{n} photos": "Фото: {n}",
+ "{n} photos in {} are hidden by the filters above": "Фільтри вище приховують фото в «{}»: {n}",
+ "{n} photo{}": "Фото: {n}{:.0}",
+ "{n} photo{} match · updates automatically as photos change": "Відповідних фото: {n}{:.0} · оновлюється автоматично зі зміною фото",
+ "{n} photo{} now · updates automatically as photos change": "Зараз фото: {n}{:.0} · оновлюється автоматично зі зміною фото",
+ "{pid} (missing)": "{pid} (відсутній)",
+ "{sel_n} selected · {counted}": "Вибрано: {sel_n} · {counted}",
+ "{stage}… {:.0}%": "{stage}… {:.0}%",
+ "{verb} {n} Photo{}": "{verb} (фото: {n}){:.0}",
+ "{weekday}, {day}": "{weekday}, {day}",
+ "{weekday}, {day} {month} {year}": "{weekday}, {day:02}.{month:02}.{year}",
+ "{what} merge added": "{what}: об’єднання додано",
+ "{what} merge failed: {e}": "{what}: помилка об’єднання: {e}",
+ "{year}": "{year}",
+ "{{date:…}} directives: {}": "Директиви {{date:…}}: {}",
+ "{} and higher": "{} і вище",
+ "{} contributors · {} commits": "Учасників: {} · комітів: {}",
+ "{} failed": "Помилок: {}",
+ "{} files": "Файлів: {}",
+ "{} files and {f} folder{}": "Файлів: {}, тек: {f}{:.0}",
+ "{} item{}": "Елементів: {}{:.0}",
+ "{} of 4 guides — drag along lines that should be vertical or horizontal.": "Напрямних: {} із 4 — проведіть уздовж ліній, які мають бути вертикальними або горизонтальними.",
+ "{} photos": "Фото: {}",
+ "{} photos · exposures {} EV": "Фото: {} · експозиції {} EV",
+ "{} photos · {} · {:.0}° × {:.0}°": "Фото: {} · {} · {:.0}° × {:.0}°",
+ "{} photo{} not readable": "Не читається фото: {}{:.0}",
+ "{} sample{}": "Зразків: {}{:.0}",
+ "{} sec": "{} с",
+ "{} spot(s) on this photo": "Ділянок на цьому фото: {}",
+ "{} — show their photos": "{} — показати фото цієї особи",
+ "· {dups} already in the library": "· уже в бібліотеці: {dups}",
+ "· {n} photo{}": "· фото: {n}{:.0}",
+ "… and {more} more": "… і ще {more}",
+ "LightCraft can't decode this raw variant yet ({}). You're editing the camera's embedded JPEG preview, which already includes the camera's picture style (e.g. Monochrome) and white balance.": "LightCraft ще не може декодувати цей варіант RAW ({}). Ви редагуєте вбудований JPEG-перегляд камери, який уже містить її стиль зображення (наприклад, монохромний) і баланс білого.",
+ "Filtered: {label}": "Відфільтровано: {label}",
+ "{n} similar photo{} · View ▸ Clear Filters to see all": "Подібних фото: {n}{:.0} · Вигляд → Скинути фільтри, щоб побачити всі",
+ "Moved; {} photo(s) relinked": "Переміщено; повторно пов’язано фото: {}",
+ "{} label (click more labels to show any of them)": "Мітка «{}» (клацніть інші мітки, щоб показати фото з будь-якою з них)",
+ ", {} star{}": ", зірок: {}{:.0}",
+ ", {} label": ", мітка: {}",
+ "Downloads from {host}. Once it has arrived and checked out, LightCraft installs it, {after}.": "Завантажується з {host}. Після отримання й перевірки LightCraft установлює модель, {after}.",
+ "{:.1} MB": "{:.1} МБ",
+ "Running on the processor: {}.": "Працює на процесорі: {}.",
+ "{} · {}. Kept in the library's “denoise” folder; the oldest ones that no photo uses go first when the limit is reached.": "{} · {}. Зберігається в теці «denoise» бібліотеки; після досягнення ліміту першими видаляються найстаріші зображення, які не використовуються жодним фото.",
+ "Denoising {name}: {done} of {total} tiles{}": "Усунення шуму {name}: ділянки — {done} із {total}{}",
+ "{size} GB": "{size} ГБ",
+ "{} of {} from {host}": "{} із {} з {host}",
+ "{} KB": "{} КБ",
+ "{} MB": "{} МБ",
+ "Making the denoised picture… {}%": "Створення зображення з усуненим шумом… {}%",
+ "{name} · {terms}": "{name} · {terms}",
+ "{n} {noun}": "{noun}: {n}",
+ "Trained on: {provenance}": "Навчено на: {provenance}",
+ " · {queued} waiting": " · очікують: {queued}",
+ "Shows the model's terms, then downloads {} from {host}, installs it and starts using it. Nothing else is sent.": "Показує умови моделі, потім завантажує {} з {host}, установлює й починає використовувати її. Більше нічого не надсилається.",
+ "In line for AI Denoise ({ahead} ahead)…": "У черзі на усунення шуму ШІ (попереду: {ahead})…",
+ "Running on {}.": "Працює на {}.",
+ "{file} · {size}": "{file} · {size}",
+ "• {assumption}": "• {assumption}",
+ "Put inside “{parent}”": "Помістити в «{parent}»",
+ "Delete the keyword “{name}”?": "Видалити ключове слово «{name}»?",
+ "It is taken off {count} photo{}, with the keywords below it. Undo brings it back.": "Його буде знято з фото (кількість: {count}{:.0}) разом із вкладеними ключовими словами. Скасування поверне його.",
+ "Create Keyword Tag Inside “{name}”…": "Створити ключове слово в «{name}»…",
+ "“{parent}” has a “{name}” already. Merge the two?": "«{parent}» уже містить «{name}». Об’єднати їх?",
+ "There is a “{name}” at the top level already. Merge the two?": "На верхньому рівні вже є «{name}». Об’єднати їх?",
+ "Added “{keyword}” to {n} photo{}": "«{keyword}» додано до фото: {n}{:.0}",
+ "On {have} of {of} selected photos": "На {have} з {of} вибраних фото",
+ "Remove “{name}”": "Вилучити «{name}»",
+ "There is a keyword set “{name}” already": "Набір ключових слів «{name}» уже існує",
+ "Added {n} keyword{}": "Додано ключових слів: {n}{:.0}",
+ "; {n} gained synonyms": "; отримали синоніми: {n}",
+ "Exported {n} keyword{}": "Експортовано ключових слів: {n}{:.0}",
+ " — Capture One won't import a list with ; , < or > in a keyword: {names}": " — Capture One не імпортує список, у якому ключове слово містить ; , < або >: {names}",
+ " — left out, as a keyword list can't hold them: {names}": " — пропущено, бо список ключових слів не може їх містити: {names}",
+ "{done} of {total}": "{done} з {total}",
+ "{done} of {total} MB": "{done} з {total} МБ",
+ "{pct} %": "{pct} %",
+ "+{n} more": "+{n} ще",
+ "1 task is still running: {names}. Quitting stops it.": "1 завдання ще виконується: {names}. Вихід зупинить його.",
+ "{n} tasks are still running: {names}. Quitting stops them.": "Ще виконуються завдання ({n}): {names}. Вихід зупинить їх.",
+ "{what} merge cancelled": "Об’єднання {what} скасовано"
+ }
diff --cc crates/ui-egui/src/import.rs
index 40ee2ba58,af0a10adb..64c805add
--- a/crates/ui-egui/src/import.rs
+++ b/crates/ui-egui/src/import.rs
@@@ -5,12 -5,11 +5,13 @@@
//! chosen folder, filed by day, by month, into one folder or by a custom folder template,
//! optionally renamed), an album (existing or new), a preset and keywords to apply. Importing
//! runs on a worker thread (files are probed, copied or moved there) and its batches join the
- //! catalog between frames, with a progress window and Cancel; the whole import is one undo step.
+ //! catalog between frames, with a row and ✕ in the activity stack (issue #345); the whole import is
+ //! one undo step.
use egui::{Align2, Color32, Rect, Sense, Stroke, StrokeKind, pos2, vec2};
-use lightcraft_engine::import::{ImportCandidate, ScanInput, ScanOutput, ScanProgress, scan_with};
+use lightcraft_engine::import::{
+ ImportCandidate, ImportUprightMode, ImportWarning, ImportWarningCode, ScanInput, ScanOutput, ScanProgress, scan_with,
+};
use serde::{Deserialize, Serialize};
use serde_json::{Value, json};
use std::sync::atomic::Ordering;