@@ -1069,7 +1069,7 @@ const generateOne = createMutation({
type="button"
class="filmstrip-item"
title={t('queue.editInTimeline', {
- scene: entry.scene.heading || t('queue.scene'),
+ scene: entry.scene.heading || t('queue.scene', { n: entry.scene.order_index }),
label: entry.label,
})}
onclick={() => editScene(entry.scene.id)}
diff --git a/calliope-web/src/lib/components/ScriptStage.svelte b/calliope-web/src/lib/components/ScriptStage.svelte
index 2ea3db7b..74f4f0a5 100644
--- a/calliope-web/src/lib/components/ScriptStage.svelte
+++ b/calliope-web/src/lib/components/ScriptStage.svelte
@@ -440,7 +440,7 @@
{(scene.clips ?? []).length}
- {((scene.clips ?? []).length === 1 ? t('script.shotClipSingular') : t('script.shotClipPlural'))}
+ {((scene.clips ?? []).length === 1 ? t('script.shotClipSingular') : t('script.shotClipPlural', { n: (scene.clips ?? []).length }))}
{#if (scene.clips ?? []).some((c) => c.clip_path)}
· {t('script.renderedCount', { count: (scene.clips ?? []).filter((c) => c.clip_path).length })}
{/if}
diff --git a/calliope-web/src/lib/components/video/SceneFilmstrip.svelte b/calliope-web/src/lib/components/video/SceneFilmstrip.svelte
index 64982230..3cb8e14d 100644
--- a/calliope-web/src/lib/components/video/SceneFilmstrip.svelte
+++ b/calliope-web/src/lib/components/video/SceneFilmstrip.svelte
@@ -73,7 +73,7 @@
): string {
let s: string = dictionaries[language.current][key] ?? (en as Record)[key] ?? key;
if (vars) {
for (const [k, v] of Object.entries(vars)) s = s.replaceAll(`{${k}}`, String(v));
+ // ponytail: count 语义占位统一为 {n};调用方传 count 即命中
+ if (vars.count !== undefined) s = s.replaceAll('{n}', String(vars.count));
}
return s;
}
\ No newline at end of file
diff --git a/calliope-web/src/lib/i18n/en.ts b/calliope-web/src/lib/i18n/en.ts
index a571db46..5b749fab 100644
--- a/calliope-web/src/lib/i18n/en.ts
+++ b/calliope-web/src/lib/i18n/en.ts
@@ -700,7 +700,7 @@ export const en = {
// --- Filmstrip ---
'filmstrip.title': 'Filmstrip',
- 'filmstrip.clipTitle': 'Clip {n}',
+ 'filmstrip.clipTitle': '{scene} · shot {shot} · {time}',
'filmstrip.scene': 'Scene',
'filmstrip.sceneClips': '{n} clips',
'filmstrip.prev': 'Previous clip',
@@ -804,8 +804,8 @@ export const en = {
'wf.deleteTitle': 'Delete workflow',
'wf.deleteMessage': 'This workflow and its saved JSON will be deleted.',
'wf.analyzeRegister': 'Analyze & register',
- 'wf.countImage': '{n} image',
- 'wf.countVideo': '{n} video',
+ 'wf.countImage': '{n} images',
+ 'wf.countVideo': '{n} videos',
'wf.countSaved': '{n} saved',
'wf.profileH3': 'Use case',
'wf.profileProse': 'This workflow generates {kind} from a {target}.',
diff --git a/calliope-web/src/lib/i18n/zh.ts b/calliope-web/src/lib/i18n/zh.ts
index f2fea475..51da3e66 100644
--- a/calliope-web/src/lib/i18n/zh.ts
+++ b/calliope-web/src/lib/i18n/zh.ts
@@ -700,7 +700,7 @@ export const zh: Dict = {
// --- Filmstrip ---
'filmstrip.title': '胶片条',
- 'filmstrip.clipTitle': '片段 {n}',
+ 'filmstrip.clipTitle': '{scene} · 镜头 {shot} · {time}',
'filmstrip.scene': '场景',
'filmstrip.sceneClips': '{n} 个片段',
'filmstrip.prev': '上一个片段',