mirror of
https://github.com/retorquere/zotero-better-bibtex.git
synced 2022-05-23 09:36:29 +03:00
test in en-GB
This commit is contained in:
@@ -585,6 +585,10 @@ class Zotero:
|
||||
profile.firefox.set_preference('extensions.zotero.translators.better-bibtex.log-events', True)
|
||||
profile.firefox.set_preference('extensions.zotero.translators.better-bibtex.workers', self.workers)
|
||||
profile.firefox.set_preference('extensions.zotero.translators.better-bibtex.caching', self.caching)
|
||||
|
||||
profile.firefox.set_preference('intl.accept_languages', 'en-GB')
|
||||
profile.firefox.set_preference('intl.locale.requested', 'en-GB')
|
||||
|
||||
profile.firefox.set_preference('extensions.zotero.debug-bridge.password', self.password)
|
||||
profile.firefox.set_preference('dom.max_chrome_script_run_time', self.config.timeout)
|
||||
utils.print(f'dom.max_chrome_script_run_time={self.config.timeout}')
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@online{Beckford2019,
|
||||
title = {Blockchain Africa Conference 2019 Was a Success},
|
||||
author = {Beckford, Neil},
|
||||
date = {2019-04-10},
|
||||
date = {2019-10-04},
|
||||
url = {www.cryptolinenews.com/industry-analysis/blockchain-africa-conference-2019},
|
||||
urldate = {2019-04-10},
|
||||
langid = {english},
|
||||
|
||||
@@ -83,7 +83,6 @@ const htmlConverter = new class HTMLConverter {
|
||||
...this.mapping,
|
||||
...this.charmap(),
|
||||
}
|
||||
log.debug('translate:', { unicode: Translator.unicode })
|
||||
|
||||
if (!this.mapping.initialized) {
|
||||
for (const c of Translator.preferences.ascii) {
|
||||
|
||||
@@ -271,7 +271,6 @@ export class ITranslator { // eslint-disable-line @typescript-eslint/naming-conv
|
||||
acc[pref] = this.getPreferenceOverride(pref) ?? Zotero.getHiddenPref(`better-bibtex.${pref}`) ?? dflt
|
||||
return acc
|
||||
}, {} as unknown as Preferences)
|
||||
Zotero.debug(`translate: preferences = ${JSON.stringify(this.preferences, null, 2)}`)
|
||||
|
||||
// special handling
|
||||
this.skipFields = this.preferences.skipFields.toLowerCase().split(',').map(field => this.typefield(field)).filter((s: string) => s)
|
||||
@@ -291,7 +290,6 @@ export class ITranslator { // eslint-disable-line @typescript-eslint/naming-conv
|
||||
|
||||
if (mode === 'export') {
|
||||
this.unicode = !this.preferences[`ascii${ZOTERO_TRANSLATOR_INFO.label.replace(/Better /, '')}`]
|
||||
Zotero.debug(`translate: unicode = ${JSON.stringify({ unicode: this.unicode, label: ZOTERO_TRANSLATOR_INFO.label })}`)
|
||||
|
||||
if (this.preferences.baseAttachmentPath && (this.export.dir === this.preferences.baseAttachmentPath || this.export.dir?.startsWith(this.preferences.baseAttachmentPath + this.paths.sep))) {
|
||||
this.preferences.relativeFilePaths = true
|
||||
|
||||
Reference in New Issue
Block a user