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
This commit is contained in:
Dan Stillman 2015-07-10 17:41:25 -04:00
parent b40c1d7e2e
commit c72b112afd

View file

@ -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';
}