fix(i18n): translate the curve right-click menu

Refs #911

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Andrew FrahnandClaude Opus 5.5 committed 2026-10-13 02:22:03 +11:00
1 parent 701f78ea2e
commit fbfc1b0296
1 file changed
+5 -2
+5 -2
View File
@@ -1028,8 +1028,11 @@ fn curve_footer(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSettings)
/// Right-click menu of the curve graph.
fn curve_reset_menu(app: &mut LightcraftApp, ui: &mut egui::Ui, ch: &str) {
let label =
if ch == "parametric" { "Reset Parametric Curve".to_string() } else { crate::i18n::tr_format!("Reset {} Channel", channel_label(ch)) };
let label = if ch == "parametric" {
crate::i18n::tr("Reset Parametric Curve").to_string()
} else {
crate::i18n::tr_format!("Reset {} Channel", crate::i18n::tr(channel_label(ch)))
};
let r = ui.button(label);
register(ui.ctx(), "curveMenu:resetChannel", r.rect);
if r.clicked() {