From f8108aca456fe1e6e7feedf711e10bc67066fa55 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 1 Feb 2024 00:41:15 -0500 Subject: [PATCH] Move "Rename Collection" and "Edit Saved Search" to Fluent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without ellipses And remove unused "Edit Feed…", which is in zotero.dtd too --- chrome/content/zotero/zoteroPane.js | 5 +++-- chrome/locale/en-US/zotero/zotero.ftl | 5 +++++ chrome/locale/en-US/zotero/zotero.properties | 3 --- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 2db008ba30..869ff6306e 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3409,7 +3409,8 @@ var ZoteroPane = new function() } // Adjust labels - m.editSelectedCollection.setAttribute('label', Zotero.getString('pane.collections.menu.rename.collection')); + document.l10n.setAttributes(m.editSelectedCollection, 'collections-menu-rename-collection'); + m.deleteCollection.setAttribute('label', Zotero.getString('pane.collections.menu.delete.collection')); m.deleteCollectionAndItems.setAttribute('label', Zotero.getString('pane.collections.menu.delete.collectionAndItems')); m.exportCollection.setAttribute('label', Zotero.getString('pane.collections.menu.export.collection')); @@ -3467,7 +3468,7 @@ var ZoteroPane = new function() } // Adjust labels - m.editSelectedCollection.setAttribute('label', Zotero.getString('pane.collections.menu.edit.savedSearch')); + document.l10n.setAttributes(m.editSelectedCollection, 'collections-menu-modify-saved-search'); m.duplicate.setAttribute('label', Zotero.getString('pane.collections.menu.duplicate.savedSearch')); m.deleteCollection.setAttribute('label', Zotero.getString('pane.collections.menu.delete.savedSearch')); m.exportCollection.setAttribute('label', Zotero.getString('pane.collections.menu.export.savedSearch')); diff --git a/chrome/locale/en-US/zotero/zotero.ftl b/chrome/locale/en-US/zotero/zotero.ftl index 32d7ce678c..4f1258fd10 100644 --- a/chrome/locale/en-US/zotero/zotero.ftl +++ b/chrome/locale/en-US/zotero/zotero.ftl @@ -44,6 +44,11 @@ zotero-tabs-menu-close-button = toolbar-add-attachment = .tooltiptext = { add-attachment } +collections-menu-rename-collection = + .label = Rename Collection +collections-menu-edit-saved-search = + .label = Edit Saved Search + item-creator-moveDown = .label = Move Down item-creator-moveToTop = diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 6c67442603..be460d993b 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -276,10 +276,7 @@ pane.collections.duplicate = Duplicate Items pane.collections.removeLibrary = Remove Library pane.collections.removeLibrary.text = Are you sure you want to permanently remove “%S” from this computer? -pane.collections.menu.rename.collection = Rename Collection… pane.collections.menu.duplicate.savedSearch = Duplicate Saved Search -pane.collections.menu.edit.savedSearch = Edit Saved Search… -pane.collections.menu.edit.feed = Edit Feed… pane.collections.menu.remove.library = Remove Library… pane.collections.menu.delete.collection = Delete Collection… pane.collections.menu.delete.collectionAndItems = Delete Collection and Items…