Merge pull request #2551 from steve02081504/patch-4

Update zh-cn.json
This commit is contained in:
Cohee 2024-07-24 21:15:08 +03:00 committed by GitHub
commit af2dcd39e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 61 additions and 23 deletions

View File

@ -4276,7 +4276,7 @@
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</label>
<label class="checkbox_label" title="Prevents {{getvar::}} {{getglobalvar::}} macros from having literal macro-like values auto-evaluated.&NewLine;e.g. &quot;{{newline}}&quot; remains as literal string &quot;{{newline}}&quot;&NewLine;&NewLine;(This is done by internally replacing {{getvar::}} {{getglobalvar::}} macros with scoped variables.)" data-i18n="[title]Prevents {{getvar::}} {{getglobalvar::}} macros from having literal macro-like values auto-evaluated.&NewLine;e.g. &quot;{{newline}}&quot; remains as literal string &quot;{{newline}}&quot;&NewLine;&NewLine;(This is done by internally replacing {{getvar::}} {{getglobalvar::}} macros with scoped variables.)">
<label class="checkbox_label" title="Prevents {{getvar::}} {{getglobalvar::}} macros from having literal macro-like values auto-evaluated.&NewLine;e.g. &quot;{{newline}}&quot; remains as literal string &quot;{{newline}}&quot;&NewLine;&NewLine;(This is done by internally replacing {{getvar::}} {{getglobalvar::}} macros with scoped variables.)" data-i18n="[title]stscript_parser_flag_replace_getvar_label">
<input id="stscript_parser_flag_replace_getvar" type="checkbox" />
<span data-i18n="REPLACE_GETVAR"><small>REPLACE_GETVAR</small></span>
<a href="https://docs.sillytavern.app/usage/st-script/#replace-variable-macros" target="_blank" class="notes-link">

View File

