From bf1641f8a5dea8917112ad2a5d36c95b2dc22b80 Mon Sep 17 00:00:00 2001 From: puke Date: Tue, 28 Oct 2025 15:13:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=A4=E4=BA=92=E6=96=87?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reelforge/i18n/locales/en_US.json | 3 +-- reelforge/i18n/locales/zh_CN.json | 3 +-- web/app.py | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/reelforge/i18n/locales/en_US.json b/reelforge/i18n/locales/en_US.json index 9e56764..e9a7f65 100644 --- a/reelforge/i18n/locales/en_US.json +++ b/reelforge/i18n/locales/en_US.json @@ -14,14 +14,13 @@ "mode.generate": "💡 Generate Mode", "mode.fixed": "📄 Fixed Mode", - "mode.help": "Generate: AI creates narrations from topic. Fixed: Use your script directly without modification, one narration per line.", "input.book_name": "Book Name", "input.book_name_placeholder": "e.g., Atomic Habits, How to Win Friends", "input.book_name_help": "Enter the book name, will fetch book info and generate video", "input.topic": "Topic", - "input.topic_placeholder": "e.g., How to build passive income, How to build good habits", + "input.topic_placeholder": "AI automatically creates specified number of narrations\nExample: How to build passive income, 如何增加被动收入", "input.topic_help": "Enter a topic, AI will generate content based on it", "input.text": "Text Input", diff --git a/reelforge/i18n/locales/zh_CN.json b/reelforge/i18n/locales/zh_CN.json index 969923f..0bad7e0 100644 --- a/reelforge/i18n/locales/zh_CN.json +++ b/reelforge/i18n/locales/zh_CN.json @@ -14,14 +14,13 @@ "mode.generate": "💡 生成模式", "mode.fixed": "📄 固定模式", - "mode.help": "生成模式:AI 从主题创作旁白。固定模式:直接使用您的脚本,不做任何改写,每行一个旁白。", "input.book_name": "书名", "input.book_name_placeholder": "例如:原子习惯、人性的弱点、Atomic Habits", "input.book_name_help": "输入书名,将自动获取书籍信息并生成视频", "input.topic": "主题", - "input.topic_placeholder": "例如:如何增加被动收入、How to build good habits", + "input.topic_placeholder": "AI 自动创作指定数量的旁白\n例如:如何增加被动收入、How to build passive income", "input.topic_help": "输入一个主题,AI 将根据主题生成内容", "input.text": "文本输入", diff --git a/web/app.py b/web/app.py index 953fb96..2e85c47 100644 --- a/web/app.py +++ b/web/app.py @@ -373,13 +373,12 @@ def main(): ["generate", "fixed"], horizontal=True, format_func=lambda x: tr(f"mode.{x}"), - label_visibility="collapsed", - help=tr("mode.help") + label_visibility="collapsed" ) # Text input (unified for both modes) text_placeholder = tr("input.topic_placeholder") if mode == "generate" else tr("input.content_placeholder") - text_height = 100 if mode == "generate" else 200 + text_height = 120 if mode == "generate" else 200 text_help = tr("input.text_help_generate") if mode == "generate" else tr("input.text_help_fixed") text = st.text_area(