From fe3fdac88e1ad2238038555f85a0f157ea41a2cd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 11 Sep 2024 07:09:53 -0400 Subject: [PATCH] Quick fix for `Localized string not available for general.warning` https://forums.zotero.org/discussion/117812/issue-with-installing-zotero-7 With Zotero data directory in cloud storage folder Regression from af3602124 --- chrome/content/zotero/xpcom/intl.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/intl.js b/chrome/content/zotero/xpcom/intl.js index d9751a2254..8fdca3c318 100644 --- a/chrome/content/zotero/xpcom/intl.js +++ b/chrome/content/zotero/xpcom/intl.js @@ -135,7 +135,12 @@ Zotero.Intl = new function () { if (ftlString) { return ftlString; } - else if (this.strings[name]) { + // TEMP: The this.strings check prevents "TypeError: this.strings is undefined" + // from an early Zotero.getString() call, but I'm not sure why. this.strings is + // set using defineLazyGetter, but lazy doesn't mean asynchronous... + // + // https://forums.zotero.org/discussion/117812/issue-with-installing-zotero-7 + else if (this.strings && this.strings[name]) { return this.strings[name]; } else {