diff --git a/chrome/content/zotero/xpcom/intl.js b/chrome/content/zotero/xpcom/intl.js index 29663b803d..76da2c7b50 100644 --- a/chrome/content/zotero/xpcom/intl.js +++ b/chrome/content/zotero/xpcom/intl.js @@ -79,17 +79,6 @@ Zotero.Intl = new function () { Zotero.arrowPreviousKey = Zotero.rtl ? 'ArrowRight' : 'ArrowLeft'; Zotero.arrowNextKey = Zotero.rtl ? 'ArrowLeft' : 'ArrowRight'; - this.strings = {}; - const intlFiles = ['zotero.dtd', 'preferences.dtd', 'mozilla/editMenuOverlay.dtd']; - for (let intlFile of intlFiles) { - let localeXML = Zotero.File.getContentsFromURL(`chrome://zotero/locale/${intlFile}`); - let regexp = / { + const intlFiles = ['zotero.dtd', 'preferences.dtd', 'mozilla/editMenuOverlay.dtd']; + + let strings = []; + for (let intlFile of intlFiles) { + let localeXML = Zotero.File.getContentsFromURL(`chrome://zotero/locale/${intlFile}`); + let regexp = /