@clipen/clipen-cli 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/apps/web/dist/assets/{index-CaxEZKLc.css → index-CJ80KHsQ.css} +1 -1
- package/apps/web/dist/assets/index-C_4u_hVf.js +16 -0
- package/apps/web/dist/index.html +2 -2
- package/bin/clipen.js +237 -78
- package/package.json +8 -2
- package/pyproject.toml +1 -1
- package/src/clipen/__init__.py +1 -1
- package/src/clipen/analysis/qwen_worker.py +13 -4
- package/src/clipen/analysis/setup.py +26 -1
- package/src/clipen/analysis/setup_cli.py +59 -10
- package/src/clipen/bootstrap.py +411 -176
- package/src/clipen/cli.py +40 -15
- package/src/clipen/controller/app.py +37 -17
- package/src/clipen/controller/server.py +65 -27
- package/src/clipen/editing/agent_repository.py +8 -0
- package/src/clipen/editing/alignment_setup.py +40 -15
- package/src/clipen/editing/change_report.py +17 -0
- package/src/clipen/editing/coordinator.py +6 -0
- package/src/clipen/editing/evidence_jobs.py +3 -1
- package/src/clipen/editing/history_changes.py +56 -27
- package/src/clipen/editing/production_catalog.py +3 -3
- package/src/clipen/editing/production_media.py +18 -0
- package/src/clipen/editing/production_progress.py +46 -3
- package/src/clipen/editing/production_tools.py +3 -1
- package/src/clipen/editing/versions.py +53 -10
- package/src/clipen/finishing/audio.py +59 -45
- package/src/clipen/i18n.py +155 -0
- package/src/clipen/locale_en.py +528 -0
- package/src/clipen/mcp_editing/__main__.py +8 -0
- package/src/clipen/own_python.py +43 -0
- package/src/clipen/projects/models.py +16 -1
- package/src/clipen/projects/picker.py +3 -1
- package/src/clipen/projects/storage.py +17 -1
- package/src/clipen/providers/claude_editing.py +3 -1
- package/src/clipen/providers/codex_editing.py +3 -1
- package/src/clipen/providers/editing_agent.py +36 -1
- package/src/clipen/providers/liveness.py +39 -0
- package/src/clipen/rendering/custom_components.py +104 -2
- package/src/clipen/rendering/custom_render.py +45 -0
- package/src/clipen/skills/builtin/display.en.json +89 -0
- package/src/clipen/skills/builtin/references/graphics.md +1 -2
- package/src/clipen/skills/catalog.py +22 -0
- package/src/clipen/terminal.py +344 -0
- package/src/clipen/workspace.py +97 -28
- package/apps/web/dist/assets/index-C3Zw0WaM.js +0 -14
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
"""English for Clipen's error messages, keyed by their Chinese text.
|
|
2
|
+
|
|
3
|
+
``ProjectError`` messages are written in Chinese where they are raised; when the reader asked for
|
|
4
|
+
English (see :mod:`clipen.i18n`) the message is looked up here. A test checks that every literal
|
|
5
|
+
message raised in Clipen has an entry, so a new message cannot ship in Chinese only.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import re
|
|
9
|
+
|
|
10
|
+
MESSAGES = {
|
|
11
|
+
# analysis/artifacts.py
|
|
12
|
+
"Clipen 拒絕保存不安全的分析成果。": "Clipen refused to save unsafe analysis results.",
|
|
13
|
+
"分析成果超過這次工作的安全容量。": "The analysis results are larger than this job allows.",
|
|
14
|
+
"找不到分析成果。": "Analysis results not found.",
|
|
15
|
+
"Clipen 的分析成果儲存位置不安全。": "Clipen's analysis storage is not safe to use.",
|
|
16
|
+
"找不到這個作品。": "Project not found.",
|
|
17
|
+
"Clipen 偵測到損壞的分析成果。": "Clipen found damaged analysis results.",
|
|
18
|
+
"Clipen 找不到待保存的分析成果。": "Clipen could not find the analysis results to save.",
|
|
19
|
+
"Clipen 無法讀取分析成果。": "Clipen could not read the analysis results.",
|
|
20
|
+
"Clipen 無法保存分析成果。": "Clipen could not save the analysis results.",
|
|
21
|
+
# analysis/service.py
|
|
22
|
+
"請確認主要語言與專有詞設定。": "Check the main language and glossary settings.",
|
|
23
|
+
"Clipen 找不到已準備的音訊。": "Clipen could not find the prepared audio.",
|
|
24
|
+
"Clipen 找不到逐字稿切塊。": "Clipen could not find the transcript chunks.",
|
|
25
|
+
# analysis/storage.py
|
|
26
|
+
"目前沒有可準備的影音素材。": "There is no audio or video footage to prepare.",
|
|
27
|
+
"分析範圍無效。": "The analysis scope is not valid.",
|
|
28
|
+
"素材或作品內容已改變,請重新確認分析範圍。": "The footage or project changed. Confirm the analysis scope again.",
|
|
29
|
+
"找不到這次素材分析。": "This footage analysis was not found.",
|
|
30
|
+
"旅行日篩選無效。": "The trip-day filter is not valid.",
|
|
31
|
+
"處理狀態篩選無效。": "The status filter is not valid.",
|
|
32
|
+
"找不到這份逐字稿。": "Transcript not found.",
|
|
33
|
+
"素材或作品內容已改變,無法繼續這次分析。": "The footage or project changed, so this analysis cannot continue.",
|
|
34
|
+
"素材磁碟目前無法使用。": "The footage drive is not available.",
|
|
35
|
+
"素材位置已改變,請重新檢查素材。": "The footage folder changed. Check the footage again.",
|
|
36
|
+
"請先完成素材檢查。": "Check the footage first.",
|
|
37
|
+
"Clipen 無法讀取素材範圍。": "Clipen could not read the footage scope.",
|
|
38
|
+
"Clipen 無法讀取分析設定。": "Clipen could not read the analysis settings.",
|
|
39
|
+
"Clipen 無法讀取逐字稿清單。": "Clipen could not read the transcript list.",
|
|
40
|
+
"這個素材沒有可查看的逐字稿。": "This clip has no transcript to show.",
|
|
41
|
+
"Clipen 無法讀取逐字稿內容。": "Clipen could not read the transcript.",
|
|
42
|
+
"Clipen 無法讀取分析進度。": "Clipen could not read the analysis progress.",
|
|
43
|
+
"Clipen 無法讀取分析項目。": "Clipen could not read the analysis items.",
|
|
44
|
+
"Clipen 無法讀取素材分析。": "Clipen could not read the footage analysis.",
|
|
45
|
+
"Clipen 無法讀取逐字稿切塊。": "Clipen could not read the transcript chunks.",
|
|
46
|
+
"這次操作的識別資訊已用於不同內容。": "This request ID was already used for something else.",
|
|
47
|
+
"已有一個素材分析正在進行。": "A footage analysis is already running.",
|
|
48
|
+
"Clipen 無法建立素材分析。": "Clipen could not start the footage analysis.",
|
|
49
|
+
"這次素材分析目前不能保存切塊。": "This analysis cannot save chunks right now.",
|
|
50
|
+
"這個分析項目尚未準備好。": "This analysis item is not ready yet.",
|
|
51
|
+
"Clipen 無法保存音訊切塊。": "Clipen could not save the audio chunk.",
|
|
52
|
+
"這次素材分析目前不能保存逐字稿。": "This analysis cannot save transcripts right now.",
|
|
53
|
+
"找不到這個音訊切塊。": "Audio chunk not found.",
|
|
54
|
+
"Clipen 無法保存逐字稿切塊。": "Clipen could not save the transcript chunk.",
|
|
55
|
+
"這次素材分析目前不能發布逐字稿。": "This analysis cannot publish transcripts right now.",
|
|
56
|
+
"找不到這個分析項目。": "Analysis item not found.",
|
|
57
|
+
"逐字稿仍有尚未完成的音訊切塊。": "Some audio chunks of the transcript are not finished yet.",
|
|
58
|
+
"找不到完整逐字稿成果。": "The complete transcript was not found.",
|
|
59
|
+
"Clipen 無法發布逐字稿。": "Clipen could not publish the transcript.",
|
|
60
|
+
"這次素材分析的狀態已經改變。": "This analysis has changed state.",
|
|
61
|
+
"Clipen 無法更新素材分析。": "Clipen could not update the footage analysis.",
|
|
62
|
+
"Clipen 無法取消素材分析。": "Clipen could not cancel the footage analysis.",
|
|
63
|
+
"只有被中斷的素材分析可以接續。": "Only an interrupted analysis can be resumed.",
|
|
64
|
+
"素材或作品內容已改變,無法接續這次分析。": "The footage or project changed, so this analysis cannot be resumed.",
|
|
65
|
+
"Clipen 無法接續素材分析。": "Clipen could not resume the footage analysis.",
|
|
66
|
+
"這次素材分析目前不能保存結果。": "This analysis cannot save results right now.",
|
|
67
|
+
"這個分析項目的狀態已經改變。": "This analysis item has changed state.",
|
|
68
|
+
"Clipen 無法保存分析進度。": "Clipen could not save the analysis progress.",
|
|
69
|
+
"這次素材分析目前不能完成。": "This analysis cannot finish right now.",
|
|
70
|
+
"素材分析仍有尚未完成的項目。": "Some items of the analysis are not finished yet.",
|
|
71
|
+
"Clipen 無法完成素材分析。": "Clipen could not finish the footage analysis.",
|
|
72
|
+
"Clipen 無法恢復素材分析狀態。": "Clipen could not restore the analysis state.",
|
|
73
|
+
"音訊切塊方式已改變,無法沿用先前進度。": "The audio chunking changed, so earlier progress cannot be reused.",
|
|
74
|
+
"這個音訊切塊已保存不同結果。": "A different result was already saved for this audio chunk.",
|
|
75
|
+
"這個分析項目已發布不同逐字稿。": "A different transcript was already published for this item.",
|
|
76
|
+
# annotations/storage.py
|
|
77
|
+
"找不到這個素材。": "Clip not found.",
|
|
78
|
+
"素材標註版本無效。": "The clip notes version is not valid.",
|
|
79
|
+
"素材標註內容無效。": "The clip notes are not valid.",
|
|
80
|
+
"人物標註內容無效。": "The people notes are not valid.",
|
|
81
|
+
"人物標註不能重複。": "A person can be noted only once.",
|
|
82
|
+
"地點標註內容無效。": "The place notes are not valid.",
|
|
83
|
+
"剪輯備註內容無效。": "The editing note is not valid.",
|
|
84
|
+
"旅程日次無效。": "The trip day is not valid.",
|
|
85
|
+
"逐字稿修正內容無效。": "The transcript correction is not valid.",
|
|
86
|
+
"逐字稿片段已更新,請重新載入。": "The transcript segment changed. Reload it.",
|
|
87
|
+
"Clipen 無法讀取素材標註。": "Clipen could not read the clip notes.",
|
|
88
|
+
"Clipen 無法保存素材標註。": "Clipen could not save the clip notes.",
|
|
89
|
+
"素材使用方式或旅程時段無效。": "The clip usage or trip time is not valid.",
|
|
90
|
+
"素材標註已更新,請重新整理後再保存。": "The clip notes changed. Refresh, then save again.",
|
|
91
|
+
"這次保存標註的操作與既有內容衝突。": "This save conflicts with the notes already there.",
|
|
92
|
+
"逐字稿已重新分析,請重新載入後再保存修正。": "The transcript was analysed again. Reload it, then save your correction.",
|
|
93
|
+
# controller/app.py
|
|
94
|
+
"素材清單頁碼無效。": "The footage list page is not valid.",
|
|
95
|
+
"Clipen 只接受 JSON 操作資料。": "Clipen accepts only JSON requests.",
|
|
96
|
+
"操作資料必須是 JSON object。": "The request must be a JSON object.",
|
|
97
|
+
"Clipen 作品工作台尚未準備完成。": "Clipen's projects are not ready yet.",
|
|
98
|
+
"Clipen 素材檢查尚未準備完成。": "Clipen's footage check is not ready yet.",
|
|
99
|
+
"Clipen 素材分析尚未準備完成。": "Clipen's footage analysis is not ready yet.",
|
|
100
|
+
"本機語音辨識尚未安裝。": "Local speech recognition is not installed.",
|
|
101
|
+
"這個 Clipen 工作台無法管理本機語音辨識。": "This Clipen cannot manage local speech recognition.",
|
|
102
|
+
"Clipen 素材標註尚未準備完成。": "Clipen's clip notes are not ready yet.",
|
|
103
|
+
"Clipen 素材播放器尚未準備完成。": "Clipen's footage player is not ready yet.",
|
|
104
|
+
"AI 剪輯工具尚未準備完成。": "The AI editing tools are not ready yet.",
|
|
105
|
+
"這次操作缺少必要資料。": "This request is missing required data.",
|
|
106
|
+
"請重新啟動 Clipen 以使用證據分析。": "Restart Clipen to use evidence analysis.",
|
|
107
|
+
"這次操作的資料過大。": "This request is too large.",
|
|
108
|
+
"無法讀取這次操作的資料。": "Could not read this request.",
|
|
109
|
+
"資料夾用途無效。": "The folder role is not valid.",
|
|
110
|
+
"找不到這套畫面風格。": "Visual style not found.",
|
|
111
|
+
"找不到模板示例。": "Template sample not found.",
|
|
112
|
+
"模板示例未通過校驗。": "The template sample failed its check.",
|
|
113
|
+
"請先停止 AI 製作,再上傳配樂。": "Stop the AI production before uploading music.",
|
|
114
|
+
"音樂檔名無效。": "The music file name is not valid.",
|
|
115
|
+
"請選擇 MP3、WAV、M4A、AAC、FLAC、OGG 或 AIFF 音樂檔。": "Choose an MP3, WAV, M4A, AAC, FLAC, OGG or AIFF music file.",
|
|
116
|
+
"音樂檔是空的。": "The music file is empty.",
|
|
117
|
+
"頁碼不正確。": "The page is not valid.",
|
|
118
|
+
"分析進度位置無效。": "The analysis progress position is not valid.",
|
|
119
|
+
"編輯參數必須是物件。": "The edit arguments must be an object.",
|
|
120
|
+
"音樂檔上限為 128 MB。": "Music files can be up to 128 MB.",
|
|
121
|
+
"找不到這個操作。": "Operation not found.",
|
|
122
|
+
"不支援這個編輯操作。": "This edit is not supported.",
|
|
123
|
+
"只能轉換這個專案匯出到「Clipen 匯出」的資料夾。": "Only folders this project exported to “Clipen 匯出” can be converted.",
|
|
124
|
+
# controller/app.py, outside ProjectError
|
|
125
|
+
"無法驗證本機工作台連線。": "Could not verify the connection to Clipen.",
|
|
126
|
+
"請從 Clipen Terminal 重新開啟工作台。": "Open Clipen again from the Terminal.",
|
|
127
|
+
"找不到 Clipen instance。": "Clipen instance not found.",
|
|
128
|
+
"本機語音辨識正在安裝或移除,請稍候。": "Local speech recognition is being installed or removed. Wait a moment.",
|
|
129
|
+
"語音辨識安裝位置不安全,Clipen 沒有進行刪除。": "The speech recognition location is not safe, so Clipen deleted nothing.",
|
|
130
|
+
"無法移除本機語音辨識,毛片與分析成果沒有變動。": "Could not remove local speech recognition; your footage and results are unchanged.",
|
|
131
|
+
"無法先安全停止素材分析,語音辨識沒有被移除。": "Could not stop the analysis safely first, so speech recognition was not removed.",
|
|
132
|
+
"Clipen 無法安全完成語音辨識設定。": "Clipen could not finish setting up speech recognition safely.",
|
|
133
|
+
"選擇要匯入的 Skill 資料夾": "Choose the template folder to import",
|
|
134
|
+
"分頁參數無效。": "The page is not valid.",
|
|
135
|
+
"本機語音辨識可用": "Local speech recognition is ready",
|
|
136
|
+
"需要約 1.6 GB 空間安裝隔離的本機語音辨識環境與模型": "Needs about 1.6 GB to install isolated local speech recognition and its model",
|
|
137
|
+
# editing/agent_repository.py
|
|
138
|
+
"請選擇剪輯樣板並填寫影片需求。": "Choose a template and describe the film you want.",
|
|
139
|
+
"預計片長必須為 30 到 1200 秒。": "The length must be between 30 and 1,200 seconds.",
|
|
140
|
+
"找不到 AI 剪輯工作。": "AI editing job not found.",
|
|
141
|
+
"找不到剪輯修改版本。": "Edit version not found.",
|
|
142
|
+
"找不到這套影片模板。": "Film template not found.",
|
|
143
|
+
"畫面風格與選擇的模板不一致,請重新選擇。": "The visual style does not match the template. Choose again.",
|
|
144
|
+
"影片已更新,請重新讀取後修改。": "The film changed. Reload it, then make your change.",
|
|
145
|
+
"AI 製作目前未在執行。": "No AI production is running.",
|
|
146
|
+
"這個版本不支援持續修訂。": "This version cannot be revised further.",
|
|
147
|
+
"請引用使用者本輪修改片長的原文;不能自行降低交付目標。": "Quote the person's own words asking for the new length; do not lower the target on your own.",
|
|
148
|
+
"請先停止目前的 AI 製作。": "Stop the current AI production first.",
|
|
149
|
+
"影片已更新,請重新讀取後提出修改。": "The film changed. Reload it, then ask for your change.",
|
|
150
|
+
"參考註記已更新,請重新讀取並確認後再送出。": "The notes changed. Reload and check them, then send again.",
|
|
151
|
+
"已有較新的製作工作,請使用最新工作。": "There is a newer production. Use the latest one.",
|
|
152
|
+
"目前已有 AI 製作工作。": "An AI production is already running.",
|
|
153
|
+
"只能接續因 AI 逾時、額度不足、登入過期或提早結束而停止的工作。": "Only a production that stopped on a timeout, a usage limit, an expired sign-in or an early stop can be continued.",
|
|
154
|
+
"這份工作不支援接續製作。": "This production cannot be continued.",
|
|
155
|
+
"這份工作的操作或輸出次數已用完。": "This production has used up its operations or renders.",
|
|
156
|
+
"AI 剪輯工作並未執行。": "The AI editing job is not running.",
|
|
157
|
+
"這次 AI 剪輯已達工具呼叫上限。": "This AI edit reached its tool call limit.",
|
|
158
|
+
"作品版本已更新,請重新讀取目前版本後再修改。": "The project changed. Reload the current version, then make your change.",
|
|
159
|
+
"剪輯版本不屬於這次製作。": "That edit version belongs to another production.",
|
|
160
|
+
"AI 正在修改作品,請稍後再編輯。": "The AI is changing the film. Edit again in a moment.",
|
|
161
|
+
"作品版本已更新,請重新讀取。": "The project changed. Reload it.",
|
|
162
|
+
"目前已是最初版本。": "This is already the first version.",
|
|
163
|
+
"作品版本已更新,請重新檢視。": "The project changed. Look at it again.",
|
|
164
|
+
"AI 剪輯版本尚未完成。": "The AI edit is not finished yet.",
|
|
165
|
+
"Clipen 無法讀取 AI 用量紀錄。": "Clipen could not read the AI usage record.",
|
|
166
|
+
"Clipen 無法讀取剪輯修改版本。": "Clipen could not read the edit versions.",
|
|
167
|
+
"已有一個 AI 剪輯工作正在進行。": "An AI edit is already running.",
|
|
168
|
+
"請先檢查素材,至少需要一段可用影片。": "Check the footage first; at least one usable clip is needed.",
|
|
169
|
+
"Clipen 無法建立 AI 剪輯工作。": "Clipen could not start the AI edit.",
|
|
170
|
+
"操作識別已用於其他修改。": "This request ID was already used for another change.",
|
|
171
|
+
"這次 AI 剪輯工作已經結束。": "This AI edit has already ended.",
|
|
172
|
+
# editing/agent_tools.py
|
|
173
|
+
"這個工具未獲 Clipen 授權。": "Clipen has not allowed this tool.",
|
|
174
|
+
"工具參數必須是物件。": "Tool arguments must be an object.",
|
|
175
|
+
"修改前請提供目前 expected_revision_id 與本次 mutation_id。": "Give the current expected_revision_id and a mutation_id for this change.",
|
|
176
|
+
"搜尋筆數必須介於 1 到 50。": "The search limit must be between 1 and 50.",
|
|
177
|
+
"分頁位置無效。": "The page position is not valid.",
|
|
178
|
+
"本次素材檢視已達工具預算上限。": "This footage review reached its tool budget.",
|
|
179
|
+
"track 只能是 video、title 或 audio。": "track must be video, title or audio.",
|
|
180
|
+
"from_seconds/to_seconds 必須是非負數。": "from_seconds and to_seconds must not be negative.",
|
|
181
|
+
"這是既有影片的修訂,請使用裁切、替換單一片段、重排或元件工具保留其他內容,不可清空重建整條時間軸。": "This revises an existing film: use trim, replace one clip, reorder or the graphics tools and keep everything else; do not clear and rebuild the whole timeline.",
|
|
182
|
+
"不能重複使用完全相同的來源範圍。": "The same source range cannot be used twice.",
|
|
183
|
+
"主畫面只能使用影片候選片段。": "The main picture can use only video candidates.",
|
|
184
|
+
"效果不在允許清單中。": "That effect is not allowed.",
|
|
185
|
+
"效果參數必須是物件。": "Effect parameters must be an object.",
|
|
186
|
+
"找不到指定的剪輯片段。": "That clip was not found.",
|
|
187
|
+
"時間軸或交付條件尚未通過,請先呼叫 validate_sequence 查看實際範圍與待修項目。": "The timeline or delivery checks have not passed. Call validate_sequence to see the actual ranges and what to fix.",
|
|
188
|
+
"請先逐鏡檢視目前預覽及文字,使用 review_cut 記錄判斷並修正未解決問題;validate_sequence 會列出缺少的取樣。": "Review the current preview and its text shot by shot, record your judgement with review_cut and fix what is open; validate_sequence lists the missing samples.",
|
|
189
|
+
"候選片段識別資訊無效。": "The candidate ID is not valid.",
|
|
190
|
+
"找不到指定的候選片段。": "That candidate was not found.",
|
|
191
|
+
"效果參數不符合這個效果的定義。": "The parameters do not match this effect.",
|
|
192
|
+
"精剪鏡頭內容無效。": "The shot is not valid.",
|
|
193
|
+
"單一鏡頭必須介於 0.75 到 30 秒。": "A shot must be between 0.75 and 30 seconds.",
|
|
194
|
+
"精剪鏡頭超出候選片段的來源範圍。": "The shot runs past the candidate's source range.",
|
|
195
|
+
"工具參數欄位不完整或包含未知欄位。": "The tool arguments are incomplete or have unknown fields.",
|
|
196
|
+
"這個讀取/工作工具不接受 mutation_id。": "This read or job tool does not take a mutation_id.",
|
|
197
|
+
"作品版本已更新,請先讀取目前版本。": "The project changed. Read the current version first.",
|
|
198
|
+
"效果參數超出安全範圍。": "The effect parameters are out of the safe range.",
|
|
199
|
+
"這個效果不能套用在指定軌道。": "This effect cannot go on that track.",
|
|
200
|
+
# editing/alignment.py
|
|
201
|
+
"對齊結果沒有有效字詞。": "The alignment has no usable words.",
|
|
202
|
+
"這段文字需要額外正規化核對。": "This text needs an extra normalisation check.",
|
|
203
|
+
"對齊未涵蓋完整文字。": "The alignment does not cover the whole text.",
|
|
204
|
+
"對齊結果多數字詞沒有時間長度,已保留待修。": "Most aligned words have no duration; kept for fixing.",
|
|
205
|
+
"本機字詞對齊環境尚未設定。": "Local word alignment is not set up.",
|
|
206
|
+
"缺少固定版本的本機字詞對齊環境。": "The pinned local word alignment is missing.",
|
|
207
|
+
"字詞對齊與文字或音訊範圍不符,已保留待修。": "The word alignment does not match the text or audio range; kept for fixing.",
|
|
208
|
+
"無法讀取對齊結果。": "Could not read the alignment.",
|
|
209
|
+
# editing/alignment_setup.py
|
|
210
|
+
"本機對齊目前支援 Apple Silicon Mac。": "Local alignment runs on Apple silicon Macs.",
|
|
211
|
+
"本機對齊目錄尚未設定。": "The local alignment folder is not set up.",
|
|
212
|
+
"模型安裝路徑不安全。": "The model install location is not safe.",
|
|
213
|
+
"現有對齊環境未通過驗證,請修復該本機環境。": "The existing alignment environment failed its check. Repair it.",
|
|
214
|
+
"準備對齊模型需要額外約 2.3 GB 可用空間。": "Preparing the alignment model needs about 2.3 GB more free space.",
|
|
215
|
+
"已取消模型準備。": "Model preparation was cancelled.",
|
|
216
|
+
"模型準備逾時。": "Model preparation timed out.",
|
|
217
|
+
"模型下載未通過固定版本校驗。": "The model download failed its pinned-version check.",
|
|
218
|
+
"已取消模型下載。": "The model download was cancelled.",
|
|
219
|
+
"模型下載逾時。": "The model download timed out.",
|
|
220
|
+
# editing/component_looks.py
|
|
221
|
+
"外觀檔案不安全。": "The look file is not safe.",
|
|
222
|
+
# editing/coordinator.py
|
|
223
|
+
"找不到匯出的剪輯版本。": "The exported edit version was not found.",
|
|
224
|
+
"匯出檔案遺失或不安全。": "The export is missing or not safe.",
|
|
225
|
+
"匯出不屬於這次剪輯。": "That export belongs to another edit.",
|
|
226
|
+
"AI 剪輯佇列目前已滿。": "The AI editing queue is full.",
|
|
227
|
+
"AI 製作仍在執行,請稍後再試。": "The AI production is still running. Try again shortly.",
|
|
228
|
+
"影片已更新,請重新讀取。": "The film changed. Reload it.",
|
|
229
|
+
"製作工作仍在結束或佇列已滿,請稍後再試。": "A production is still finishing or the queue is full. Try again shortly.",
|
|
230
|
+
# editing/editorial_review.py
|
|
231
|
+
"指定鏡頭不在目前剪輯。": "That shot is not in the current edit.",
|
|
232
|
+
"請先檢視每個鏡頭的頭、中、尾及所有文字顯示畫面。": "First look at the start, middle and end of every shot and every frame that shows text.",
|
|
233
|
+
"審片紀錄必須逐一列出所有改過的鏡頭與文字,不可重複或遺漏;沒改過且已通過的可以省略。": "The review must list every changed shot and text once, with none missing; unchanged ones that passed may be left out.",
|
|
234
|
+
"這個版本已記錄待修問題;請先實際修改時間軸,再輸出並檢視新版,不能只改評語清除問題。": "This version has recorded problems: change the timeline, then render and review the new version. Rewording the review does not clear them.",
|
|
235
|
+
# editing/evidence_jobs.py
|
|
236
|
+
"這次製作尚未授權準備本機模型。": "This production is not allowed to prepare local models.",
|
|
237
|
+
"單次按需語音分析最多 60 秒,請縮小來源範圍。": "One on-demand speech analysis covers up to 60 seconds. Narrow the source range.",
|
|
238
|
+
"本機語音辨識尚未就緒,請先安裝或修復本機語音環境。": "Local speech recognition is not ready. Install or repair it first.",
|
|
239
|
+
"請指定已完成的來源轉寫工作。": "Name a finished transcription job.",
|
|
240
|
+
"只能重試已失敗、取消或中斷的本機工作。": "Only a failed, cancelled or interrupted local job can be retried.",
|
|
241
|
+
"請指定已完成的來源口語工作。": "Name a finished speech job.",
|
|
242
|
+
"指定口語段落不存在。": "That speech segment does not exist.",
|
|
243
|
+
"證據工作不屬於這次製作。": "That evidence job belongs to another production.",
|
|
244
|
+
"請先準備本機語音環境。": "Prepare local speech recognition first.",
|
|
245
|
+
"已有本機語音工作執行中,請先讀取或取消。": "A local speech job is already running. Read or cancel it first.",
|
|
246
|
+
"已取消來源證據工作。": "The evidence job was cancelled.",
|
|
247
|
+
"指定素材沒有音訊。": "That clip has no audio.",
|
|
248
|
+
"語音環境尚未設定。": "Speech recognition is not set up.",
|
|
249
|
+
"本機語音環境準備失敗。": "Preparing local speech recognition failed.",
|
|
250
|
+
"已取消本機語音環境準備。": "Preparing local speech recognition was cancelled.",
|
|
251
|
+
# editing/production_media.py
|
|
252
|
+
"製作檔案不安全。": "The production file is not safe.",
|
|
253
|
+
"單次輸出最多 24 個混音片段。": "One render can mix up to 24 audio pieces.",
|
|
254
|
+
"文字樣式檔案不安全。": "The text style file is not safe.",
|
|
255
|
+
"文字樣式超出上限。": "There are too many text styles.",
|
|
256
|
+
"素材串流超過上限,請拆分作品。": "There are too many footage streams. Split the project.",
|
|
257
|
+
"音訊目錄不安全。": "The audio folder is not safe.",
|
|
258
|
+
"音訊索引不安全。": "The audio index is not safe.",
|
|
259
|
+
"音訊索引超過上限。": "The audio index is too large.",
|
|
260
|
+
"這個作品已達 48 個音訊候選上限。": "This project already has the maximum of 48 audio candidates.",
|
|
261
|
+
"找不到這個作品已取得的音訊。": "That audio was not found in this project.",
|
|
262
|
+
"音訊來源不在本作品的管理範圍。": "That audio is not managed by this project.",
|
|
263
|
+
"指定來源沒有這個影像串流。": "That source has no such video stream.",
|
|
264
|
+
"取樣時間沒有可解碼畫面。": "There is no decodable frame at that time.",
|
|
265
|
+
"混音片段超出影片或來源長度。": "An audio piece runs past the film or its source.",
|
|
266
|
+
# editing/production_preview.py
|
|
267
|
+
"請先使用 validate_sequence 修正時間軸。": "Fix the timeline with validate_sequence first.",
|
|
268
|
+
"預覽不屬於這次剪輯。": "That preview belongs to another edit.",
|
|
269
|
+
"預覽檔案已遺失或變更。": "The preview file is missing or changed.",
|
|
270
|
+
"檢視時間超出預覽範圍。": "That time is outside the preview.",
|
|
271
|
+
"已達本次預覽上限,請使用已完成的版本或回報尚未完成的檢視。": "This production reached its render limit. Use a finished version or report the review that is not done.",
|
|
272
|
+
"指定時間沒有可解碼畫面。": "There is no decodable frame at that time.",
|
|
273
|
+
"已取消預覽。": "The preview was cancelled.",
|
|
274
|
+
# editing/production_tools.py
|
|
275
|
+
"找不到指定片段。": "That clip was not found.",
|
|
276
|
+
"找不到這次操作的回報紀錄。": "No record of that operation was found.",
|
|
277
|
+
"這版預覽沒有保存分軌混音證據。": "This preview kept no per-track mix evidence.",
|
|
278
|
+
# editing/program_audio.py
|
|
279
|
+
"單次最多 24 個混音片段。": "Up to 24 audio pieces at a time.",
|
|
280
|
+
"語音包絡過多,請縮小預覽區間。": "Too many speech envelopes. Narrow the preview range.",
|
|
281
|
+
"混音範圍超出來源或影片。": "The mix range runs past the source or the film.",
|
|
282
|
+
# editing/program_direction.py
|
|
283
|
+
"節目方向需要明確的格式、字幕樣式與不使用字卡設定。": "The direction needs an explicit format, caption style and title-card setting.",
|
|
284
|
+
"後製需求需明確指定 music、editing、transitions。": "The finishing needs must name music, editing and transitions.",
|
|
285
|
+
# editing/program_story.py
|
|
286
|
+
"節目規劃路徑不安全。": "The story plan location is not safe.",
|
|
287
|
+
"節目規劃超過上限。": "The story plan is too large.",
|
|
288
|
+
"每個鏡頭都需要明確的節目用途,不可遺漏或重複歸類。": "Every shot needs one clear purpose in the story, none missing or repeated.",
|
|
289
|
+
"節目段落 ID 不可重複。": "Segment IDs must be unique.",
|
|
290
|
+
"節目段落引用了不在目前剪輯的鏡頭。": "A segment refers to a shot that is not in the current edit.",
|
|
291
|
+
"段內敘事時間需要同時提供起點與時長。": "A story time inside a segment needs both a start and a length.",
|
|
292
|
+
"段落需依序覆蓋時間軸,並引用該範圍內的所有鏡頭;同一連續鏡頭可用明確時間分成不同敘事段落。": "Segments must cover the timeline in order and name every shot in their range; one continuous shot may be split into segments with explicit times.",
|
|
293
|
+
"對話證據必須來自這個段落實際保留的完整口語。": "Dialogue evidence must come from complete speech this segment actually keeps.",
|
|
294
|
+
# editing/program_subtitles.py
|
|
295
|
+
"字幕不可空白。": "A caption cannot be empty.",
|
|
296
|
+
"未核對字幕草稿可以調整標點與分句,不能改寫原話內容或加入新事實;請先核對來源逐字稿。": "An unchecked caption draft may change punctuation and line breaks, not the words or the facts. Check the source transcript first.",
|
|
297
|
+
"這段 ASR 有可疑的連續重複詞,不能直接作為字幕。請用 source_excerpt 引用原句中可用的部分,或略過這段字幕並保留原音;不可編造替代台詞。": "This speech recognition has suspicious repeated words and cannot be used as a caption as is. Quote the usable part with source_excerpt, or skip the caption and keep the original sound; never invent replacement lines.",
|
|
298
|
+
"口語時間不足以顯示分句字幕。": "The speech is too short to show this caption line.",
|
|
299
|
+
"自訂字幕樣式索引超過上限。": "There are too many custom caption styles.",
|
|
300
|
+
"文字已改變,請重新對齊後再建立字幕。": "The text changed. Align it again before making captions.",
|
|
301
|
+
"摘錄需包含完整對齊字詞,不能在詞內估算時間。": "An excerpt must contain whole aligned words; times cannot be guessed inside a word.",
|
|
302
|
+
"字幕引用字元範圍超出來源句。": "The caption's character range runs past the source sentence.",
|
|
303
|
+
"分頁沒有完整對齊字詞。": "A caption page has no complete aligned words.",
|
|
304
|
+
"對齊字詞不足一格,請調整分句。": "The aligned words are shorter than one frame. Split the lines differently.",
|
|
305
|
+
# editing/prompt_history.py
|
|
306
|
+
"需求類型無效。": "The request type is not valid.",
|
|
307
|
+
"儲存識別已用於其他需求。": "This save ID was already used for another request.",
|
|
308
|
+
# editing/refinement_references.py
|
|
309
|
+
"參考註記版本無效。": "The notes version is not valid.",
|
|
310
|
+
"請指定一筆要儲存或刪除的註記。": "Name one note to save or delete.",
|
|
311
|
+
"參考註記欄位無效。": "A note field is not valid.",
|
|
312
|
+
"請選擇註記類型。": "Choose what kind of note this is.",
|
|
313
|
+
"請選擇這支影片中的畫面片段。": "Choose a shot in this film.",
|
|
314
|
+
"標記範圍必須在選定片段內。": "The marked range must be inside the chosen shot.",
|
|
315
|
+
"標記的時間點必須在範圍內。": "The marked moment must be inside the range.",
|
|
316
|
+
"請先停止 AI 製作,再修改參考註記。": "Stop the AI production before changing notes.",
|
|
317
|
+
"影片已更新,請重新讀取後標記。": "The film changed. Reload it, then add your note.",
|
|
318
|
+
"這個版本不支援參考註記。": "This version does not take notes.",
|
|
319
|
+
"註記已在其他視窗更新,請重新讀取後再修改。": "The notes changed in another window. Reload them, then edit.",
|
|
320
|
+
"指定的字幕或元件不在這段時間。": "That caption or graphic is not at this time.",
|
|
321
|
+
"原音音量需介於 -60 至 0 dB。": "The original sound level must be between -60 and 0 dB.",
|
|
322
|
+
"只有聲音註記可以指定混音設定。": "Only sound notes can set the mix.",
|
|
323
|
+
"操作識別已用於其他註記。": "This request ID was already used for another note.",
|
|
324
|
+
"找不到這筆註記。": "Note not found.",
|
|
325
|
+
"找不到選定片段的音軌。": "The chosen shot has no audio track.",
|
|
326
|
+
"每支影片最多保留 100 筆參考註記。": "A film can keep up to 100 notes.",
|
|
327
|
+
# editing/skill_tools.py
|
|
328
|
+
"Skill 沒有這份資源。": "The template has no such resource.",
|
|
329
|
+
"元件設定格式不正確。": "The graphic settings are not in the right format.",
|
|
330
|
+
"找不到這個畫面元件,影片可能已經更新,請重新讀取。": "That graphic was not found; the film may have changed. Reload it.",
|
|
331
|
+
"元件文字格式不正確。": "The graphic's text is not in the right format.",
|
|
332
|
+
"元件的主要文字不能空白。": "A graphic's main text cannot be empty.",
|
|
333
|
+
"主要文字與補充文字各寫一行,換行由元件處理。": "Write the main and supporting text on one line each; the graphic handles line breaks.",
|
|
334
|
+
"元件大小要在 60% 到 160% 之間。": "A graphic's size must be between 60% and 160%.",
|
|
335
|
+
"顏色格式不正確。": "The colour is not in the right format.",
|
|
336
|
+
"缺少可用的中文字型。": "No usable Chinese font is available.",
|
|
337
|
+
"沒有這一軌。": "There is no such track.",
|
|
338
|
+
"沒有任何變動。": "Nothing changed.",
|
|
339
|
+
"找不到這個外觀,請重新讀取。": "That look was not found. Reload it.",
|
|
340
|
+
"這個外觀沒有這個字型或顏色。": "This look has no such font or colour.",
|
|
341
|
+
"這個元件所在的鏡頭已經不在影片裡。": "The shot this graphic sits on is no longer in the film.",
|
|
342
|
+
"元件要從這個鏡頭裡開始、在影片結束前結束,至少顯示 0.2 秒。": "A graphic must start inside its shot, end before the film ends and show for at least 0.2 seconds.",
|
|
343
|
+
"找不到要更新的自由元件。": "The custom graphic to update was not found.",
|
|
344
|
+
"這個 element_id 已經被使用。": "This element_id is already in use.",
|
|
345
|
+
"畫面元件需要有效的鏡頭錨點。": "A graphic needs a valid shot anchor.",
|
|
346
|
+
"先用 set_component_look 定下這類元件的外觀(字型與配色),再用 look_id 指定。": "Set this kind of graphic's look (fonts and colours) with set_component_look first, then name it with look_id.",
|
|
347
|
+
"沒有這個外觀;先用 set_component_look 建立,或從 list_program_components 的 looks 選一個。": "There is no such look. Create one with set_component_look, or pick one from the looks in list_program_components.",
|
|
348
|
+
"找不到這個畫面元件。": "Graphic not found.",
|
|
349
|
+
"這個版本需要 AI 節目製作工作。": "This version needs an AI production.",
|
|
350
|
+
"Skill 範例資產未通過校驗。": "The template's sample assets failed their check.",
|
|
351
|
+
"Skill 資產路徑不安全。": "The template's asset location is not safe.",
|
|
352
|
+
"元件要留在畫面裡。": "A graphic must stay inside the picture.",
|
|
353
|
+
"沒有這個外觀,請重新讀取。": "There is no such look. Reload it.",
|
|
354
|
+
"這個元件沒有這個可編輯欄位。": "This graphic has no such editable field.",
|
|
355
|
+
"那一軌在這段時間已經有元件了。": "That track already has a graphic at this time.",
|
|
356
|
+
"Skill 範例資產內容已改變。": "The template's sample assets changed.",
|
|
357
|
+
# editing/tool_receipts.py
|
|
358
|
+
"作品版本已更新,請重新讀取後修改。": "The project changed. Reload it, then make your change.",
|
|
359
|
+
"這個操作識別已用於其他參數。": "This request ID was already used with other arguments.",
|
|
360
|
+
"先前操作在回報前中斷;請讀取目前版本與紀錄確認結果,不要直接重送。": "The earlier operation stopped before reporting back. Read the current version and record to see what happened; do not just send it again.",
|
|
361
|
+
# editing/visual_preview.py
|
|
362
|
+
"影片已更新,正在重新讀取編輯畫面。": "The film changed; reloading the editor.",
|
|
363
|
+
"預覽時間不在影片內。": "That time is outside the film.",
|
|
364
|
+
"這個時間沒有畫面片段。": "There is no shot at this time.",
|
|
365
|
+
"找不到預覽字型。": "The preview font was not found.",
|
|
366
|
+
"來源沒有指定的影像串流。": "The source has no such video stream.",
|
|
367
|
+
"文字超出版面或無法顯示,請縮短文字或調整位置。": "The text runs off the frame or cannot be drawn. Shorten it or move it.",
|
|
368
|
+
# editing/workbench.py
|
|
369
|
+
"請先停止 AI 製作,再還原或輸出目前版本。": "Stop the AI production before restoring or rendering this version.",
|
|
370
|
+
"這個版本不是可編輯的影片製作。": "This version is not an editable production.",
|
|
371
|
+
"請用審片注記交給 AI 修改;這裡只能還原版本或編輯元件。": "Hand changes to the AI with review notes; here you can only restore versions or edit graphics.",
|
|
372
|
+
"音樂檔無法解碼或沒有可用聲音。": "The music file cannot be decoded or has no usable sound.",
|
|
373
|
+
"指定的配樂不在本作品,請重新選擇。": "That music is not in this project. Choose again.",
|
|
374
|
+
# finishing/audio.py
|
|
375
|
+
"音樂或音效資料夾已變更或離線,請重新選擇。": "The music or sound effects folder changed or is offline. Choose it again.",
|
|
376
|
+
"找不到指定的音樂或音效。": "That music or sound effect was not found.",
|
|
377
|
+
"音樂或音效已變更,請重新檢查。": "The music or sound effect changed. Check it again.",
|
|
378
|
+
"找不到可用的 FFmpeg/ffprobe。": "No usable FFmpeg or ffprobe was found.",
|
|
379
|
+
"已取消製作。": "The production was cancelled.",
|
|
380
|
+
"本機製作失敗,請檢查素材格式與磁碟。": "Local rendering failed. Check the footage formats and the disk.",
|
|
381
|
+
"本機工具輸出超過上限。": "A local tool produced too much output.",
|
|
382
|
+
"本機製作超過時間上限。": "Local rendering ran past its time limit.",
|
|
383
|
+
# finishing/catalog.py
|
|
384
|
+
"AI 配樂方向無效。": "The AI's music direction is not valid.",
|
|
385
|
+
"目前搜尋不到可用配樂,請稍後重試。": "No usable music was found. Try again later.",
|
|
386
|
+
"找不到可下載且有完整授權資料的配樂,請調整影片方向或稍後重試。": "No downloadable music with complete license details was found. Adjust the film's direction or try again later.",
|
|
387
|
+
"候選配樂無法解碼或長度不足,請重新搜尋。": "The candidate music cannot be decoded or is too short. Search again.",
|
|
388
|
+
"已取消自動配樂。": "Automatic music was cancelled.",
|
|
389
|
+
# finishing/renderer.py
|
|
390
|
+
"成片的影像或聲音規格不完整。": "The finished film's picture or sound details are incomplete.",
|
|
391
|
+
"成片的影音長度與時間軸不一致。": "The finished film's length does not match the timeline.",
|
|
392
|
+
# media/models.py
|
|
393
|
+
"找不到這次素材檢查。": "This footage check was not found.",
|
|
394
|
+
# media/preview.py
|
|
395
|
+
"素材已變更,請重新檢查素材。": "The footage changed. Check it again.",
|
|
396
|
+
"這個素材無法在瀏覽器中直接播放。": "This clip cannot play directly in the browser.",
|
|
397
|
+
"目前無法讀取素材,請確認外接硬碟已連接。": "The footage cannot be read. Check that the external drive is connected.",
|
|
398
|
+
"Clipen 無法安全開啟這個素材。": "Clipen cannot safely open this clip.",
|
|
399
|
+
# media/storage.py
|
|
400
|
+
"素材檢查出現重複項目。": "The footage check found duplicate items.",
|
|
401
|
+
"Clipen 無法讀取素材檢查紀錄。": "Clipen could not read the footage check record.",
|
|
402
|
+
"作品已在其他分頁更新,請重新載入最新內容。": "The project changed in another tab. Reload it.",
|
|
403
|
+
"請先選擇毛片資料夾。": "Choose the footage folder first.",
|
|
404
|
+
"已有一個素材檢查正在進行。": "A footage check is already running.",
|
|
405
|
+
"Clipen 無法建立素材檢查。": "Clipen could not start the footage check.",
|
|
406
|
+
"Clipen 無法讀取素材清單。": "Clipen could not read the footage list.",
|
|
407
|
+
"Clipen 無法取消素材檢查。": "Clipen could not cancel the footage check.",
|
|
408
|
+
"這次素材檢查的狀態已經改變。": "This footage check has changed state.",
|
|
409
|
+
"Clipen 無法更新素材檢查。": "Clipen could not update the footage check.",
|
|
410
|
+
"這次素材檢查目前不能完成。": "This footage check cannot finish right now.",
|
|
411
|
+
"素材位置已更新,請重新檢查素材。": "The footage folder changed. Check the footage again.",
|
|
412
|
+
"素材檢查結果尚未整理完成。": "The footage check results are not ready yet.",
|
|
413
|
+
"Clipen 無法發布素材檢查結果。": "Clipen could not publish the footage check results.",
|
|
414
|
+
"這次素材檢查目前不能保存結果。": "This footage check cannot save results right now.",
|
|
415
|
+
"Clipen 無法保存這個素材項目。": "Clipen could not save this footage item.",
|
|
416
|
+
"Clipen 無法保存素材檢查結果。": "Clipen could not save the footage check results.",
|
|
417
|
+
"Clipen 無法恢復素材檢查。": "Clipen could not restore the footage check.",
|
|
418
|
+
# projects/deletion.py
|
|
419
|
+
"作品仍有分析或 AI 工作正在執行,請先停止後再刪除。": "An analysis or AI job is still running in this project. Stop it before deleting.",
|
|
420
|
+
"Clipen 刪除紀錄位置不安全。": "Clipen's deletion record location is not safe.",
|
|
421
|
+
"Clipen 刪除紀錄不安全。": "Clipen's deletion record is not safe.",
|
|
422
|
+
"Clipen 無法讀取刪除紀錄。": "Clipen could not read the deletion record.",
|
|
423
|
+
"輸入的作品名稱不一致,Clipen 沒有刪除作品。": "The name you typed does not match, so Clipen did not delete the project.",
|
|
424
|
+
"作品資料包含掛載點,Clipen 沒有進行刪除。": "The project data contains a mount point, so Clipen did not delete it.",
|
|
425
|
+
"Clipen 無法安全刪除作品;毛片沒有被修改。": "Clipen could not safely delete the project. Your footage was not touched.",
|
|
426
|
+
"作品資料包含不安全的檔案,Clipen 沒有進行刪除。": "The project data contains unsafe files, so Clipen did not delete it.",
|
|
427
|
+
"作品資料包含硬連結,Clipen 沒有進行刪除。": "The project data contains hard links, so Clipen did not delete it.",
|
|
428
|
+
# projects/models.py
|
|
429
|
+
"這次操作的識別資訊無效。": "The request ID is not valid.",
|
|
430
|
+
"請輸入作品名稱。": "Enter a project name.",
|
|
431
|
+
"作品名稱需為 1 至 120 個字。": "A project name must be 1 to 120 characters.",
|
|
432
|
+
"剪輯需求格式無效。": "The brief is not in a valid format.",
|
|
433
|
+
"剪輯需求不能超過 8,000 個字。": "The brief can be up to 8,000 characters.",
|
|
434
|
+
"作品版本資訊無效。": "The project version is not valid.",
|
|
435
|
+
# projects/picker.py
|
|
436
|
+
"選取的資料夾路徑無效。": "The chosen folder path is not valid.",
|
|
437
|
+
"請選擇一個資料夾。": "Choose a folder.",
|
|
438
|
+
"素材資料夾不能包含 Clipen 的管理資料。": "The footage folder cannot contain Clipen's own data.",
|
|
439
|
+
"Clipen 沒有讀取這個資料夾的權限。": "Clipen does not have permission to read this folder.",
|
|
440
|
+
"這個版本目前只支援 macOS 資料夾選擇器。": "This version supports only the macOS folder picker.",
|
|
441
|
+
"無法完成資料夾選擇。": "The folder could not be chosen.",
|
|
442
|
+
"資料夾選擇器回傳的路徑過長。": "The folder picker returned a path that is too long.",
|
|
443
|
+
"資料夾選擇器回傳無效的路徑。": "The folder picker returned a path that is not valid.",
|
|
444
|
+
"請選擇實際資料夾,不要選擇 symbolic link。": "Choose a real folder, not a symbolic link.",
|
|
445
|
+
"找不到選取的資料夾或外接磁碟。": "The chosen folder or external drive was not found.",
|
|
446
|
+
"資料夾選擇已失效,請重新選擇。": "The folder choice expired. Choose again.",
|
|
447
|
+
"資料夾選擇已逾時,請再試一次。": "Choosing the folder timed out. Try again.",
|
|
448
|
+
"無法開啟 macOS 資料夾選擇器。": "The macOS folder picker could not be opened.",
|
|
449
|
+
"資料夾選擇器回傳無法辨識的路徑。": "The folder picker returned a path Clipen could not read.",
|
|
450
|
+
# projects/service.py
|
|
451
|
+
"毛片與參考作品請選擇不同且不重疊的資料夾。": "Choose separate, non-overlapping folders for footage and reference work.",
|
|
452
|
+
# projects/storage.py
|
|
453
|
+
"Clipen 作品儲存位置不安全。": "Clipen's project storage is not safe to use.",
|
|
454
|
+
"Clipen 無法使用作品儲存位置。": "Clipen cannot use its project storage.",
|
|
455
|
+
"Clipen 無法讀取作品資料。": "Clipen could not read the project.",
|
|
456
|
+
"這次建立作品的操作與既有資料衝突。": "Creating this project conflicts with existing data.",
|
|
457
|
+
"Clipen 無法讀取作品列表。": "Clipen could not read the project list.",
|
|
458
|
+
"Clipen 偵測到不安全的作品資料。": "Clipen found unsafe project data.",
|
|
459
|
+
"Clipen 無法讀取作品操作紀錄。": "Clipen could not read the project's history.",
|
|
460
|
+
"這個作品需要其他版本的 Clipen。": "This project needs a different version of Clipen.",
|
|
461
|
+
"Clipen 無法保存作品。": "Clipen could not save the project.",
|
|
462
|
+
# rendering/cover.py
|
|
463
|
+
"這個作品還沒有可用的封面。": "This project has no cover yet.",
|
|
464
|
+
"Clipen 無法安全建立封面資料夾。": "Clipen could not safely create the cover folder.",
|
|
465
|
+
# rendering/production_effects.py
|
|
466
|
+
"馬賽克參數必須是有限數字。": "Mosaic parameters must be finite numbers.",
|
|
467
|
+
"馬賽克區域或時間超出範圍。": "The mosaic area or time is out of range.",
|
|
468
|
+
# rendering/storage.py
|
|
469
|
+
"找不到這次初剪輸出。": "This render was not found.",
|
|
470
|
+
"影片尚未輸出完成。": "The film has not finished rendering.",
|
|
471
|
+
"找不到已輸出的影片。": "The rendered film was not found.",
|
|
472
|
+
"Clipen 無法安全建立初剪資料夾。": "Clipen could not safely create the render folder.",
|
|
473
|
+
"Clipen 無法建立初剪輸出工作。": "Clipen could not start the render.",
|
|
474
|
+
"這次初剪輸出與既有操作衝突。": "This render conflicts with an existing one.",
|
|
475
|
+
# skills/catalog.py
|
|
476
|
+
"模板的 Skill 與畫面設定不一致。": "The template's skill and visual settings do not match.",
|
|
477
|
+
# skills/library.py
|
|
478
|
+
"樣板庫路徑不安全。": "The template library location is not safe.",
|
|
479
|
+
"找不到這個剪輯樣板。": "Template not found.",
|
|
480
|
+
"樣板庫裡的這個樣板 內容已被修改,請重新匯入。": "This template changed in the library. Import it again.",
|
|
481
|
+
"匯入期間 樣板內容有變動,請重新匯入。": "The template changed while importing. Import it again.",
|
|
482
|
+
# skills/visual_styles.py
|
|
483
|
+
"這個工作沒有這套畫面風格,請選擇工作內提供的樣式。": "This production has no such visual style. Choose one it offers.",
|
|
484
|
+
"這個工作沒有這套字體搭配,請選擇工作內提供的組合。": "This production has no such font pairing. Choose one it offers.",
|
|
485
|
+
# Status lines read back later: speech setup, render steps, the AI, the folder dialog
|
|
486
|
+
"正在建立隔離的語音辨識環境…": "Creating the isolated speech recognition environment…",
|
|
487
|
+
"正在移除 Clipen 管理的語音辨識環境…": "Removing the speech recognition Clipen manages…",
|
|
488
|
+
"Clipen 無法安全移除語音辨識環境。": "Clipen could not safely remove speech recognition.",
|
|
489
|
+
"Clipen 無法先安全停止素材分析。": "Clipen could not stop the analysis safely first.",
|
|
490
|
+
"本機語音辨識可用。": "Local speech recognition is ready.",
|
|
491
|
+
"本機語音辨識安裝不完整。": "Local speech recognition is not fully installed.",
|
|
492
|
+
"正在下載固定版本的語音辨識模型…": "Downloading the pinned speech model…",
|
|
493
|
+
"正在驗證安裝內容…": "Verifying the install…",
|
|
494
|
+
"本機語音辨識安裝完成。": "Local speech recognition is installed.",
|
|
495
|
+
"安裝已取消。": "Install cancelled.",
|
|
496
|
+
"本機語音辨識安裝失敗。": "Installing local speech recognition failed.",
|
|
497
|
+
"本機語音辨識安裝失敗,且暫存內容無法安全清除。": "Installing local speech recognition failed, and its temporary files could not be cleared safely.",
|
|
498
|
+
"正在下載並安裝語音辨識套件…": "Downloading and installing speech recognition packages…",
|
|
499
|
+
"正在安裝已下載的語音辨識套件…": "Installing the downloaded speech recognition packages…",
|
|
500
|
+
"語音辨識套件安裝完成。": "Speech recognition packages installed.",
|
|
501
|
+
"正在下載固定版本的語音辨識程式…": "Downloading the pinned speech recognition program…",
|
|
502
|
+
"檢查輸出的影片": "Checking the rendered film",
|
|
503
|
+
"混合配樂與原音": "Mixing music and original sound",
|
|
504
|
+
"剪接畫面與聲音": "Cutting picture and sound",
|
|
505
|
+
"繪製字幕與元件": "Drawing captions and graphics",
|
|
506
|
+
"把字幕與元件疊上影片": "Laying captions and graphics over the film",
|
|
507
|
+
"找不到可用的 Codex CLI": "No usable Codex CLI was found",
|
|
508
|
+
"Codex 檢查無法完成": "The Codex check could not finish",
|
|
509
|
+
"需要先完成 Codex 登入": "Sign in to Codex first",
|
|
510
|
+
"Codex 版本需要更新": "Codex needs updating",
|
|
511
|
+
"Codex 安全檢查未通過": "Codex failed the safety check",
|
|
512
|
+
"AI 已連接,可以開始使用": "The AI is connected and ready",
|
|
513
|
+
"找不到可用的 Claude Code CLI": "No usable Claude Code CLI was found",
|
|
514
|
+
"Claude Code 檢查無法完成": "The Claude Code check could not finish",
|
|
515
|
+
"需要先完成 Claude Code 登入": "Sign in to Claude Code first",
|
|
516
|
+
"Claude Code 版本需要更新": "Claude Code needs updating",
|
|
517
|
+
"選擇毛片資料夾": "Choose the footage folder",
|
|
518
|
+
"選擇參考作品資料夾": "Choose the reference folder",
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
# Messages with numbers in them: the pattern of the Chinese, and its English with the same numbers.
|
|
522
|
+
PATTERNS = (
|
|
523
|
+
(
|
|
524
|
+
re.compile(r"正在下載並安裝語音辨識套件((\d+)/(\d+))…"),
|
|
525
|
+
"Downloading and installing speech recognition packages ({0}/{1})…",
|
|
526
|
+
),
|
|
527
|
+
(re.compile(r"畫自由設計元件 (\d+)/(\d+)"), "Drawing custom graphic {0}/{1}"),
|
|
528
|
+
)
|
|
@@ -6,6 +6,7 @@ import argparse
|
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
8
|
from clipen.editing import EditAgentRepository, EditAgentTools
|
|
9
|
+
from clipen.i18n import speaking
|
|
9
10
|
from clipen.projects import ProjectRepository
|
|
10
11
|
|
|
11
12
|
from .server import EditingMcpServer, run_stdio
|
|
@@ -18,7 +19,14 @@ def main() -> int:
|
|
|
18
19
|
parser.add_argument("--run-id", required=True)
|
|
19
20
|
parser.add_argument("--data-root")
|
|
20
21
|
parser.add_argument("--asr-requirements")
|
|
22
|
+
parser.add_argument("--language", default="zh-TW")
|
|
21
23
|
arguments = parser.parse_args()
|
|
24
|
+
# Tool messages read in the language of the person the AI works for.
|
|
25
|
+
with speaking(arguments.language):
|
|
26
|
+
return _serve(arguments)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _serve(arguments: argparse.Namespace) -> int:
|
|
22
30
|
projects = ProjectRepository(Path(arguments.projects_root))
|
|
23
31
|
repository = EditAgentRepository(projects)
|
|
24
32
|
tools = EditAgentTools(repository, arguments.project_id, arguments.run_id)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Clipen runs on its own Python, sealed off from the Python setup of the person whose Mac it is on."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import sys
|
|
7
|
+
from collections.abc import Mapping
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
# Settings a person's shell may carry for their own Python and pip; none of them reach Clipen.
|
|
11
|
+
_FOREIGN_PREFIXES = ("PYTHON", "PIP_", "CONDA_", "PYENV_", "UV_")
|
|
12
|
+
_FOREIGN_NAMES = {"VIRTUAL_ENV", "PYENV_VERSION", "__PYVENV_LAUNCHER__"}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def sealed_environment(environment: Mapping[str, str]) -> dict[str, str]:
|
|
16
|
+
"""The environment Clipen's Python and pip run in: the person's own Python settings, pip
|
|
17
|
+
configuration, caches and user site never take part."""
|
|
18
|
+
sealed = {
|
|
19
|
+
key: value
|
|
20
|
+
for key, value in environment.items()
|
|
21
|
+
if key not in _FOREIGN_NAMES and not key.startswith(_FOREIGN_PREFIXES)
|
|
22
|
+
}
|
|
23
|
+
sealed.update(
|
|
24
|
+
{
|
|
25
|
+
"PYTHONNOUSERSITE": "1",
|
|
26
|
+
"PIP_CONFIG_FILE": os.devnull,
|
|
27
|
+
"PIP_NO_CACHE_DIR": "1",
|
|
28
|
+
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
return sealed
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def built_here(environment_root: Path) -> bool:
|
|
35
|
+
"""Whether a virtual environment was built on the Python running now, rather than on another one
|
|
36
|
+
(such as a person's pyenv or Homebrew Python, which they may change or remove)."""
|
|
37
|
+
try:
|
|
38
|
+
lines = (Path(environment_root) / "pyvenv.cfg").read_text(encoding="utf-8").splitlines()
|
|
39
|
+
except (OSError, UnicodeError):
|
|
40
|
+
return False
|
|
41
|
+
homes = [line.split("=", 1)[1].strip() for line in lines if line.split("=", 1)[0].strip() == "home"]
|
|
42
|
+
base = Path(getattr(sys, "_base_executable", sys.executable)).parent
|
|
43
|
+
return len(homes) == 1 and Path(homes[0]).resolve() == base.resolve()
|