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

444339e1568c383cea1e2476c35e5885c7f9be98

Wolfsblvt <wolfsblvt@gmail.com>

Signed
3 files changed, +19 -23Ignore whitespace
public/locales/zh-cn.json+9 -2
@@ -707,10 +707,10 @@
707 "Restore User Input": "恢复用户输入",707 "Restore User Input": "恢复用户输入",
708 "Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "允许通过拖动重新定位某些UI元素。仅适用于PC,对移动设备无影响",708 "Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "允许通过拖动重新定位某些UI元素。仅适用于PC,对移动设备无影响",
709 "Movable UI Panels": "可移动 UI 面板",709 "Movable UI Panels": "可移动 UI 面板",
710 "Reset MovingUI panel sizes/locations.": "重置 MovingUI 面板大小/位置。",
710 "MovingUI preset. Predefined/saved draggable positions": "可移动UI预设。预定义/保存的可拖动位置",711 "MovingUI preset. Predefined/saved draggable positions": "可移动UI预设。预定义/保存的可拖动位置",
711 "MUI Preset": "可移动 UI 预设",712 "MUI Preset": "可移动 UI 预设",
712 "Save movingUI changes to a new file": "将可移动UI更改保存到新文件中",713 "Save movingUI changes to a new file": "将可移动UI更改保存到新文件中",
713 "Reset MovingUI panel sizes/locations.": "重置 MovingUI 面板大小/位置。",
714 "Apply a custom CSS style to all of the ST GUI": "将自定义CSS样式应用于所有ST GUI",714 "Apply a custom CSS style to all of the ST GUI": "将自定义CSS样式应用于所有ST GUI",
715 "Custom CSS": "自定义 CSS",715 "Custom CSS": "自定义 CSS",
716 "Expand the editor": "展开编辑器",716 "Expand the editor": "展开编辑器",
@@ -730,6 +730,8 @@
730 "Press Send to continue": "按发送键以继续",730 "Press Send to continue": "按发送键以继续",
731 "Show a button in the input area to ask the AI to continue (extend) its last message": "在输入区域中显示一个按钮,要求AI继续(延长)其上一条消息",731 "Show a button in the input area to ask the AI to continue (extend) its last message": "在输入区域中显示一个按钮,要求AI继续(延长)其上一条消息",
732 "Quick 'Continue' button": "快速“继续”按钮",732 "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": "快速“模仿”按钮",
733 "Show arrow buttons on the last in-chat message to generate alternative AI responses. Both PC and mobile": "在聊天窗口的最后一条信息上显示箭头按钮,以生成AI的其他回复选项。适用于电脑和手机端。",735 "Show arrow buttons on the last in-chat message to generate alternative AI responses. Both PC and mobile": "在聊天窗口的最后一条信息上显示箭头按钮,以生成AI的其他回复选项。适用于电脑和手机端。",
734 "Swipes": "刷新回复按钮",736 "Swipes": "刷新回复按钮",
735 "Allow using swiping gestures on the last in-chat message to trigger swipe generation. Mobile only, no effect on PC": "允许在最后一条聊天消息上使用滑动手势触发滑动生成。仅适用于移动设备,对PC无影响",737 "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 @@
1183 "Pause script execution": "暂停执行脚本",1185 "Pause script execution": "暂停执行脚本",
1184 "Abort script execution": "中止执行脚本",1186 "Abort script execution": "中止执行脚本",
1185 "Abort request": "中止请求",1187 "Abort request": "中止请求",
1188 "Ask AI to write your message for you": "让AI为您撰写消息",
1186 "Continue the last message": "继续上一条消息",1189 "Continue the last message": "继续上一条消息",
1187 "Send a message": "发送消息",1190 "Send a message": "发送消息",
1188 "Close chat": "关闭聊天",1191 "Close chat": "关闭聊天",
@@ -1194,7 +1197,6 @@
1194 "Manage chat files": "管理聊天文件",1197 "Manage chat files": "管理聊天文件",
1195 "Delete messages": "删除消息",1198 "Delete messages": "删除消息",
1196 "Regenerate": "重新生成",1199 "Regenerate": "重新生成",
1197 "Ask AI to write your message for you": "请求AI为您撰写消息",
1198 "Impersonate": "AI 帮答",1200 "Impersonate": "AI 帮答",
1199 "Continue": "继续",1201 "Continue": "继续",
1200 "Bind user name to that avatar": "将用户名称绑定到该头像",1202 "Bind user name to that avatar": "将用户名称绑定到该头像",
@@ -1429,6 +1431,7 @@
1429 "ext_regex_export_script": "导出脚本",1431 "ext_regex_export_script": "导出脚本",
1430 "ext_regex_delete_script": "删除脚本",1432 "ext_regex_delete_script": "删除脚本",
1431 "Trigger Stable Diffusion": "触发Stable Diffusion",1433 "Trigger Stable Diffusion": "触发Stable Diffusion",
1434 "Abort current image generation task": "中止当前图像生成",
1432 "sd_Yourself": "你自己",1435 "sd_Yourself": "你自己",
1433 "sd_Your_Face": "你的脸",1436 "sd_Your_Face": "你的脸",
1434 "sd_Me": "我",1437 "sd_Me": "我",
@@ -1582,6 +1585,10 @@
1582 "Only used when Main API is selected.": "仅在选择主 API 时使用。",1585 "Only used when Main API is selected.": "仅在选择主 API 时使用。",
1583 "Old messages are vectorized gradually as you chat. To process all previous messages, click the button below.": "随着您聊天,旧消息会逐渐矢量化。\n要处理所有以前的消息,请单击下面的按钮。",1586 "Old messages are vectorized gradually as you chat. To process all previous messages, click the button below.": "随着您聊天,旧消息会逐渐矢量化。\n要处理所有以前的消息,请单击下面的按钮。",
1584 "View Stats": "查看统计数据",1587 "View Stats": "查看统计数据",
1588 "Title/Memo": "标题/备忘录",
1589 "Status": "状态",
1590 "Position": "位置",
1591 "Trigger %": "触发率 %",
1585 "Manager Users": "管理用户",1592 "Manager Users": "管理用户",
1586 "New User": "新用户",1593 "New User": "新用户",
1587 "Status:": "地位:",1594 "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
17import { SlashCommandClosure } from './slash-commands/SlashCommandClosure.js';17import { SlashCommandClosure } from './slash-commands/SlashCommandClosure.js';
18import { callGenericPopup, Popup, POPUP_TYPE } from './popup.js';18import { callGenericPopup, Popup, POPUP_TYPE } from './popup.js';
19import { StructuredCloneMap } from './util/StructuredCloneMap.js';19import { StructuredCloneMap } from './util/StructuredCloneMap.js';
20import { renderTemplateAsync } from './templates.js';
2021
21export const world_info_insertion_strategy = {22export const world_info_insertion_strategy = {
22 evenly: 0,23 evenly: 0,
@@ -1854,27 +1855,7 @@ function displayWorldEntries(name, data, navigation = navigation_option.none, fl
1854 worldEntriesList.find('*').off();1855 worldEntriesList.find('*').off();
1855 worldEntriesList.empty();1856 worldEntriesList.empty();
18561857
1857 const keywordHeaders = `1858 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>`;
1878 const blocksPromises = page.map(async (entry) => await getWorldEntry(name, data, entry)).filter(x => x);1859 const blocksPromises = page.map(async (entry) => await getWorldEntry(name, data, entry)).filter(x => x);
1879 const blocks = await Promise.all(blocksPromises);1860 const blocks = await Promise.all(blocksPromises);
1880 const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom';1861 const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom';