Localize new PDF retrieval strings

Closes #1541
This commit is contained in:
Dan Stillman 2018-08-13 23:01:21 -04:00
parent 01f3159b2f
commit e38725cf65
2 changed files with 7 additions and 7 deletions

View file

@ -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")

View file

@ -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.