little fix
This commit is contained in:
parent
021edfdb2e
commit
fe89bc9cdf
|
@ -1283,6 +1283,8 @@
|
|||
"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",
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
<!-- 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>
|
||||
|
|
|
@ -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'),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
@ -406,7 +407,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'show-gallery
|
|||
showCharGallery();
|
||||
return '';
|
||||
},
|
||||
helpString: 'Shows the gallery.',
|
||||
helpString: translate('Shows the gallery.'),
|
||||
}));
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery',
|
||||
aliases: ['lg'],
|
||||
|
@ -426,7 +427,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery
|
|||
enumProvider: commonEnumProviders.characters('group'),
|
||||
}),
|
||||
],
|
||||
helpString: 'List images in the gallery of the current char / group or a specified char / group.',
|
||||
helpString: translate('List images in the gallery of the current char / group or a specified char / group.'),
|
||||
}));
|
||||
|
||||
async function listGalleryCommand(args) {
|
||||
|
|
Loading…
Reference in New Issue