From d8508415b9b649b434297ff4553acce2453ca404 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 25 Oct 2019 13:43:29 -0400 Subject: [PATCH] Update French locale 'issue' search condition hack for global schema --- chrome/content/zotero/xpcom/data/searchConditions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/searchConditions.js b/chrome/content/zotero/xpcom/data/searchConditions.js index 0485ffdf98..1105ad3a67 100644 --- a/chrome/content/zotero/xpcom/data/searchConditions.js +++ b/chrome/content/zotero/xpcom/data/searchConditions.js @@ -579,7 +579,7 @@ Zotero.SearchConditions = new function(){ // Hack to use a different name for "issue" in French locale, // where 'number' and 'issue' are translated the same // https://forums.zotero.org/discussion/14942/ - if (fieldID == 5 && locale.substr(0, 2).toLowerCase() == 'fr') { + if (Zotero.ItemFields.getName(fieldID) == 'issue' && locale.substr(0, 2) == 'fr') { localized = "Num\u00E9ro (p\u00E9riodique)"; }