LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
fix(i18n): translate Remove panel spot mode and dust toast
Andrew Frahnfa2879236316
diff --git a/crates/ui-egui/src/panels/right.rs b/crates/ui-egui/src/panels/right.rsindex 501a78c5e..7a476d51f 100644--- a/crates/ui-egui/src/panels/right.rs+++ b/crates/ui-egui/src/panels/right.rs@@ -362,7 +362,7 @@ fn remove(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) {app.toast(ui.ctx(),if n == 0 {- "No dust spots found".to_string()+ crate::i18n::tr("No dust spots found").to_string()} else {crate::i18n::tr_format!("Healed {n} dust spot{}", if n == 1 { "" } else { "s" }, n = n)},@@ -385,7 +385,7 @@ fn remove(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) {lightcraft_develop::SpotMode::Remove => "Remove",lightcraft_develop::SpotMode::Fill => "Content-Aware",};- super::edit::sub_title(ui, &crate::i18n::tr_format!("{mode} spot {} of {}", i + 1, d.spots.len(), mode = mode));+ super::edit::sub_title(ui, &crate::i18n::tr_format!("{mode} spot {} of {}", i + 1, d.spots.len(), mode = crate::i18n::tr(mode)));}let plain = |id: &'static str, label: &'static str, min: f64, max: f64, default: f64| lightcraft_develop::ControlSpec {id,