Skip to content

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

feat(captions): the captions sheet imports and exports SubRip files

chiarorosa13892e8d8325
diff --git a/src/crates/concat/locales/ar.json b/src/crates/concat/locales/ar.json
index ba8f385c..8f049344 100644
--- a/src/crates/concat/locales/ar.json
+++ b/src/crates/concat/locales/ar.json
@@ -8,9 +8,16 @@
"captions.centre": "الوسط",
"captions.clipHasNoFile": "لا يحتوي هذا المقطع على ملف لتفريغه نصيًا",
"captions.clipNoLongerTimeline": "لم يعد المقطع على المخطط الزمني",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "نزّل أولًا نموذج تفريغ نصي من الإعدادات › التفريغ النصي.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "إنشاء تسميات توضيحية",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "جارٍ تحميل النموذج",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "لا يوجد مقطع بصوت في المخطط الزمني",
"captions.nothingSaidClip": "لم يُقَل شيء في ذلك المقطع",
"captions.nothingToCaptionYet": "لا يوجد ما يُضاف له تسميات توضيحية بعد",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "عنوان لكل جملة، يبقى طوال المدة اللازمة لقراءته، واحدًا تلو الآخر على أول مسار فيه متّسع.",
"captions.placement": "الموضع",
"captions.readingTheSound": "جارٍ قراءة صوت المقطع",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "جارٍ التفريغ النصي",
"captions.typeWordsPutScreen": "اكتب الكلمات التي ستظهر على الشاشة…",
"captions.useVoiceFromTimeline": "استخدام الصوت من المخطط الزمني",
diff --git a/src/crates/concat/locales/bn.json b/src/crates/concat/locales/bn.json
index 93d95d1a..a15f066e 100644
--- a/src/crates/concat/locales/bn.json
+++ b/src/crates/concat/locales/bn.json
@@ -8,9 +8,16 @@
"captions.centre": "কেন্দ্রে",
"captions.clipHasNoFile": "এই ক্লিপে ট্রান্সক্রাইব করার মতো কোনো ফাইল নেই",
"captions.clipNoLongerTimeline": "ক্লিপটি আর টাইমলাইনে নেই",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "আগে সেটিংস › ট্রান্সক্রাইবার থেকে একটি ট্রান্সক্রাইবার মডেল ডাউনলোড করুন।",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "ক্যাপশন তৈরি করুন",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "মডেল লোড হচ্ছে",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "টাইমলাইনে শব্দসহ কোনো ক্লিপ নেই",
"captions.nothingSaidClip": "ঐ ক্লিপে কিছু বলা হয়নি",
"captions.nothingToCaptionYet": "এখনও ক্যাপশন করার মতো কিছু নেই",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "প্রতিটি বাক্যের জন্য একটি করে টাইটেল, পড়তে যতক্ষণ লাগে ততক্ষণ ধরে রাখা হয়, জায়গা আছে এমন প্রথম লেনে একের পর এক।",
"captions.placement": "অবস্থান",
"captions.readingTheSound": "ক্লিপের শব্দ পড়া হচ্ছে",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "ট্রান্সক্রাইব করা হচ্ছে",
"captions.typeWordsPutScreen": "স্ক্রিনে দেখানোর শব্দগুলো লিখুন…",
"captions.useVoiceFromTimeline": "টাইমলাইনের কণ্ঠ ব্যবহার করুন",
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index a592bac7..57b7da85 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -8,9 +8,16 @@
"captions.centre": "Mitte",
"captions.clipHasNoFile": "Dieser Clip hat keine Datei zum Transkribieren",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Lade zuerst ein Transkriptionsmodell unter Einstellungen › Transkription herunter.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Untertitel erzeugen",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Modell wird geladen",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Kein Clip auf der Zeitleiste hat Ton",
"captions.nothingSaidClip": "In diesem Clip wurde nichts gesagt",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "Platzierung",
"captions.readingTheSound": "Ton des Clips wird gelesen",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Wird transkribiert",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "Stimme aus der Zeitleiste verwenden",
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index 0bd529f2..ab24f9ac 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -8,9 +8,16 @@
"captions.centre": "Centre",
"captions.clipHasNoFile": "This clip has no file to transcribe",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Download a transcriber model in Settings › Transcriber first.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Generate captions",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Loading the model",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "No clip on the timeline has sound",
"captions.nothingSaidClip": "Nothing was said in that clip",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "Placement",
"captions.readingTheSound": "Reading the clip's sound",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Transcribing",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "Use voice from timeline",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index e3009867..7028ed7f 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -8,9 +8,16 @@
"captions.centre": "Centro",
"captions.clipHasNoFile": "Este clip no tiene archivo que transcribir",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Descarga primero un modelo de transcripción en Ajustes › Transcriptor.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Generar subtítulos",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Cargando el modelo",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Ningún clip de la línea de tiempo tiene sonido",
"captions.nothingSaidClip": "No se dijo nada en ese clip",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "Posición",
"captions.readingTheSound": "Leyendo el sonido del clip",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Transcribiendo",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "Usar la voz de la línea de tiempo",
diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.json
index c17e7726..ef039092 100644
--- a/src/crates/concat/locales/fa.json
+++ b/src/crates/concat/locales/fa.json
@@ -8,9 +8,16 @@
"captions.centre": "مرکز",
"captions.clipHasNoFile": "این کلیپ هیچ فایلای برای رونویسی ندارد",
"captions.clipNoLongerTimeline": "این کلیپ دیگر روی تایم‌لاین نیست",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "ابتدا یک مدل Transcriber را از «تنظیمات › Transcriber» دانلود کنید.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "ساخت زیرنویس‌ها",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "در حال بارگذاری مدل",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "هیچ کلیپی در خط زمان صدا ندارد",
"captions.nothingSaidClip": "در آن کلیپ چیزی گفته نشده است",
"captions.nothingToCaptionYet": "هنوز چیزی برای زیرنویس کردن وجود ندارد",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "برای هر جمله یک عنوان ساخته می‌شود و به‌اندازه زمان لازم برای خواندن نمایش داده می‌شود؛ پشت سر هم روی اولین لاین دارای فضای کافی.",
"captions.placement": "جای‌گذاری",
"captions.readingTheSound": "در حال خواندن صدای کلیپ",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "در حال رونویسی",
"captions.typeWordsPutScreen": "متنی را که باید روی صفحه نمایش داده شود وارد کنید…",
"captions.useVoiceFromTimeline": "استفاده از صدای خط زمان",
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index 34eaeead..04cebbe0 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -8,9 +8,16 @@
"captions.centre": "Centre",
"captions.clipHasNoFile": "Ce clip n'a pas de fichier à transcrire",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Téléchargez d'abord un modèle de transcription dans Réglages › Transcription.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Générer les sous-titres",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Chargement du modèle",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Aucun clip de la timeline n'a de son",
"captions.nothingSaidClip": "Rien n'a été dit dans ce clip",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "Position",
"captions.readingTheSound": "Lecture du son du clip",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Transcription en cours",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "Utiliser la voix de la timeline",
diff --git a/src/crates/concat/locales/he.json b/src/crates/concat/locales/he.json
index ac061e66..91310dc7 100644
--- a/src/crates/concat/locales/he.json
+++ b/src/crates/concat/locales/he.json
@@ -8,9 +8,16 @@
"captions.centre": "מרכז",
"captions.clipHasNoFile": "לקליפ הזה אין קובץ לתמלול",
"captions.clipNoLongerTimeline": "הקליפ כבר לא נמצא בציר הזמן",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "יש להוריד קודם מודל תמלול בהגדרות › מתמלל.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "יצירת כתוביות",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "טוען את המודל",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "אין בציר הזמן קליפ עם קול",
"captions.nothingSaidClip": "לא נאמר דבר בקליפ הזה",
"captions.nothingToCaptionYet": "אין עדיין למה להוסיף כתוביות",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "כותרת אחת לכל משפט, מוצגת כל עוד צריך כדי לקרוא אותה, בזו אחר זו בערוץ הראשון שיש בו מקום.",
"captions.placement": "מיקום",
"captions.readingTheSound": "קורא את הצליל של הקליפ",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "מתמלל",
"captions.typeWordsPutScreen": "יש להקליד את המילים שיופיעו על המסך…",
"captions.useVoiceFromTimeline": "שימוש בקול מציר הזמן",
diff --git a/src/crates/concat/locales/hi.json b/src/crates/concat/locales/hi.json
index eb3e85d8..63546b5b 100644
--- a/src/crates/concat/locales/hi.json
+++ b/src/crates/concat/locales/hi.json
@@ -8,9 +8,16 @@
"captions.centre": "बीच में",
"captions.clipHasNoFile": "इस क्लिप में ट्रांसक्राइब करने के लिए कोई फ़ाइल नहीं है",
"captions.clipNoLongerTimeline": "यह क्लिप अब टाइमलाइन पर नहीं है",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "पहले सेटिंग › ट्रांसक्राइबर में एक ट्रांसक्राइबर मॉडल डाउनलोड करें।",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "कैप्शन बनाएं",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "मॉडल लोड हो रहा है",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "टाइमलाइन पर किसी क्लिप में आवाज़ नहीं है",
"captions.nothingSaidClip": "उस क्लिप में कुछ नहीं बोला गया",
"captions.nothingToCaptionYet": "अभी कैप्शन बनाने के लिए कुछ नहीं है",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "हर वाक्य के लिए एक टाइटल, जितनी देर पढ़ने में लगे उतनी देर तक, एक के बाद एक, खाली जगह वाली पहली लेन पर।",
"captions.placement": "स्थान",
"captions.readingTheSound": "क्लिप की आवाज़ पढ़ी जा रही है",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "ट्रांसक्राइब हो रहा है",
"captions.typeWordsPutScreen": "स्क्रीन पर दिखाने के लिए शब्द लिखें…",
"captions.useVoiceFromTimeline": "टाइमलाइन की आवाज़ इस्तेमाल करें",
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index 7db1d197..e40342a4 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -8,9 +8,16 @@
"captions.centre": "Sredina",
"captions.clipHasNoFile": "Ovaj klip nema datoteku za transkripciju",
"captions.clipNoLongerTimeline": "Klip više nije na vremenskoj liniji",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Prvo preuzmite model za transkripciju u Postavke › Transkriber.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Generiraj titlove",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Učitavanje modela",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Nijedan isječak na vremenskoj crti nema zvuk",
"captions.nothingSaidClip": "U tom klipu ništa nije rečeno",
"captions.nothingToCaptionYet": "Još ništa za titlove",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Jedan naslov po rečenici, držan dok se ne pročita, jedan za drugim na prvoj traci s mjesta.",
"captions.placement": "Smještaj",
"captions.readingTheSound": "Čitanje zvuka isječka",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Transkripcija",
"captions.typeWordsPutScreen": "Upišite riječi za prikaz na zaslonu…",
"captions.useVoiceFromTimeline": "Koristi glas s vremenske crte",
diff --git a/src/crates/concat/locales/id.json b/src/crates/concat/locales/id.json
index 411293da..1a875886 100644
--- a/src/crates/concat/locales/id.json
+++ b/src/crates/concat/locales/id.json
@@ -8,9 +8,16 @@
"captions.centre": "Tengah",
"captions.clipHasNoFile": "Klip ini tidak punya file untuk ditranskripsi",
"captions.clipNoLongerTimeline": "Klip sudah tidak ada di linimasa",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Unduh dulu model transkripsi di Pengaturan › Transkripsi.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Buat subtitel",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Memuat model",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Tidak ada klip bersuara di linimasa",
"captions.nothingSaidClip": "Tidak ada ucapan di klip itu",
"captions.nothingToCaptionYet": "Belum ada yang bisa diberi subtitel",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Satu judul untuk setiap kalimat, ditampilkan selama waktu yang dibutuhkan untuk membacanya, berurutan di lajur pertama yang masih lowong.",
"captions.placement": "Penempatan",
"captions.readingTheSound": "Membaca suara klip",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Mentranskripsi",
"captions.typeWordsPutScreen": "Ketik kata-kata yang akan tampil di layar…",
"captions.useVoiceFromTimeline": "Gunakan suara dari linimasa",
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index f1f213a3..643ba6d4 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -8,9 +8,16 @@
"captions.centre": "Centro",
"captions.clipHasNoFile": "Questa clip non ha un file da trascrivere",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Scarica prima un modello di trascrizione in Impostazioni › Trascrizione.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Genera sottotitoli",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Caricamento del modello",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Nessuna clip nella timeline ha audio",
"captions.nothingSaidClip": "In quella clip non è stato detto nulla",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "Posizione",
"captions.readingTheSound": "Lettura del suono della clip",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Trascrizione in corso",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "Usa la voce dalla timeline",
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index f092d184..9f9e4ed9 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -8,9 +8,16 @@
"captions.centre": "中央",
"captions.clipHasNoFile": "このクリップには文字起こしするファイルがありません",
"captions.clipNoLongerTimeline": "クリップはタイムライン上にありません",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "まず「設定 › 文字起こし」でモデルをダウンロードしてください。",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "字幕を生成",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "モデルを読み込み中",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "音声のあるクリップがタイムラインにありません",
"captions.nothingSaidClip": "そのクリップには発話がありませんでした",
"captions.nothingToCaptionYet": "まだ字幕を付けるものがありません",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "一文ごとにタイトルを一つ、読み終えるのに必要な時間だけ表示し、空いている最初のレーンに順番に並べます。",
"captions.placement": "配置",
"captions.readingTheSound": "クリップの音声を読み込み中",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "文字起こし中",
"captions.typeWordsPutScreen": "画面に表示する言葉を入力…",
"captions.useVoiceFromTimeline": "タイムラインの音声を使う",
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index c6bdd1bb..7dd0cac8 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -8,9 +8,16 @@
"captions.centre": "가운데",
"captions.clipHasNoFile": "이 클립에는 받아쓸 파일이 없습니다",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "먼저 설정 › 받아쓰기에서 모델을 다운로드하세요.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "자막 생성",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "모델 불러오는 중",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "타임라인에 소리가 있는 클립이 없습니다",
"captions.nothingSaidClip": "그 클립에는 말소리가 없습니다",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "배치",
"captions.readingTheSound": "클립 소리 읽는 중",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "받아쓰는 중",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "타임라인의 음성 사용",
diff --git a/src/crates/concat/locales/nl.json b/src/crates/concat/locales/nl.json
index 552a7d5c..9a976eef 100644
--- a/src/crates/concat/locales/nl.json
+++ b/src/crates/concat/locales/nl.json
@@ -8,9 +8,16 @@
"captions.centre": "Midden",
"captions.clipHasNoFile": "Deze clip heeft geen bestand om te transcriberen",
"captions.clipNoLongerTimeline": "De clip staat niet meer op de tijdlijn",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Download eerst een transcriptiemodel via Instellingen › Transcriptie.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Ondertitels genereren",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Model laden",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Geen clip op de tijdlijn heeft geluid",
"captions.nothingSaidClip": "Er wordt niets gezegd in die clip",
"captions.nothingToCaptionYet": "Nog niets om te ondertitelen",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Eén titel per zin, zo lang in beeld als nodig is om hem te lezen, na elkaar op het eerste spoor met ruimte.",
"captions.placement": "Plaatsing",
"captions.readingTheSound": "Geluid van de clip lezen",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Transcriberen",
"captions.typeWordsPutScreen": "Typ de woorden die in beeld moeten komen…",
"captions.useVoiceFromTimeline": "Stem uit de tijdlijn gebruiken",
diff --git a/src/crates/concat/locales/pl.json b/src/crates/concat/locales/pl.json
index 72f355de..5fecf330 100644
--- a/src/crates/concat/locales/pl.json
+++ b/src/crates/concat/locales/pl.json
@@ -8,9 +8,16 @@
"captions.centre": "Środek",
"captions.clipHasNoFile": "Ten klip nie ma pliku do transkrypcji",
"captions.clipNoLongerTimeline": "Klipu nie ma już na osi czasu",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Najpierw pobierz model transkrypcji w Ustawienia › Transkrypcja.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Generuj napisy",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Ładowanie modelu",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Żaden klip na osi czasu nie ma dźwięku",
"captions.nothingSaidClip": "W tym klipie nic nie zostało powiedziane",
"captions.nothingToCaptionYet": "Na razie nie ma czego podpisać",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Jeden napis na zdanie, widoczny tak długo, jak trzeba, by go przeczytać, jeden po drugim na pierwszej ścieżce z wolnym miejscem.",
"captions.placement": "Położenie",
"captions.readingTheSound": "Odczytywanie dźwięku klipu",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Transkrypcja",
"captions.typeWordsPutScreen": "Wpisz słowa, które pojawią się na ekranie…",
"captions.useVoiceFromTimeline": "Użyj głosu z osi czasu",
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index 3ed50d29..67cf337d 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -8,9 +8,16 @@
"captions.centre": "Centro",
"captions.clipHasNoFile": "Este clipe não tem arquivo para transcrever",
"captions.clipNoLongerTimeline": "O clipe não está mais na linha do tempo",
+ "captions.couldNotReadSubtitles": "Não foi possível ler as legendas: {0}",
+ "captions.couldNotWriteSubtitles": "Não foi possível gravar as legendas: {0}",
"captions.downloadTranscriberModelFirst": "Baixe primeiro um modelo de transcrição em Configurações › Transcrição.",
+ "captions.exportSrt": "Exportar SRT…",
+ "captions.exportedCaptions": "{0} legendas gravadas",
"captions.generateCaptions": "Gerar legendas",
+ "captions.importSrt": "Importar SRT…",
"captions.loadingTheModel": "Carregando o modelo",
+ "captions.noCaptionsToExport": "Nenhuma legenda na linha do tempo para exportar",
+ "captions.noSubtitlesInFile": "O arquivo não tem legendas",
"captions.noVoiceOnTimeline": "Nenhum clipe na linha do tempo tem som",
"captions.nothingSaidClip": "Nada foi dito nesse clipe",
"captions.nothingToCaptionYet": "Ainda não há nada para legendar",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Um título por frase, exibido pelo tempo necessário para ler, um após o outro na primeira faixa com espaço.",
"captions.placement": "Posição",
"captions.readingTheSound": "Lendo o som do clipe",
+ "captions.subRipSubtitles": "Legendas SubRip",
"captions.transcribing": "Transcrevendo",
"captions.typeWordsPutScreen": "Digite as palavras que vão aparecer na tela…",
"captions.useVoiceFromTimeline": "Usar a voz da linha do tempo",
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index 380178e6..e025d3b5 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -8,9 +8,16 @@
"captions.centre": "Центр",
"captions.clipHasNoFile": "У этого клипа нет файла для распознавания",
"captions.clipNoLongerTimeline": "Клипа больше нет на таймлайне",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Сначала скачайте модель распознавания в Настройки › Распознавание.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Создать субтитры",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Загрузка модели",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "На таймлайне нет клипов со звуком",
"captions.nothingSaidClip": "В этом клипе ничего не сказано",
"captions.nothingToCaptionYet": "Пока нечего субтитровать",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Один титр на предложение, держится столько, сколько нужно, чтобы прочитать, один за другим на первой свободной дорожке.",
"captions.placement": "Расположение",
"captions.readingTheSound": "Чтение звука клипа",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Распознавание",
"captions.typeWordsPutScreen": "Введите слова, которые появятся на экране…",
"captions.useVoiceFromTimeline": "Использовать голос с таймлайна",
diff --git a/src/crates/concat/locales/th.json b/src/crates/concat/locales/th.json
index aafd2364..13ce863f 100644
--- a/src/crates/concat/locales/th.json
+++ b/src/crates/concat/locales/th.json
@@ -8,9 +8,16 @@
"captions.centre": "กึ่งกลาง",
"captions.clipHasNoFile": "คลิปนี้ไม่มีไฟล์ให้ถอดเสียง",
"captions.clipNoLongerTimeline": "คลิปนี้ไม่อยู่บนไทม์ไลน์แล้ว",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "ดาวน์โหลดโมเดลถอดเสียงก่อนที่ การตั้งค่า › ตัวถอดเสียง",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "สร้างคำบรรยาย",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "กำลังโหลดโมเดล",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "ไม่มีคลิปที่มีเสียงบนไทม์ไลน์",
"captions.nothingSaidClip": "ไม่มีเสียงพูดในคลิปนั้น",
"captions.nothingToCaptionYet": "ยังไม่มีอะไรให้ใส่คำบรรยาย",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "ไตเติลหนึ่งรายการต่อหนึ่งประโยค แสดงค้างไว้นานพอให้อ่านทัน เรียงต่อกันบนเลนแรกที่มีที่ว่าง",
"captions.placement": "ตำแหน่งที่วาง",
"captions.readingTheSound": "กำลังอ่านเสียงของคลิป",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "กำลังถอดเสียง",
"captions.typeWordsPutScreen": "พิมพ์ข้อความที่จะแสดงบนจอ…",
"captions.useVoiceFromTimeline": "ใช้เสียงพูดจากไทม์ไลน์",
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index 988b83a5..b202e674 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -8,9 +8,16 @@
"captions.centre": "Orta",
"captions.clipHasNoFile": "Bu klibin yazıya dökülecek dosyası yok",
"captions.clipNoLongerTimeline": "The clip is no longer on the timeline",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Önce Ayarlar › Yazıya dökme bölümünden bir model indirin.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Altyazı oluştur",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Model yükleniyor",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Zaman çizelgesinde sesi olan klip yok",
"captions.nothingSaidClip": "O klipte hiçbir şey söylenmedi",
"captions.nothingToCaptionYet": "Nothing to caption yet",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "One title per sentence, held for as long as it takes to read, one after another on the first lane with room.",
"captions.placement": "Yerleşim",
"captions.readingTheSound": "Klibin sesi okunuyor",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Yazıya dökülüyor",
"captions.typeWordsPutScreen": "Type the words to put on screen…",
"captions.useVoiceFromTimeline": "Zaman çizelgesindeki sesi kullan",
diff --git a/src/crates/concat/locales/uk.json b/src/crates/concat/locales/uk.json
index 8cb161ca..3168b8bd 100644
--- a/src/crates/concat/locales/uk.json
+++ b/src/crates/concat/locales/uk.json
@@ -8,9 +8,16 @@
"captions.centre": "Центр",
"captions.clipHasNoFile": "У цього кліпу немає файлу для розпізнавання",
"captions.clipNoLongerTimeline": "Кліпу більше немає на часовій шкалі",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Спершу завантажте модель розпізнавання в Налаштування › Розпізнавання.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Створити субтитри",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Завантаження моделі",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "На часовій шкалі немає кліпів зі звуком",
"captions.nothingSaidClip": "У цьому кліпі нічого не сказано",
"captions.nothingToCaptionYet": "Поки немає тексту для субтитрів",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Один титр на речення, рівно стільки, скільки треба, щоб його прочитати, один за одним на першій вільній доріжці.",
"captions.placement": "Розташування",
"captions.readingTheSound": "Читання звуку кліпу",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Розпізнавання",
"captions.typeWordsPutScreen": "Введіть слова, які з’являться на екрані…",
"captions.useVoiceFromTimeline": "Використати голос із часової шкали",
diff --git a/src/crates/concat/locales/ur.json b/src/crates/concat/locales/ur.json
index 6a146cc4..21e41fb4 100644
--- a/src/crates/concat/locales/ur.json
+++ b/src/crates/concat/locales/ur.json
@@ -8,9 +8,16 @@
"captions.centre": "درمیان",
"captions.clipHasNoFile": "اس کلپ میں ٹرانسکرائب کرنے کے لیے کوئی فائل نہیں",
"captions.clipNoLongerTimeline": "یہ کلپ اب ٹائم لائن پر نہیں ہے",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "پہلے ترتیبات › ٹرانسکرائبر میں سے کوئی ٹرانسکرائبر ماڈل ڈاؤن لوڈ کریں۔",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "کیپشن بنائیں",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "ماڈل لوڈ ہو رہا ہے",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "ٹائم لائن پر کسی کلپ میں آواز نہیں",
"captions.nothingSaidClip": "اس کلپ میں کچھ نہیں بولا گیا",
"captions.nothingToCaptionYet": "ابھی کیپشن کے لیے کچھ نہیں",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "ہر جملے کے لیے ایک ٹائٹل، جو پڑھنے میں لگنے والے وقت تک رہتا ہے، ایک کے بعد ایک پہلی ایسی لین پر جس میں جگہ ہو۔",
"captions.placement": "جگہ",
"captions.readingTheSound": "کلپ کی آواز پڑھی جا رہی ہے",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "ٹرانسکرائب ہو رہا ہے",
"captions.typeWordsPutScreen": "اسکرین پر دکھانے کے لیے الفاظ لکھیں…",
"captions.useVoiceFromTimeline": "ٹائم لائن کی آواز استعمال کریں",
diff --git a/src/crates/concat/locales/vi.json b/src/crates/concat/locales/vi.json
index 197994c1..d4affdcc 100644
--- a/src/crates/concat/locales/vi.json
+++ b/src/crates/concat/locales/vi.json
@@ -8,9 +8,16 @@
"captions.centre": "Căn giữa",
"captions.clipHasNoFile": "Đoạn này không có tệp để phiên âm",
"captions.clipNoLongerTimeline": "Đoạn phim không còn nằm trên dòng thời gian nữa",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "Trước tiên, hãy tải mô hình phiên âm trong Cài đặt › Công cụ phiên âm.",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "Tạo phụ đề",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "Đang tải mô hình",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "Không có clip nào trên dòng thời gian có âm thanh",
"captions.nothingSaidClip": "Không có lời thoại nào trong đoạn phim đó",
"captions.nothingToCaptionYet": "Chưa có gì để tạo phụ đề",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "Tạo một tiêu đề cho mỗi câu, giữ đủ lâu để người xem đọc, lần lượt trên track đầu tiên còn chỗ.",
"captions.placement": "Vị trí",
"captions.readingTheSound": "Đang đọc âm thanh của clip",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "Đang chuyển đổi",
"captions.typeWordsPutScreen": "Nhập các từ muốn hiển thị trên màn hình…",
"captions.useVoiceFromTimeline": "Dùng giọng nói từ dòng thời gian",
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index cfd44498..e70778c9 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -8,9 +8,16 @@
"captions.centre": "中心",
"captions.clipHasNoFile": "此片段没有可转录的文件",
"captions.clipNoLongerTimeline": "该片段已不在时间线上",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "请先在“设置 › 转录器”中下载转录模型。",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "生成字幕",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "正在加载模型",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "时间线上没有带声音的片段",
"captions.nothingSaidClip": "该片段中没有语音",
"captions.nothingToCaptionYet": "暂无可添加字幕的内容",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "每句一个标题,停留足够阅读的时长,依次排列在第一条有空位的轨道上。",
"captions.placement": "位置",
"captions.readingTheSound": "正在读取片段的声音",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "正在转录",
"captions.typeWordsPutScreen": "输入要显示在屏幕上的文字…",
"captions.useVoiceFromTimeline": "使用时间线中的语音",
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index bda01020..13a45e71 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -8,9 +8,16 @@
"captions.centre": "中心",
"captions.clipHasNoFile": "此片段沒有可轉錄的檔案",
"captions.clipNoLongerTimeline": "該片段已不在時間軸上",
+ "captions.couldNotReadSubtitles": "Could not read the subtitles: {0}",
+ "captions.couldNotWriteSubtitles": "Could not write the subtitles: {0}",
"captions.downloadTranscriberModelFirst": "請先在「設定 › 轉錄器」中下載轉錄模型。",
+ "captions.exportSrt": "Export SRT…",
+ "captions.exportedCaptions": "Wrote {0} captions",
"captions.generateCaptions": "產生字幕",
+ "captions.importSrt": "Import SRT…",
"captions.loadingTheModel": "正在載入模型",
+ "captions.noCaptionsToExport": "No captions on the timeline to export",
+ "captions.noSubtitlesInFile": "The file has no subtitles",
"captions.noVoiceOnTimeline": "時間軸上沒有帶聲音的片段",
"captions.nothingSaidClip": "該片段中沒有語音",
"captions.nothingToCaptionYet": "尚無可加上字幕的內容",
@@ -18,6 +25,7 @@
"captions.oneTitlePerSentence": "每句一個標題,停留足夠閱讀的時間,依序排列在第一條有空位的軌道上。",
"captions.placement": "位置",
"captions.readingTheSound": "正在讀取片段的聲音",
+ "captions.subRipSubtitles": "SubRip subtitles",
"captions.transcribing": "正在轉錄",
"captions.typeWordsPutScreen": "輸入要顯示在螢幕上的文字…",
"captions.useVoiceFromTimeline": "使用時間軸中的語音",
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rs
index dbf21d55..b5eade3f 100644
--- a/src/crates/concat/src/lib.rs
+++ b/src/crates/concat/src/lib.rs
@@ -1681,6 +1681,12 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::
app.on_captions_cancel(on_window!(|state| {
state.handle(Msg::Captions(CaptionsMsg::Cancel));
}));
+ app.on_captions_import_srt(on_window!(|state| {
+ state.handle(Msg::Captions(CaptionsMsg::ImportSrt));
+ }));
+ app.on_captions_export_srt(on_window!(|state| {
+ state.handle(Msg::Captions(CaptionsMsg::ExportSrt));
+ }));
app.on_speech_closed(on_window!(|state| {
state.handle(Msg::Speech(SpeechMsg::Close));
}));
diff --git a/src/crates/concat/src/panes/captions.rs b/src/crates/concat/src/panes/captions.rs
index f8198f97..c2b3c499 100644
--- a/src/crates/concat/src/panes/captions.rs
+++ b/src/crates/concat/src/panes/captions.rs
@@ -12,11 +12,16 @@
//! one undo step.
//! The transcriber runs on a worker and reports as
//! [`CaptionsMsg::Progress`], ending as [`CaptionsMsg::Finished`].
+//!
+//! The sheet also reads a SubRip file in as captions, with the same look,
+//! and writes the timeline's captions out as one.
+use std::path::{Path, PathBuf};
use std::sync::Arc;
use concat_project::Command;
-use concat_project::model::TextStyle;
+use concat_project::model::{ClipKind, TextStyle};
+use concat_project::srt;
use concat_speech::JobStage;
use concat_speech::transcribe::Segment;
@@ -61,6 +66,14 @@ pub enum CaptionsMsg {
Progress(JobStage),
/// The transcriber's worker is done: what was said, or why not.
Finished(Result<Vec<Segment>, String>),
+ /// Asks for a SubRip file to read in.
+ ImportSrt,
+ /// The SubRip file chosen: its cues as captions.
+ ImportSrtFrom(PathBuf),
+ /// Asks where to write the captions as SubRip.
+ ExportSrt,
+ /// Where they go.
+ ExportSrtTo(PathBuf),
}
/// The clip a transcription is running over, as the finished segments
@@ -207,6 +220,124 @@ impl CaptionsPane {
Err(error) => self.message = error,
}
}
+ // Asked with the studio unborrowed, on a turn of its own; see
+ // `host::after_dialog`.
+ CaptionsMsg::ImportSrt => crate::host::pick_files_then(
+ t("captions.importSrt"),
+ Some((t("captions.subRipSubtitles"), &["srt"])),
+ |studio, _, _, paths| {
+ if let Some(path) = paths.into_iter().next() {
+ studio.handle(Msg::Captions(CaptionsMsg::ImportSrtFrom(path)));
+ }
+ },
+ ),
+ CaptionsMsg::ImportSrtFrom(path) => self.import_srt(studio, &path),
+ CaptionsMsg::ExportSrt => self.ask_export_srt(studio),
+ CaptionsMsg::ExportSrtTo(path) => self.export_srt(studio, &path),
+ }
+ }
+
+ /// A SubRip file's cues as captions where the file times them, with
+ /// the sheet's look: one batch, one undo step. A file that is not
+ /// UTF-8 is read as best it can be.
+ fn import_srt(&mut self, studio: &mut Studio, path: &Path) {
+ let cues = std::fs::read(path)
+ .map_err(|error| error.to_string())
+ .and_then(|bytes| {
+ srt::parse(&String::from_utf8_lossy(&bytes)).map_err(|error| error.to_string())
+ });
+ let cues = match cues {
+ Ok(cues) => cues,
+ Err(error) => {
+ log::warn!("captions: could not read {}: {error}", path.display());
+ self.message = tf("captions.couldNotReadSubtitles", &[&error]);
+ return;
+ }
+ };
+ let look = self.look();
+ let base = studio.prefs.title_style.clone();
+ let commands: Vec<Command> = cues
+ .into_iter()
+ .filter(|cue| !cue.text.trim().is_empty())
+ .map(|cue| {
+ caption_clip(
+ cue.text.trim().to_owned(),
+ cue.start,
+ (cue.end - cue.start).max(0.2),
+ look,
+ base.as_ref(),
+ )
+ })
+ .collect();
+ if commands.is_empty() {
+ self.message = t("captions.noSubtitlesInFile");
+ return;
+ }
+ let count = commands.len();
+ self.open = false;
+ studio.apply(Command::Batch { commands });
+ studio.notify(&tf("captions.addedCaptions", &[&count]), false);
+ }
+
+ /// Asks where to write the captions, offering the project's folder; a
+ /// phone, with no such dialog, writes them there.
+ fn ask_export_srt(&mut self, studio: &mut Studio) {
+ if srt::title_cues(studio.timeline(), export_lane(studio).as_deref()).is_empty() {
+ self.message = t("captions.noCaptionsToExport");
+ return;
+ }
+ let Some(folder) = studio
+ .session
+ .as_ref()
+ .map(|session| PathBuf::from(session.path()))
+ else {
+ return;
+ };
+ let title = t("captions.exportSrt");
+ let family = t("captions.subRipSubtitles");
+ crate::host::after_dialog(
+ move || {
+ if cfg!(any(target_os = "android", target_os = "ios")) {
+ return Some(folder.join("captions.srt"));
+ }
+ let chosen = crate::platform::save_file(
+ &title,
+ &folder,
+ "captions.srt",
+ (family.as_str(), &["srt"]),
+ )?;
+ Some(
+ if chosen
+ .extension()
+ .is_some_and(|ext| ext.eq_ignore_ascii_case("srt"))
+ {
+ chosen
+ } else {
+ chosen.with_extension("srt")
+ },
+ )
+ },
+ |studio, _, _, path| studio.handle(Msg::Captions(CaptionsMsg::ExportSrtTo(path))),
+ );
+ }
+
+ /// Writes the captions to `path` as SubRip.
+ fn export_srt(&mut self, studio: &mut Studio, path: &Path) {
+ let cues = srt::title_cues(studio.timeline(), export_lane(studio).as_deref());
+ match std::fs::write(path, srt::write(&cues)) {
+ Ok(()) => {
+ log::info!(
+ "captions: wrote {} cue(s) to {}",
+ cues.len(),
+ path.display()
+ );
+ self.open = false;
+ studio.notify(&tf("captions.exportedCaptions", &[&cues.len()]), false);
+ }
+ Err(error) => {
+ log::warn!("captions: could not write {}: {error}", path.display());
+ self.message = tf("captions.couldNotWriteSubtitles", &[&error]);
+ }
}
}
@@ -380,6 +511,16 @@ impl CaptionsPane {
}
}
+/// The lane whose titles are written out as captions: the selected
+/// title's, or None - every lane - when no title is selected.
+fn export_lane(studio: &Studio) -> Option<String> {
+ studio
+ .sole_selection()
+ .and_then(|id| studio.clip(&id))
+ .filter(|clip| clip.kind == ClipKind::Text)
+ .map(|clip| clip.track_id.clone())
+}
+
/// A clip on the timeline whose voice can be captioned, as the sheet's
/// list shows it.
struct Source {
diff --git a/src/crates/concat/ui/app.slint b/src/crates/concat/ui/app.slint
index e0839338..88fd58ac 100644
--- a/src/crates/concat/ui/app.slint
+++ b/src/crates/concat/ui/app.slint
@@ -295,6 +295,8 @@ export component App inherits Window {
callback captions-size-changed(index: int);
callback captions-begin();
callback captions-cancel();
+ callback captions-import-srt();
+ callback captions-export-srt();
in property <SpeechSheetData> speech;
in property <[string]> speech-models;
@@ -892,6 +894,8 @@ export component App inherits Window {
size-changed(index) => { root.captions-size-changed(index); }
begin => { root.captions-begin(); }
cancel => { root.captions-cancel(); }
+ import-srt => { root.captions-import-srt(); }
+ export-srt => { root.captions-export-srt(); }
}
SpeechDialog {
diff --git a/src/crates/concat/ui/dialogs/captions.slint b/src/crates/concat/ui/dialogs/captions.slint
index c23b6013..b62d4cc7 100644
--- a/src/crates/concat/ui/dialogs/captions.slint
+++ b/src/crates/concat/ui/dialogs/captions.slint
@@ -70,6 +70,8 @@ export component CaptionsDialog inherits Modal {
callback size-changed(index: int);
callback begin();
callback cancel();
+ callback import-srt();
+ callback export-srt();
property <bool> from-voice: root.data.from-voice;
@@ -335,6 +337,32 @@ export component CaptionsDialog inherits Modal {
enabled: root.from-voice ? root.data.ready && root.data.source >= 0 : root.draft != "";
clicked => { root.begin(); }
}
+
+ // Captions as a SubRip file: one read in as titles with the
+ // look above, timed as the file says; or the timeline's titles
+ // written out, only the selected title's lane when one is
+ // selected.
+ if !root.data.running: HorizontalLayout {
+ spacing: 8px;
+
+ Button {
+ horizontal-stretch: 1;
+ block: true;
+ ghost: true;
+ glyph: Glyph.import;
+ label: I18n.t("captions.importSrt");
+ clicked => { root.import-srt(); }
+ }
+
+ Button {
+ horizontal-stretch: 1;
+ block: true;
+ ghost: true;
+ glyph: Glyph.export;
+ label: I18n.t("captions.exportSrt");
+ clicked => { root.export-srt(); }
+ }
+ }
}
}
}