From c72b112afd51f18f149fa9441e56af9bcd3dd696 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 10 Jul 2015 17:41:25 -0400 Subject: [PATCH] Use export.lastLocale before UI locale if none specified This allows existing documents created before 4.0.27 with a bibliographyLocale set to continue to use that value by default. More details: https://github.com/zotero/zotero/pull/795#issuecomment-120227051 --- chrome/content/zotero/xpcom/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 367a6184f..8fb49bf6a 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -607,7 +607,7 @@ Zotero.Style = function(arg) { */ Zotero.Style.prototype.getCiteProc = function(locale, automaticJournalAbbreviations) { if(!locale) { - var locale = Zotero.locale; + var locale = Zotero.Prefs.get('export.lastLocale') || Zotero.locale; if(!locale) { var locale = 'en-US'; }