Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix(captions): the SRT export's notices name their keys where they are used (#281)

Jareerc196d4eca952
diff --git a/src/crates/concat/src/panes/captions.rs b/src/crates/concat/src/panes/captions.rs
index 50b5cbe4..ad09b7de 100644
--- a/src/crates/concat/src/panes/captions.rs
+++ b/src/crates/concat/src/panes/captions.rs
@@ -357,12 +357,14 @@ impl CaptionsPane {
// notice says it was the busiest, and how to pick another.
let busiest = lane.busiest && srt::title_lanes(studio.timeline()) > 1;
let say = move |studio: &mut Studio, place: &str| {
- let key = if busiest {
- "captions.exportedBusiestLane"
+ // Each key spelled out where it is used: scripts/locales.py
+ // finds the strings the source asks for by reading it.
+ let said = if busiest {
+ tf("captions.exportedBusiestLane", &[&count, &place])
} else {
- "captions.exportedCaptions"
+ tf("captions.exportedCaptions", &[&count, &place])
};
- studio.notify(&tf(key, &[&count, &place]), false);
+ studio.notify(&said, false);
};
let written = path.to_path_buf();
let handed = crate::platform::publish_document(