www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c72b112afd51f18f149fa9441e56af9bcd3dd696
parent b40c1d7e2e43ec175ba9a896178f3d7a2baa06c6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 10 Jul 2015 17:41:25 -0400

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

Diffstat:
Mchrome/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 @@ -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'; }