Update French locale 'issue' search condition hack for global schema

This commit is contained in:
Dan Stillman 2019-10-25 13:43:29 -04:00
parent 742d7793d1
commit d8508415b9

View file

@ -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)";
}