@ -69,8 +69,8 @@
"Top A": "Top A",
"Quick Prompts Edit": "快速提示词编辑",
"Main": "主要",
"NSFW": "NSFW",
"Jailbreak": "越狱",
"Auxiliary": "辅助的",
"Post-History Instructions": "后续历史指令",
"Utility Prompts": "实用提示词",
"Impersonation prompt": "AI帮答提示词",
"Restore default prompt": "恢复默认提示词",
@ -217,7 +217,6 @@
"Character Names Behavior": "角色名称行为",
"Helps the model to associate messages with characters.": "有助于模型将消息与角色关联起来。",
"None": "无",
"tag_import_none": "无",
"character_names_none": "群聊和过去的角色除外。否则,请确保在提示词中提供了姓名。",
"Don't add character names.": "不添加角色名称。",
"Completion": "补全对象",
@ -318,6 +317,7 @@
"View Remaining Credits": "查看剩余额度",
"OpenRouter Model": "OpenRouter 模型",
"Model Providers": "模型提供者",
"Allow fallback providers": "允许后备提供者",
"InfermaticAI API Key": "InfermaticAI API 密钥",
"InfermaticAI Model": "InfermaticAI 模型",
"DreamGen API key": "DreamGen API 密钥",
@ -346,6 +346,7 @@
"Ollama Model": "Ollama 模型",
"Download": "下载",
"Tabby API key": "Tabby API 密钥",
"Tabby Model": "Tabby 模型",
"koboldcpp API key (optional)": "koboldcpp API 密钥(可选)",
"Example: 127.0.0.1:5001": "示例127.0.0.1:5001",
"Authorize": "授权",
@ -363,13 +364,14 @@
"This will show up as your saved preset.": "这将显示为您保存的预设。",
"Proxy Server URL": "代理服务器 URL",
"Alternative server URL (leave empty to use the default value).": "备用服务器 URL留空以使用默认值。",
"Remove your real OAI API Key from the API panel BEFORE typing anything into this box": "在键入任何内容之前,从 API 面板中删除您的真实 OAI API 密钥",
"We cannot provide support for problems encountered while using an unofficial OpenAI proxy": "我们无法为使用非官方 OpenAI 代理时遇到的问题提供支持",
"Doesn't work? Try adding": "不起作用?尝试在最后添加",
"at the end!": "",
"Proxy Password": "代理密码",
"Will be used as a password for the proxy instead of API key.": "将用作代理的密码,而不是 API 密钥。",
"Peek a password": "查看密码",
"Using a proxy that you're not running yourself is a risk to your data privacy.": "使用您自己未运行的代理会对您的数据隐私造成风险。",
"ANY support requests will be REFUSED if you are using a proxy.": "如果您使用代理,任何支持请求都将被拒绝。",
"Do not proceed if you do not agree to this!": "如果您不同意,请不要继续!",
"OpenAI API key": "OpenAI API 密钥",
"View API Usage Metrics": "查看API使用情况",
"Follow": "跟随",
@ -384,14 +386,14 @@
"Slack and Poe cookies will not work here, do not bother trying.": "Slack和Poe的cookie在这里不起作用请不要尝试。",
"Claude Model": "Claude 模型",
"Window AI Model": "Window AI 模型",
"Allow fallback routes Description": "如果所选模型无法响应您的请求,则自动选择备用模型。",
"Allow fallback models": "允许后备模型",
"Model Order": "OpenRouter 模型顺序",
"Alphabetically": "按字母顺序",
"Price": "价格(最便宜)",
"Context Size": "上下文大小",
"Group by vendors": "按供应商分组",
"Group by vendors Description": "将 OpenAI 模型放在一组,将 Anthropic 模型放在另一组,等等。可以与排序结合。",
"Allow fallback routes": "允许后备方案",
"Allow fallback routes Description": "如果所选模型无法响应您的请求,则自动选择备用模型。",
"openrouter_force_instruct": "此选项已过时,将来会被删除。要使用指令格式,请改用文本完成 API 下的 OpenRouter。",
"LEGACY": "旧版",
"Force Instruct Mode formatting": "强制指令模式格式化",
@ -440,8 +442,8 @@
"Chat Start": "聊天开始",
"Add Chat Start and Example Separator to a list of stopping strings.": "将聊天开始和示例分隔符添加到停止字符串列表中。",
"Use as Stop Strings": "用作停止字符串",
"context_allow_jailbreak": "如果在角色卡中定义并且启用了“首选角色越狱”,则在提示词末尾包含越狱。\n不建议在文本完成模型中使用此功能,否则会导致输出错误。",
"Allow Jailbreak": "允许越狱",
"context_allow_post_history_instructions": "如果在角色卡中定义并且启用了“首选角色卡说明”,则在提示末尾包含后历史说明。\n不建议在文本补全模型中使用此功能,否则会导致输出错误。",
"Allow Post-History Instructions": "允许后历史说明",
"Context Order": "上下文顺序",
"Summary": "总结",
"Author's Note": "作者注释",
@ -534,6 +536,7 @@
"Sorted Evenly": "均匀排序",
"Character Lore First": "角色世界书优先",
"Global Lore First": "全局世界书优先",
"Include names with each message into the context for scanning": "将每条消息的名称纳入上下文中以供扫描",
"Entries can activate other entries by mentioning their keywords": "条目可以通过提及它们的关键字来激活其他条目",
"Recursive Scan": "递归扫描",
"Lookup for the entry keys in the context will respect the case": "在上下文中查找条目键将保持大小写敏感",
@ -552,6 +555,7 @@
"Close all Entries": "关闭所有条目",
"New Entry": "新条目",
"Fill empty Memo/Titles with Keywords": "使用关键字填充空的备忘录/标题",
"Apply custom sorting as Order": "应用自定义排序作为顺序",
"Import World Info": "导入世界书",
"Export World Info": "导出世界书",
"Duplicate World Info": "复制世界书",
@ -659,14 +663,15 @@
"Defines on importing cards which action should be chosen for importing its listed tags. 'Ask' will always display the dialog.": "定义在导入卡片时应选择哪种操作来导入其列出的标签。“询问”将始终显示对话框。",
"Import Card Tags": "导入卡片标签",
"Ask": "询问",
"tag_import_none": "无",
"tag_import_all": "全部",
"Existing": "现存的",
"Use fuzzy matching, and search characters in the list by all data fields, not just by a name substring": "使用模糊匹配,在列表中通过所有数据字段搜索角色,而不仅仅是名称子字符串",
"Advanced Character Search": "高级角色搜索",
"If checked and the character card contains a prompt override (System Prompt), use that instead": "如果角色卡包含提示词,则使用它替代系统提示词",
"Prefer Character Card Prompt": "角色卡提示词优先",
"If checked and the character card contains a jailbreak override (Post History Instruction), use that instead": "如果角色卡包含越狱(后置历史记录指令),则使用它替代系统越狱",
"Prefer Character Card Jailbreak": "角色卡越狱优先",
"If checked and the character card contains a Post-History Instructions override, use that instead": "如果选中并且角色卡包含后历史指令覆盖,则使用它。",
"Prefer Character Card Instructions": "首选角色卡说明",
"Avoid cropping and resizing imported character images. When off, crop/resize to 512x768": "避免裁剪和调整导入的角色图像的大小。关闭时,裁剪/调整大小为 512x768。",
"Never resize avatars": "永不调整头像大小",
"Show actual file names on the disk, in the characters list display only": "在角色列表显示中,显示磁盘上实际的文件名。",
@ -739,6 +744,8 @@
"Log prompts to console": "将提示词记录到控制台",
"Requests logprobs from the API for the Token Probabilities feature": "从API请求对数概率数据用于实现词符概率功能。",
"Request token probabilities": "请求词符概率",
"In group chat, highlight the character(s) that are currently queued to generate responses and the order in which they will respond.": "在群聊中,突出显示当前排队等待生成响应的角色以及他们响应的顺序。",
"Show group chat queue": "显示群聊队列",
"Automatically reject and re-generate AI message based on configurable criteria": "根据可配置的条件自动拒绝并重新生成AI消息",
"Auto-swipe": "自动滑动",
"Enable the auto-swipe function. Settings in this section only have an effect when auto-swipe is enabled": "启用自动滑动功能。仅当启用自动滑动时,本节中的设置才会生效",
@ -770,7 +777,7 @@
"Parser Flags": "解析器标志",
"Switch to stricter escaping, allowing all delimiting characters to be escaped with a backslash, and backslashes to be escaped as well.": "切换到更严格的转义,允许所有分隔字符用反斜杠转义,并且反斜杠也可以转义。",
"STRICT_ESCAPING": "严格转义",
"Replace all {{getvar::}} and {{getglobalvar::}} macros with scoped variables to avoid double macro substitution.": "用范围变量替换所有 {{getvar::}} 和 {{getglobalvar::}} 宏,以避免双重宏替换。",
"stscript_parser_flag_replace_getvar_label": "防止 {{getvar::}} {{getglobalvar::}} 宏具有自动评估的文字宏类值。\n例如“{{newline}}”保留为文字字符串“{{newline}}”\n\n这是通过在内部用范围变量替换 {{getvar::}} {{getglobalvar::}} 宏来实现的。)",
"REPLACE_GETVAR": "替换GETVAR",
"Change Background Image": "更改背景图片",
"Filter": "搜索",
@ -921,7 +928,7 @@
"Insert {{original}} into either box to include the respective default prompt from system settings.": "将{{original}}插入到任一框中,以包含系统设置中的相应默认提示词。",
"Main Prompt": "主要提示词",
"Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)": "此处的任何内容都将替换用于此角色的默认主提示词。v2规范system_prompt",
"Any contents here will replace the default Jailbreak Prompt used for this character. (v2 spec: post_history_instructions)": "此处的任何内容都将替换用于此角色的默认越狱提示词。v2规范post_history_instructions",
"Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)": "此处的任何内容都将替换此角色使用的默认后历史说明。\nv2 规范post_history_instructions",
"Creator's Metadata (Not sent with the AI prompt)": "创作者的元数据不与AI提示词一起发送",
"Creator's Metadata": "创作者的元数据",
"(Not sent with the AI Prompt)": "(不随 AI 提示词发送)",
@ -957,9 +964,6 @@
"Lock": "加锁",
"Unlock": "解锁",
"Delete background": "删除背景",
"Chat Scenario Override": "聊天场景覆盖",
"Remove": "移除",
"Type here...": "在此处输入...",
"Chat Lorebook": "聊天知识书",
"Chat Lorebook for": "聊天知识书",
"chat_world_template_txt": "选定的世界信息将绑定到此聊天。生成 AI 回复时,\n它将与全球和角色传说书中的条目相结合。",
@ -1047,6 +1051,7 @@
"Use Probability": "使用概率",
"Add Memo": "添加备忘录",
"Text or token ids": "文本或 [token ID]",
"Type here...": "在此处输入...",
"close": "关闭",
"prompt_manager_edit": "编辑",
"prompt_manager_name": "姓名",
@ -1054,8 +1059,9 @@
"To whom this message will be attributed.": "此消息应归于谁。",
"AI Assistant": "AI助手",
"prompt_manager_position": "位置",
"Injection position. Next to other prompts (relative) or in-chat (absolute).": "注入位置。其他提示词旁边(相对)或在聊天中(绝对)。",
"Injection position. Relative (to other prompts in prompt manager) or In-chat @ Depth.": "注入位置。相对(相对于提示管理器中的其他提示)或在聊天中@深度。",
"prompt_manager_relative": "相对",
"prompt_manager_in_chat": "聊天中",
"prompt_manager_depth": "深度",
"Injection depth. 0 = after the last message, 1 = before the last message, etc.": "注入深度。0 = 在最后一条消息之后1 = 在最后一条消息之前,等等。",
"Prompt": "提示词",
@ -1187,7 +1193,12 @@
"These characters are the finalists of character design contests and have remarkable quality.": "这些角色都是角色设计大赛的入围作品,品质十分出色。",
"Featured Characters": "特色角色",
"Download Extensions & Assets": "下载扩展和资源菜单",
"Load a custom asset list or select": "加载自定义资产列表或选择",
"to install 3rd party extensions.": "安装第三方扩展。",
"Assets URL": "资产网址",
"load_asset_list_desc": "根据资产列表文件加载扩展和资产列表。\n\n此字段中的默认资产 URL 指向官方第一方扩展和资产列表。\n如果您有自定义资产列表可以在此处插入。\n\n要安装单个第三方扩展请使用右上角的“安装扩展”按钮。",
"Load an asset list": "加载资产列表",
"Load Asset List": "加载资产列表",
"Characters": "人物",
"Attach a File": "附加文件",
"Enter a URL or the ID of a Fandom wiki page to scrape:": "输入要抓取的 Fandom wiki 页面的 URL 或 ID",
@ -1271,6 +1282,7 @@
"Put images with expressions there. File names should follow the pattern:": "将带有表情的图像放在那里。文件名应遵循以下模式:",
"expression_label_pattern": "[表达式标签].[图像格式]",
"Sprite set:": "表情集:",
"Show Gallery": "展示图库",
"ext_sum_title": "总结",
"ext_sum_with": "总结如下:",
"ext_sum_main_api": "主要 API",
@ -1361,7 +1373,7 @@
"ext_regex_scoped_scripts_desc": "只影响当前角色,保存在角色卡片中",
"Regex Editor": "正则表达式编辑器",
"Test Mode": "测试模式",
"ext_regex_desc": "Regex 是一款使用正则表达式查找/替换字符串的工具。如果您想了解更多信息,请点击标题旁边的 ?。",
"ext_regex_desc": "正则是一款使用正则表达式查找/替换字符串的工具。如果您想了解更多信息,请点击标题旁边的 ?。",
"Input": "输入",
"ext_regex_test_input_placeholder": "在此输入...",
"Output": "输出",
@ -1445,6 +1457,10 @@
"Delete workflow": "删除工作流",
"Enhance": "提高",
"Refine": "优化",
"API Key": "API 密钥",
"Click to set": "点击设置",
"You can find your API key in the Stability AI dashboard.": "您可以在 Stability AI 仪表板中找到您的 API 密钥。",
"Style Preset": "风格预设",
"Sampling method": "采样方法",
"Scheduler": "调度器",
"Resolution": "分辨率",
@ -1564,12 +1580,10 @@
"New Tags": "新标签",
"Folder Tags": "文件夹标签",
"The following tags will be auto-imported based on the currently selected folders": "根据当前选定的文件夹将自动导入以下标签",
"Remember my choice": "记住我的选择",
"Remember the chosen import option If anything besides 'Cancel' is selected, this dialog will not show up anymore. To change this, go to the settings and modify \"Tag Import Option\". If the \"Import\" option is chosen, the global setting will stay on \"Ask\".": "记住所选的导入选项\n如果选择了“取消”以外的任何选项此对话框将不再显示。\n要更改此设置请转到设置并修改“标签导入选项”。\n\n如果选择了“导入”选项则全局设置将保留为“询问”。",
"Import None": "不导入",
"Import All": "全部导入",
"Import Existing": "导入现有",
"Import tags button": "导入",
"Import": "导入",
"Include Body Parameters": "包括主体参数",
"custom_include_body_desc": "聊天完成请求主体中要包含的参数YAML 对象)\n\n示例\n- top_k20\n- repetition_penalty1.1",
"Exclude Body Parameters": "排除主体参数",
@ -1671,6 +1685,9 @@
"char_import_8": "RisuRealm 角色(直链)",
"Supports importing multiple characters.": "支持导入多个角色。",
"Write each URL or ID into a new line.": "将每个 URL 或 ID 写入新行。",
"Show Raw Prompt": "显示原始提示",
"Copy Prompt": "复制提示",
"Show Prompt Differences": "显示提示差异",
"System-wide Replacement Macros (in order of evaluation):": "系统范围的替换宏(按评估顺序):",
"help_macros_1": "仅适用于斜线命令批处理。替换为上一个命令的返回结果。",
"help_macros_2": "仅插入一个换行符。",
@ -1687,6 +1704,7 @@
"help_macros_13": "角色对话示例",
"help_macros_14": "未格式化的对话示例",
"(only for Story String)": "(仅适用于故事字符串)",
"help_macros_summary": "“Summarize”扩展生成的最新聊天摘要如果有。",
"help_macros_15": "您当前的 Persona 用户名",
"help_macros_16": "角色的名字",
"help_macros_17": "角色的版本号",
@ -1700,6 +1718,7 @@
"help_macros_22": "上下文中包含的第一条消息的 ID。要求在当前会话中至少运行一次生成。",
"help_macros_23": "最后一条聊天消息中当前滑动的 ID以 1 为基数)。如果最后一条消息是用户或提示隐藏的,则为空字符串。",
"help_macros_24": "最后一条聊天消息中的滑动次数。如果最后一条消息是用户隐藏或提示隐藏的,则为空字符串。",
"help_macros_reverse": "反转宏的内容。",
"help_macros_25": "您可以在此处留言宏将被替换为空白内容。AI 看不到。",
"help_macros_26": "当前时间",
"help_macros_27": "当前日期",
@ -1769,10 +1788,21 @@
"prompt_manager_tokens": "词符",
"Are you sure you want to reset your settings to factory defaults?": "您确定要将设置重置为出厂默认设置吗?",
"Don't forget to save a snapshot of your settings before proceeding.": "在继续之前,不要忘记保存您的设置快照。",
"Chat Scenario Override": "聊天场景覆盖",
"Remove": "移除",
"Settings Snapshots": "设置快照",
"Record a snapshot of your current settings.": "记录当前设置的快照。",
"Make a Snapshot": "制作快照",
"Restore this snapshot": "恢复此快照",
"Downloader Options": "下载器选项",
"Extra parameters for downloading/HuggingFace API": "下载/HuggingFace API 的额外参数。如果不确定,请将其留空。",
"Revision": "修订",
"Folder Name": "输出文件夹名称",
"HF Token": "HF代币",
"Include Patterns": "包含模式",
"Glob patterns of files to include in the download.": "要包含在下载中的文件的全局模式。每个模式用换行符分隔。",
"Exclude Patterns": "排除模式",
"Glob patterns of files to exclude in the download.": "下载中要排除的文件的 Glob 模式。每个模式用换行符分隔。",
"Hi,": "嘿,",
"To enable multi-account features, restart the SillyTavern server with": "要启用多帐户功能,请使用以下命令重新启动 SillyTavern 服务器",
"set to true in the config.yaml file.": "在 config.yaml 文件中设置为 true。",

View File

@ -0,0 +1,2 @@
<!-- I18n data for tools used to auto generate translations -->
<div data-i18n="Show Gallery">Show Gallery</div>

View File

@ -13,6 +13,7 @@ import { SlashCommand } from '../../slash-commands/SlashCommand.js';
import { ARGUMENT_TYPE, SlashCommandNamedArgument } from '../../slash-commands/SlashCommandArgument.js';
import { DragAndDropHandler } from '../../dragdrop.js';
import { commonEnumProviders } from '../../slash-commands/SlashCommandCommonEnumsProvider.js';
import { translate } from '../../i18n.js';
const extensionName = 'gallery';
const extensionFolderPath = `scripts/extensions/${extensionName}/`;
@ -228,7 +229,7 @@ $(document).ready(function () {
$('#char-management-dropdown').append(
$('<option>', {
id: 'show_char_gallery',
text: 'Show Gallery',
text: translate('Show Gallery'),
}),
);
});

View File

@ -0,0 +1,5 @@
<!-- I18n data for tools used to auto generate translations -->
<div data-i18n="Import None">Import None</div>
<div data-i18n="Import All">Import All</div>
<div data-i18n="Import Existing">Import Existing</div>
<div data-i18n="Import">Import</div>