Skip to content

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

fix(ui): correct Button property names and Glyph enum in relink dialog

Domica64eb9b6de1a2
diff --git a/engine/crates/concat/locales/en.json b/engine/crates/concat/locales/en.json
index 8edca896..8376ed7f 100644
--- a/engine/crates/concat/locales/en.json
+++ b/engine/crates/concat/locales/en.json
@@ -169,6 +169,7 @@
"Detail": "Detail",
"DETAILS": "DETAILS",
"Digicam": "Digicam",
+ "Dismiss": "Dismiss",
"Distort": "Distort",
"Distorted": "Distorted",
"Download": "Download",
@@ -353,6 +354,7 @@
"Milk's warm twin: the same soft matte with cream in the whites and a little gold in the middle. Interiors and morning light.": "Milk's warm twin: the same soft matte with cream in the whites and a little gold in the middle. Interiors and morning light.",
"Minimal": "Minimal",
"Mirror": "Mirror",
+ "Missing Media": "Missing Media",
"Mixing audio": "Mixing audio",
"Mode": "Mode",
"Model": "Model",
@@ -474,6 +476,7 @@
"Redo": "Redo",
"Reduce noise": "Reduce noise",
"Regular": "Regular",
+ "Relink All…": "Relink All…",
"Remove": "Remove",
"Remove background": "Remove background",
"Remove background: {0}": "Remove background: {0}",
@@ -595,6 +598,7 @@
"The chain runs top to bottom — reorder it with the chevrons. The eye bypasses one link without losing the values you dialled into it.": "The chain runs top to bottom — reorder it with the chevrons. The eye bypasses one link without losing the values you dialled into it.",
"The clip is no longer on the timeline": "The clip is no longer on the timeline",
"The early reflections of a room.": "The early reflections of a room.",
+ "The following media files could not be located. You can relink them to a new folder or dismiss this dialog to continue with offline placeholders.": "The following media files could not be located. You can relink them to a new folder or dismiss this dialog to continue with offline placeholders.",
"The instant print: a cream matte, warm highlights, cyan creeping into the shadows, a little softness in the corners.": "The instant print: a cream matte, warm highlights, cyan creeping into the shadows, a little softness in the corners.",
"The left half, reflected onto the right.": "The left half, reflected onto the right.",
"The manual colour panel every picture clip carries: exposure, tone, balance, sharpness and edge.": "The manual colour panel every picture clip carries: exposure, tone, balance, sharpness and edge.",
@@ -668,6 +672,7 @@
"{0} installed · {1} MB on disk": "{0} installed · {1} MB on disk",
"{0} K": "{0} K",
"{0} MB of {1} MB": "{0} MB of {1} MB",
+ "{0} media file(s) not found": "{0} media file(s) not found",
"{0} minutes ago": "{0} minutes ago",
"{0} months ago": "{0} months ago",
"{0} strokes": "{0} strokes",
diff --git a/engine/crates/concat/locales/hr.json b/engine/crates/concat/locales/hr.json
index 703c5c29..129cba74 100644
--- a/engine/crates/concat/locales/hr.json
+++ b/engine/crates/concat/locales/hr.json
@@ -667,5 +667,10 @@
"{0} months ago": "prije {0} mjeseci",
"{0} strokes": "{0} poteza",
"{0}m {1}s left": "preostalo {0}m {1}s",
- "{0}s left": "preostalo {0}s"
-}
+ "{0}s left": "preostalo {0}s",
+ "Missing Media": "Nedostajući mediji",
+ "{0} media file(s) not found": "{0} medijskih datoteka nije pronađeno",
+ "The following media files could not be located. You can relink them to a new folder or dismiss this dialog to continue with offline placeholders.": "Sljedeće medijske datoteke nisu pronađene. Možete ih ponovno povezati s novom mapom ili odbaciti ovaj dijalog da nastavite s offline placeholderima.",
+ "Dismiss": "Odbaci",
+ "Relink All…": "Ponovno poveži sve…"
+}
\ No newline at end of file
diff --git a/engine/crates/concat/ui/dialogs/relink.slint b/engine/crates/concat/ui/dialogs/relink.slint
index 6d0da39c..92ae03d7 100644
--- a/engine/crates/concat/ui/dialogs/relink.slint
+++ b/engine/crates/concat/ui/dialogs/relink.slint
@@ -5,7 +5,6 @@ import { I18n } from "../i18n.slint";
import { Theme } from "../theme/theme.slint";
import { Glyph } from "../icons.slint";
import { Button, DialogSection, Modal } from "../primitives/modal.slint";
-import { TextButton } from "../primitives/panel.slint";
export struct MissingMediaItem {
id: string,
@@ -26,13 +25,13 @@ export component RelinkDialog inherits Modal {
open: root.data.open;
title: I18n.t("Missing Media");
- glyph: Glyph.warning;
+ glyph: Glyph.info;
surface-width: 600px;
VerticalLayout {
DialogSection {
first: true;
- title: I18n.t1("{0} media file(s) not found", data.items.length);
+ title: I18n.t1("{0} media file(s) not found", "" + data.items.length);
Text {
text: I18n.t("The following media files could not be located. You can relink them to a new folder or dismiss this dialog to continue with offline placeholders.");
@@ -40,7 +39,6 @@ export component RelinkDialog inherits Modal {
wrap: word-wrap;
}
- // Lista missing fajlova - scrollable ako ih je puno
Flickable {
height: 200px;
viewport-height: items-layout.preferred-height;
@@ -87,14 +85,14 @@ export component RelinkDialog inherits Modal {
spacing: 8px;
Button {
- kind: secondary;
- text: I18n.t("Dismiss");
+ primary: false;
+ label: I18n.t("Dismiss");
clicked => { root.dismiss(); }
}
Button {
- kind: primary;
- text: I18n.t("Relink All…");
+ primary: true;
+ label: I18n.t("Relink All…");
clicked => { root.relink-all(); }
}
}