From fe89bc9cdfab2163e57746cebae2840303672bd8 Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Wed, 24 Jul 2024 10:47:52 +0800 Subject: [PATCH] little fix --- public/locales/zh-cn.json | 2 ++ public/scripts/extensions/gallery/GalleryI18nData.html | 2 ++ public/scripts/extensions/gallery/index.js | 7 ++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/locales/zh-cn.json b/public/locales/zh-cn.json index 4ad93d166..9d4143fdc 100644 --- a/public/locales/zh-cn.json +++ b/public/locales/zh-cn.json @@ -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", diff --git a/public/scripts/extensions/gallery/GalleryI18nData.html b/public/scripts/extensions/gallery/GalleryI18nData.html index f5da8ec35..5c3aab87d 100644 --- a/public/scripts/extensions/gallery/GalleryI18nData.html +++ b/public/scripts/extensions/gallery/GalleryI18nData.html @@ -1,2 +1,4 @@
Show Gallery
+
Shows the gallery.
+
List images in the gallery of the current char / group or a specified char / group.
diff --git a/public/scripts/extensions/gallery/index.js b/public/scripts/extensions/gallery/index.js index ce9a12b32..cf6b75cc4 100644 --- a/public/scripts/extensions/gallery/index.js +++ b/public/scripts/extensions/gallery/index.js @@ -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( $('