diff --git a/public/locales/zh-tw.json b/public/locales/zh-tw.json index 9c4b4c72e..5cecb269c 100644 --- a/public/locales/zh-tw.json +++ b/public/locales/zh-tw.json @@ -1,4 +1,14 @@ { + "sd_prompt_0": "角色(你自己)", + "sd_prompt_1": "使用者(我)", + "sd_prompt_2": "情境(整篇故事)", + "sd_prompt_3": "原始最後訊息", + "sd_prompt_4": "最後訊息", + "sd_prompt_5": "肖像(你的臉)", + "sd_prompt_7": "背景", + "sd_prompt_8": "角色(多模態模型)", + "sd_prompt_9": "使用者(多模態模型)", + "sd_prompt_10": "肖像(多模態模型)", " messages": " 訊息", " words": " 文字", "# Messages to Load": "個要載入的訊息數量", @@ -365,7 +375,7 @@ "Delete World Info": "刪除世界資訊", "Delete": "刪除", "Deleting:": "刪除中:", - "Denoising strength ": "重繪幅度 ", + "Denoising strength": "重繪幅度 ", "Depth ↗": "深度 ↗", "Depth ↘": "深度 ↘", "Depth:": "深度:", @@ -535,7 +545,7 @@ "guikoboldaisettings": "GUI KoboldAI 設定", "Handle:": "控制代碼:", "HD": "高畫質", - "Height": "高度", + "Height": "高度(H)", "Helps to ban or reenforce the usage of certain words": "有助於禁止或強化某些詞語的使用", "Hide avatars in chat messages.": "在聊天訊息中隱藏頭像", "Hide character definitions from the editor panel behind a spoiler button": "在編輯器面板中將角色定義隱藏在劇透按鈕後面", @@ -544,7 +554,7 @@ "Hint": "提示訊息", "Hint: Save an API key in Horde KoboldAI API settings to use it here.": "提示訊息:在 Horde KoboldAI API 設定中儲存一個 API 金鑰,以便在此使用。", "Hint: Save an API key in the NovelAI API settings to use it here.": "提示訊息:在 NovelAI API 設定中儲存一個 API 金鑰,以便在此使用。", - "Hires steps (2nd pass) ": "高解析步驟 (2nd pass) ", + "Hires steps (2nd pass)": "高解析步驟 (2nd pass) ", "Hires. Fix": "高解析度修正", "How do I use this?": "我該如何使用這個?", "How many messages before the current end of the chat.": "在聊天目前結束前有多少訊息。", @@ -887,8 +897,8 @@ "response legth(tokens)": "回應長度(符記數)", "Restore collage avatar": "還原預設頭像", "Restore current preset": "還原目前預設", - "Restore default prompt": "恢復預設提示詞", "Restore default prompt": "還原預設提示詞", + "Restore default": "還原預設", "Restore Faces": "修復臉部", "Restore new group chat prompt": "還原新群組聊天提示詞", "Restore Previous": "恢復上一個", @@ -946,7 +956,7 @@ "sd_multimodal_captioning_txt": "對肖像使用多模態模型描述", "sd_prompt_prefix_placeholder": "使用 {prompt} 指定生成的提示詞將被插入的位置。", "sd_refine_mode": "允許在傳送至生成 API 前,手動編輯提示詞字串", - "sd_refine_mode_txt": "生成前顯示提示詞", + "sd_refine_mode_txt": "生成前編輯提示詞", "sd_snap": "對於具有特定長寬比的生成請求(如肖像、背景),將其調整至最接近的已知解析度,同時儘量保持絕對像素數(建議用於SDXL)。", "sd_snap_txt": "自動調整解析度", "sd_vlad_url": "範例: {{vlad_url}}", @@ -1165,7 +1175,7 @@ "Update every": "每次更新", "Update frequency": "更新頻率", "Update speed of streamed text.": "更新串流文字的速度", - "Upscale by ": "放大倍率 ", + "Upscale by": "放大倍率 ", "Upscaler": "放大演算法", "Usage Stats": "使用統計", "Use AI21 Tokenizer": "使用 AI21 符記器", @@ -1235,7 +1245,7 @@ "When this is off, responses will be displayed all at once when they are complete.": "關閉時,回應將在完成後一次性顯示。", "WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized❌ Disabled": "WI條目狀態:🔵常數🟢正常🔗向量❌停用", "Width of the main chat window in % of screen width": "主聊天視窗寬度占螢幕寬度的百分比", - "Width": "寬度", + "Width": "寬度(W)", "Will be automatically added as the Author's Note for all new chats.": "將自動新增為所有新聊天的作者備註", "Will be automatically added as the author's note for this character. Will be used in groups, but can't be modified when a group chat is open.": "將自動新增為此角色的作者備註。將在群組中使用,但在群組聊天開啟時無法修改", "Will be automatically added as the CFG for this character.": "將自動新增為此角色的 CFG", diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 6f43b7d9b..e2eb7ccab 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -476,7 +476,8 @@ function addPromptTemplates() { for (const [name, prompt] of Object.entries(extension_settings.sd.prompts)) { const label = $('') .text(modeLabels[name]) - .attr('for', `sd_prompt_${name}`); + .attr('for', `sd_prompt_${name}`) + .attr('data-i18n', `sd_prompt_${name}`); const textarea = $('') .addClass('textarea_compact text_pole') .attr('id', `sd_prompt_${name}`) @@ -488,6 +489,7 @@ function addPromptTemplates() { const button = $('') .addClass('menu_button fa-solid fa-undo') .attr('title', 'Restore default') + .attr('data-i18n', 'Restore default') .on('click', () => { textarea.val(promptTemplates[name]); extension_settings.sd.prompts[name] = promptTemplates[name]; diff --git a/public/scripts/extensions/stable-diffusion/settings.html b/public/scripts/extensions/stable-diffusion/settings.html index a1c9459b9..70c0913ce 100644 --- a/public/scripts/extensions/stable-diffusion/settings.html +++ b/public/scripts/extensions/stable-diffusion/settings.html @@ -239,7 +239,7 @@ - +