little fix

fe89bc9cdfab2163e57746cebae2840303672bd8

steve02081504 <steve02081504@EDEN.fukwold>

3 files changed, +8 -3Showing whitespace changes
public/locales/zh-cn.json+2 -0
@@ -1283,6 +1283,8 @@
12831283 "expression_label_pattern": "[表达式标签].[图像格式]",
12841284 "Sprite set:": "表情集:",
12851285 "Show Gallery": "展示图库",
1286+ "Shows the gallery.": "显示画廊。",
1287+ "List images in the gallery of the current char / group or a specified char / group.": "列出图库中当前角色/组或指定角色/组的图像。",
12861288 "ext_sum_title": "总结",
12871289 "ext_sum_with": "总结如下:",
12881290 "ext_sum_main_api": "主要 API",
public/scripts/extensions/gallery/GalleryI18nData.html+2 -0
@@ -1,2 +1,4 @@
11<!-- I18n data for tools used to auto generate translations -->
22<div data-i18n="Show Gallery">Show Gallery</div>
3+<div data-i18n="Shows the gallery.">Shows the gallery.</div>
4+<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>
public/scripts/extensions/gallery/index.js+4 -3
@@ -13,6 +13,7 @@ import { SlashCommand } from '../../slash-commands/SlashCommand.js';
1313import { ARGUMENT_TYPE, SlashCommandNamedArgument } from '../../slash-commands/SlashCommandArgument.js';
1414import { DragAndDropHandler } from '../../dragdrop.js';
1515import { commonEnumProviders } from '../../slash-commands/SlashCommandCommonEnumsProvider.js';
16+import { translate } from '../../i18n.js';
1617
1718const extensionName = 'gallery';
1819const extensionFolderPath = `scripts/extensions/${extensionName}/`;
@@ -228,7 +229,7 @@ $(document).ready(function () {
228229 $('#char-management-dropdown').append(
229230 $('<option>', {
230231 id: 'show_char_gallery',
231232 text: translate('Show Gallery'),
232233 }),
233234 );
234235});
@@ -406,7 +407,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'show-gallery
406407 showCharGallery();
407408 return '';
408409 },
409410 helpString: translate('Shows the gallery.'),
410411}));
411412SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery',
412413 aliases: ['lg'],
@@ -426,7 +427,7 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'list-gallery
426427 enumProvider: commonEnumProviders.characters('group'),
427428 }),
428429 ],
429430 helpString: translate('List images in the gallery of the current char / group or a specified char / group.'),
430431}));
431432
432433async function listGalleryCommand(args) {