From dedb3783e4583dee02c6b7378826475089018be2 Mon Sep 17 00:00:00 2001 From: MuiseDestiny Date: Tue, 2 Jan 2024 20:43:29 +0800 Subject: [PATCH] fix: #10 --- addon/chrome/content/preferences.xhtml | 105 ++++++------------------- addon/locale/en-US/preferences.ftl | 6 ++ addon/locale/zh-CN/preferences.ftl | 8 +- src/modules/menu.ts | 1 - 4 files changed, 37 insertions(+), 83 deletions(-) diff --git a/addon/chrome/content/preferences.xhtml b/addon/chrome/content/preferences.xhtml index a884eac..3d12bd8 100644 --- a/addon/chrome/content/preferences.xhtml +++ b/addon/chrome/content/preferences.xhtml @@ -1,10 +1,7 @@ - + @@ -112,23 +83,11 @@ - - + + - + @@ -140,38 +99,22 @@ - - + \ No newline at end of file diff --git a/addon/locale/en-US/preferences.ftl b/addon/locale/en-US/preferences.ftl index e974317..01170b0 100644 --- a/addon/locale/en-US/preferences.ftl +++ b/addon/locale/en-US/preferences.ftl @@ -29,3 +29,9 @@ file-types = Types of Attachments for Renaming/Moving (separated by ',') about-title = About about-intro = 🌠 Happy New Year! Attanger is an abbreviation for Attachment Manager, and this project heavily references the ZotFile plugin of Zotero version 6. + + +preferences-file-renaming-customize-button = + .label = Customize Filename Format… + +preferences-file-renaming-format-instructions-more = See the for more information. \ No newline at end of file diff --git a/addon/locale/zh-CN/preferences.ftl b/addon/locale/zh-CN/preferences.ftl index 6a5157f..80a2819 100644 --- a/addon/locale/zh-CN/preferences.ftl +++ b/addon/locale/zh-CN/preferences.ftl @@ -28,4 +28,10 @@ auto-move = file-types = 重命名/移动的附件类型(用','隔开) about-title = 关于 -about-intro = 🌠 新年快乐!Attanger 是 Attachment Manager 的缩写,本项目大量参考了 Zotero 6 版本的 ZotFile 插件。 \ No newline at end of file +about-intro = 🌠 新年快乐!Attanger 是 Attachment Manager 的缩写,本项目大量参考了 Zotero 6 版本的 ZotFile 插件。 + + +preferences-file-renaming-customize-button = + .label = 设置重命名规则… + +preferences-file-renaming-format-instructions-more = 阅读获取更多帮助。 \ No newline at end of file diff --git a/src/modules/menu.ts b/src/modules/menu.ts index f8d5695..85e5876 100644 --- a/src/modules/menu.ts +++ b/src/modules/menu.ts @@ -453,7 +453,6 @@ async function attachNewFile(options: { showAttachmentItem(attItem); if (!attItem.parentItemID) { Zotero.RecognizeDocument.autoRecognizeItems([attItem]); - // showAttachmentItem(attItem); } removeFile(path); }