diff --git a/chrome/content/zotero/xpcom/intl.js b/chrome/content/zotero/xpcom/intl.js index 76da2c7b50..d9751a2254 100644 --- a/chrome/content/zotero/xpcom/intl.js +++ b/chrome/content/zotero/xpcom/intl.js @@ -94,12 +94,19 @@ Zotero.Intl = new function () { const intlFiles = ['zotero.dtd', 'preferences.dtd', 'mozilla/editMenuOverlay.dtd']; let strings = []; + let { documentElement: elem } = new DOMParser().parseFromString('', 'application/xml'); for (let intlFile of intlFiles) { let localeXML = Zotero.File.getContentsFromURL(`chrome://zotero/locale/${intlFile}`); let regexp = /