Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

style(template-fill): translate new check-plan warnings to English

hugohe327736676e70c
diff --git a/skills/ppt-master/scripts/template_fill_pptx/analyzer.py b/skills/ppt-master/scripts/template_fill_pptx/analyzer.py
index b1b1d6b7..d4296099 100644
--- a/skills/ppt-master/scripts/template_fill_pptx/analyzer.py
+++ b/skills/ppt-master/scripts/template_fill_pptx/analyzer.py
@@ -160,8 +160,8 @@ def _fill_risk(tables: list[dict[str, Any]], charts: list[dict[str, Any]]) -> di
return {
"has_non_text_content": True,
"reason": (
- f"含 {kind_str} 等非文字内容,text-fill 不替换,"
- "需 table_edits/chart_edits 或换页"
+ f"has non-text content ({kind_str}) that text-fill cannot replace; "
+ "provide table_edits/chart_edits or pick another source slide"
),
}
diff --git a/skills/ppt-master/scripts/template_fill_pptx/checker.py b/skills/ppt-master/scripts/template_fill_pptx/checker.py
index 7edb737e..5d452fe5 100644
--- a/skills/ppt-master/scripts/template_fill_pptx/checker.py
+++ b/skills/ppt-master/scripts/template_fill_pptx/checker.py
@@ -464,9 +464,10 @@ def check_plan(library: dict[str, Any], plan: dict[str, Any]) -> dict[str, Any]:
"plan_slide": plan_slide_index,
"source_slide": source_slide,
"message": (
- f"源页 {source_slide} 含 {kind_str} 等非文字内容,"
- "plan 未提供对应 edits,text-fill 不会替换,"
- "可能漏出模板原文(加 table_edits/chart_edits,或换一个源页)"
+ f"source slide {source_slide} has non-text content ({kind_str}) "
+ "with no matching edits in the plan; text-fill leaves it untouched "
+ "and original template content may show through "
+ "(add table_edits/chart_edits, or pick another source slide)"
),
}
)
@@ -502,10 +503,10 @@ def check_plan(library: dict[str, Any], plan: dict[str, Any]) -> dict[str, Any]:
"reuse_count": count,
"unused_source_slides": unused_lib_indices,
"message": (
- f"源页 {src} 被复用 {count} 次,"
- f"而库里还有 {len(unused_lib_indices)} 个源版式没用到"
- f"(索引:{unused_list});"
- "考虑用上其它版式以增加变化"
+ f"source slide {src} is reused {count} times while "
+ f"{len(unused_lib_indices)} source layout(s) are never used "
+ f"(indices: {unused_list}); "
+ "consider using other layouts for more variety"
),
}
)