Merge pull request #2618 from steve02081504/patch-4 Update zh-cn.json

444339e1568c383cea1e2476c35e5885c7f9be98

Wolfsblvt <wolfsblvt@gmail.com>

Signed
3 files changed, +19 -23Showing whitespace changes
public/locales/zh-cn.json+9 -2
@@ -707,10 +707,10 @@
707707 "Restore User Input": "恢复用户输入",
708708 "Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "允许通过拖动重新定位某些UI元素。仅适用于PC,对移动设备无影响",
709709 "Movable UI Panels": "可移动 UI 面板",
710+ "Reset MovingUI panel sizes/locations.": "重置 MovingUI 面板大小/位置。",
710711 "MovingUI preset. Predefined/saved draggable positions": "可移动UI预设。预定义/保存的可拖动位置",
711712 "MUI Preset": "可移动 UI 预设",
712713 "Save movingUI changes to a new file": "将可移动UI更改保存到新文件中",
713- "Reset MovingUI panel sizes/locations.": "重置 MovingUI 面板大小/位置。",
714714 "Apply a custom CSS style to all of the ST GUI": "将自定义CSS样式应用于所有ST GUI",
715715 "Custom CSS": "自定义 CSS",
716716 "Expand the editor": "展开编辑器",
@@ -730,6 +730,8 @@
730730 "Press Send to continue": "按发送键以继续",
731731 "Show a button in the input area to ask the AI to continue (extend) its last message": "在输入区域中显示一个按钮,要求AI继续(延长)其上一条消息",
732732 "Quick 'Continue' button": "快速“继续”按钮",
733+ "Show a button in the input area to ask the AI to impersonate your character for a single message": "在输入区域中显示一个按钮,让 AI 模仿你的角色发送一条消息。",
734+ "Quick 'Impersonate' button": "快速“模仿”按钮",
733735 "Show arrow buttons on the last in-chat message to generate alternative AI responses. Both PC and mobile": "在聊天窗口的最后一条信息上显示箭头按钮,以生成AI的其他回复选项。适用于电脑和手机端。",
734736 "Swipes": "刷新回复按钮",
735737 "Allow using swiping gestures on the last in-chat message to trigger swipe generation. Mobile only, no effect on PC": "允许在最后一条聊天消息上使用滑动手势触发滑动生成。仅适用于移动设备,对PC无影响",
@@ -1183,6 +1185,7 @@
11831185 "Pause script execution": "暂停执行脚本",
11841186 "Abort script execution": "中止执行脚本",
11851187 "Abort request": "中止请求",
1188+ "Ask AI to write your message for you": "让AI为您撰写消息",
11861189 "Continue the last message": "继续上一条消息",
11871190 "Send a message": "发送消息",
11881191 "Close chat": "关闭聊天",
@@ -1194,7 +1197,6 @@
11941197 "Manage chat files": "管理聊天文件",
11951198 "Delete messages": "删除消息",
11961199 "Regenerate": "重新生成",
1197- "Ask AI to write your message for you": "请求AI为您撰写消息",
11981200 "Impersonate": "AI 帮答",
11991201 "Continue": "继续",
12001202 "Bind user name to that avatar": "将用户名称绑定到该头像",
@@ -1429,6 +1431,7 @@
14291431 "ext_regex_export_script": "导出脚本",
14301432 "ext_regex_delete_script": "删除脚本",
14311433 "Trigger Stable Diffusion": "触发Stable Diffusion",
1434+ "Abort current image generation task": "中止当前图像生成",
14321435 "sd_Yourself": "你自己",
14331436 "sd_Your_Face": "你的脸",
14341437 "sd_Me": "我",
@@ -1582,6 +1585,10 @@
15821585 "Only used when Main API is selected.": "仅在选择主 API 时使用。",
15831586 "Old messages are vectorized gradually as you chat. To process all previous messages, click the button below.": "随着您聊天,旧消息会逐渐矢量化。\n要处理所有以前的消息,请单击下面的按钮。",
15841587 "View Stats": "查看统计数据",
1588+ "Title/Memo": "标题/备忘录",
1589+ "Status": "状态",
1590+ "Position": "位置",
1591+ "Trigger %": "触发率 %",
15851592 "Manager Users": "管理用户",
15861593 "New User": "新用户",
15871594 "Status:": "地位:",
public/scripts/templates/WorldInfoKeywordHeaders.html+8 -0
@@ -0,0 +1,8 @@
1+<div id="WIEntryHeaderTitlesPC" class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 4.5em;">
2+ <small class="flex1" data-i18n="Title/Memo">Title/Memo</small>
3+ <small style="width: calc(3.5em + 15px)" data-i18n="Status">Status</small>
4+ <small style="width: calc(3.5em + 30px)" data-i18n="Position">Position</small>
5+ <small style="width: calc(3.5em + 20px)" data-i18n="Depth">Depth</small>
6+ <small style="width: calc(3.5em + 20px)" data-i18n="Order">Order</small>
7+ <small style="width: calc(3.5em + 15px)" data-i18n="Trigger %">Trigger %</small>
8+</div>
public/scripts/world-info.js+2 -21
@@ -17,6 +17,7 @@ import { commonEnumProviders, enumIcons } from './slash-commands/SlashCommandCom
1717import { SlashCommandClosure } from './slash-commands/SlashCommandClosure.js';
1818import { callGenericPopup, Popup, POPUP_TYPE } from './popup.js';
1919import { StructuredCloneMap } from './util/StructuredCloneMap.js';
20+import { renderTemplateAsync } from './templates.js';
2021
2122export const world_info_insertion_strategy = {
2223 evenly: 0,
@@ -1854,27 +1855,7 @@ function displayWorldEntries(name, data, navigation = navigation_option.none, fl
18541855 worldEntriesList.find('*').off();
18551856 worldEntriesList.empty();
18561857
18571858 const keywordHeaders = `await renderTemplateAsync('worldInfoKeywordHeaders');
1858- <div id="WIEntryHeaderTitlesPC" class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 4.5em;">
1859- <small class="flex1">
1860- Title/Memo
1861- </small>
1862- <small style="width: calc(3.5em + 15px)">
1863- Status
1864- </small>
1865- <small style="width: calc(3.5em + 30px)">
1866- Position
1867- </small>
1868- <small style="width: calc(3.5em + 20px)">
1869- Depth
1870- </small>
1871- <small style="width: calc(3.5em + 20px)">
1872- Order
1873- </small>
1874- <small style="width: calc(3.5em + 15px)">
1875- Trigger %
1876- </small>
1877- </div>`;
18781859 const blocksPromises = page.map(async (entry) => await getWorldEntry(name, data, entry)).filter(x => x);
18791860 const blocks = await Promise.all(blocksPromises);
18801861 const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom';