diff --git a/chrome/content/zotero/tools/cslpreview.js b/chrome/content/zotero/tools/cslpreview.js index a448830c6f..ef70c027e7 100644 --- a/chrome/content/zotero/tools/cslpreview.js +++ b/chrome/content/zotero/tools/cslpreview.js @@ -47,14 +47,8 @@ var Zotero_CSL_Preview = new function () { this.updateIframe(Zotero.getString('styles.editor.warning.noItems'), 'warning'); return; } - var progressWin = new Zotero.ProgressWindow(); - // XXX needs its own string really! - progressWin.changeHeadline(Zotero.getString("pane.items.menu.createBib.multiple")); - var icon = 'chrome://zotero/skin/treeitem-attachment-file.png'; - progressWin.addLines(document.title, icon); - progressWin.show(); - progressWin.startCloseTimer(); - // Give progress window time to appear + this.updateIframe(Zotero.ftl.formatValueSync('stylePreview-generating')); + // Let the message paint before generation blocks the main thread setTimeout(() => { var d = new Date(); var styles = Zotero.Styles.getVisible(); diff --git a/chrome/locale/en-US/zotero/zotero.ftl b/chrome/locale/en-US/zotero/zotero.ftl index a5c5372542..a1a778299c 100644 --- a/chrome/locale/en-US/zotero/zotero.ftl +++ b/chrome/locale/en-US/zotero/zotero.ftl @@ -552,6 +552,8 @@ styleEditor-editor = styleEditor-preview = .aria-label = Preview +stylePreview-generating = Generating previews… + publications-intro-page = My Publications publications-intro = Items you add to My Publications will be shown on your profile page on zotero.org. If you choose to include attached files, they will be made publicly available under the license you specify. Only add work you yourself have created, and only include files if you have the rights to distribute them and wish to do so.