This commit is contained in:
steve02081504 2024-07-25 01:31:18 +08:00
parent 1f30d6d850
commit 3e5f98223d
6 changed files with 6 additions and 10 deletions

View File

@ -4275,7 +4275,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. e.g. &quot;{{newline}}&quot; remains as literal string &quot;{{newline}}&quot; (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

@ -777,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": "严格转义",
"Prevents {{getvar::}} {{getglobalvar::}} macros from having literal macro-like values auto-evaluated. e.g. \"{{newline}}\" remains as literal string \"{{newline}}\" (This is done by internally replacing {{getvar::}} {{getglobalvar::}} macros with scoped variables.)": "防止 {{getvar::}} {{getglobalvar::}} 宏具有自动评估的文字宏类值。\n例如“{{newline}}”保留为文字字符串“{{newline}}”\n\n这是通过在内部用范围变量替换 {{getvar::}} {{getglobalvar::}} 宏来实现的。)",
"stscript_parser_flag_replace_getvar_label": "防止 {{getvar::}} {{getglobalvar::}} 宏具有自动评估的文字宏类值。\n例如“{{newline}}”保留为文字字符串“{{newline}}”\n\n这是通过在内部用范围变量替换 {{getvar::}} {{getglobalvar::}} 宏来实现的。)",
"REPLACE_GETVAR": "替换GETVAR",
"Change Background Image": "更改背景图片",
"Filter": "搜索",
@ -1283,8 +1283,6 @@
"expression_label_pattern": "[表达式标签].[图像格式]",
"Sprite set:": "表情集:",
"Show Gallery": "展示图库",
"Shows the gallery.": "显示画廊。",
"List images in the gallery of the current char / group or a specified char / group.": "列出图库中当前角色/组或指定角色/组的图像。",
"ext_sum_title": "总结",
"ext_sum_with": "总结如下:",
"ext_sum_main_api": "主要 API",

View File

@ -1,4 +0,0 @@
<!-- I18n data for tools used to auto generate translations -->
<div data-i18n="Show Gallery">Show Gallery</div>
<div data-i18n="Shows the gallery.">Shows the gallery.</div>
<div data-i18n="List images in the gallery of the current char / group or a specified char / group.">List images in the gallery of the current char / group or a specified char / group.</div>

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

@ -407,7 +407,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'show-gallery
showCharGallery();
return '';
},
helpString: translate('Shows the gallery.'),
helpString: 'Shows the gallery.',
}));
SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery',
aliases: ['lg'],
@ -427,7 +427,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery
enumProvider: commonEnumProviders.characters('group'),
}),
],
helpString: translate('List images in the gallery of the current char / group or a specified char / group.'),
helpString: 'List images in the gallery of the current char / group or a specified char / group.',
}));
async function listGalleryCommand(args) {