Merge pull request #2618 from steve02081504/patch-4

Update zh-cn.json
This commit is contained in:
Wolfsblvt 2024-08-06 11:31:09 +02:00 committed by GitHub
commit 444339e156
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 23 deletions

View File

@ -707,10 +707,10 @@
"Restore User Input": "恢复用户输入",
"Allow repositioning certain UI elements by dragging them. PC only, no effect on mobile": "允许通过拖动重新定位某些UI元素。仅适用于PC对移动设备无影响",
"Movable UI Panels": "可移动 UI 面板",
"Reset MovingUI panel sizes/locations.": "重置 MovingUI 面板大小/位置。",
"MovingUI preset. Predefined/saved draggable positions": "可移动UI预设。预定义/保存的可拖动位置",
"MUI Preset": "可移动 UI 预设",
"Save movingUI changes to a new file": "将可移动UI更改保存到新文件中",
"Reset MovingUI panel sizes/locations.": "重置 MovingUI 面板大小/位置。",
"Apply a custom CSS style to all of the ST GUI": "将自定义CSS样式应用于所有ST GUI",
"Custom CSS": "自定义 CSS",
"Expand the editor": "展开编辑器",
@ -730,6 +730,8 @@
"Press Send to continue": "按发送键以继续",
"Show a button in the input area to ask the AI to continue (extend) its last message": "在输入区域中显示一个按钮要求AI继续延长其上一条消息",
"Quick 'Continue' button": "快速“继续”按钮",
"Show a button in the input area to ask the AI to impersonate your character for a single message": "在输入区域中显示一个按钮,让 AI 模仿你的角色发送一条消息。",
"Quick 'Impersonate' button": "快速“模仿”按钮",
"Show arrow buttons on the last in-chat message to generate alternative AI responses. Both PC and mobile": "在聊天窗口的最后一条信息上显示箭头按钮以生成AI的其他回复选项。适用于电脑和手机端。",
"Swipes": "刷新回复按钮",
"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 @@
"Pause script execution": "暂停执行脚本",
"Abort script execution": "中止执行脚本",
"Abort request": "中止请求",
"Ask AI to write your message for you": "让AI为您撰写消息",
"Continue the last message": "继续上一条消息",
"Send a message": "发送消息",
"Close chat": "关闭聊天",
@ -1194,7 +1197,6 @@
"Manage chat files": "管理聊天文件",
"Delete messages": "删除消息",
"Regenerate": "重新生成",
"Ask AI to write your message for you": "请求AI为您撰写消息",
"Impersonate": "AI 帮答",
"Continue": "继续",
"Bind user name to that avatar": "将用户名称绑定到该头像",
@ -1429,6 +1431,7 @@
"ext_regex_export_script": "导出脚本",
"ext_regex_delete_script": "删除脚本",
"Trigger Stable Diffusion": "触发Stable Diffusion",
"Abort current image generation task": "中止当前图像生成",
"sd_Yourself": "你自己",
"sd_Your_Face": "你的脸",
"sd_Me": "我",
@ -1582,6 +1585,10 @@
"Only used when Main API is selected.": "仅在选择主 API 时使用。",
"Old messages are vectorized gradually as you chat. To process all previous messages, click the button below.": "随着您聊天,旧消息会逐渐矢量化。\n要处理所有以前的消息请单击下面的按钮。",
"View Stats": "查看统计数据",
"Title/Memo": "标题/备忘录",
"Status": "状态",
"Position": "位置",
"Trigger %": "触发率 ",
"Manager Users": "管理用户",
"New User": "新用户",
"Status:": "地位:",

View File

@ -0,0 +1,8 @@
<div id="WIEntryHeaderTitlesPC" class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 4.5em;">
<small class="flex1" data-i18n="Title/Memo">Title/Memo</small>
<small style="width: calc(3.5em + 15px)" data-i18n="Status">Status</small>
<small style="width: calc(3.5em + 30px)" data-i18n="Position">Position</small>
<small style="width: calc(3.5em + 20px)" data-i18n="Depth">Depth</small>
<small style="width: calc(3.5em + 20px)" data-i18n="Order">Order</small>
<small style="width: calc(3.5em + 15px)" data-i18n="Trigger %">Trigger %</small>
</div>

View File

@ -17,6 +17,7 @@ import { commonEnumProviders, enumIcons } from './slash-commands/SlashCommandCom
import { SlashCommandClosure } from './slash-commands/SlashCommandClosure.js';
import { callGenericPopup, Popup, POPUP_TYPE } from './popup.js';
import { StructuredCloneMap } from './util/StructuredCloneMap.js';
import { renderTemplateAsync } from './templates.js';
export const world_info_insertion_strategy = {
evenly: 0,
@ -1854,27 +1855,7 @@ function displayWorldEntries(name, data, navigation = navigation_option.none, fl
worldEntriesList.find('*').off();
worldEntriesList.empty();
const keywordHeaders = `
<div id="WIEntryHeaderTitlesPC" class="flex-container wide100p spaceBetween justifyCenter textAlignCenter" style="padding:0 4.5em;">
<small class="flex1">
Title/Memo
</small>
<small style="width: calc(3.5em + 15px)">
Status
</small>
<small style="width: calc(3.5em + 30px)">
Position
</small>
<small style="width: calc(3.5em + 20px)">
Depth
</small>
<small style="width: calc(3.5em + 20px)">
Order
</small>
<small style="width: calc(3.5em + 15px)">
Trigger %
</small>
</div>`;
const keywordHeaders = await renderTemplateAsync('worldInfoKeywordHeaders');
const blocksPromises = page.map(async (entry) => await getWorldEntry(name, data, entry)).filter(x => x);
const blocks = await Promise.all(blocksPromises);
const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom';