From e38725cf657a7f5be3fa5f91751e960bad6f1a99 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 13 Aug 2018 23:01:21 -0400 Subject: [PATCH] Localize new PDF retrieval strings Closes #1541 --- chrome/content/zotero/zoteroPane.js | 10 +++------- chrome/locale/en-US/zotero/zotero.properties | 4 ++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index bc9ec75927..8d322c8911 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3858,12 +3858,11 @@ var ZoteroPane = new function() var icon = 'chrome://zotero/skin/treeitem-attachment-pdf.png'; var progressWin = new Zotero.ProgressWindow(); - // TODO: Localize - var title = items.length > 1 ? 'Searching for available PDFs…' : 'Searching for available PDF…'; + var title = Zotero.getString('findPDF.headline'); progressWin.changeHeadline(title); var itemProgress = new progressWin.ItemProgress( icon, - "Checking " + items.length + " " + Zotero.Utilities.pluralize(items.length, ['item', 'items']) + Zotero.getString('findPDF.checkingItems', items.length, items.length) ); progressWin.show(); @@ -3888,11 +3887,8 @@ var ZoteroPane = new function() itemProgress.setProgress(100); itemProgress.setIcon(icon); - // TODO: Localize if (successful) { - itemProgress.setText( - successful + " " + Zotero.Utilities.pluralize(successful, ['PDF', 'PDFs']) + " added" - ); + itemProgress.setText(Zotero.getString('findPDF.pdfsAdded', successful, successful)); } else { itemProgress.setText("No PDFs found") diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 4e3e7e7088..c9cdaafcaf 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -602,6 +602,10 @@ ingester.importFile.intoNewCollection = Import into new collection ingester.lookup.performing = Performing Lookup… ingester.lookup.error = An error occurred while performing lookup for this item. +findPDF.headline = Searching for available PDFs… +findPDF.checkingItems = Checking %S item;Checking %S items +findPDF.pdfsAdded = %S PDF added;%S PDFs added + db.dbCorrupted = The Zotero database '%S' appears to have become corrupted. db.dbCorrupted.restart = Please restart %S to attempt an automatic restore from the last backup. db.dbCorruptedNoBackup = The Zotero database '%S' appears to have become corrupted, and no automatic backup is available.\n\nA new database has been created. The damaged file was saved to your Zotero data directory.