test in en-GB

This commit is contained in:
Emiliano Heyns
2022-05-21 02:31:36 +02:00
parent d7ee5b6567
commit 02a5fec88f
4 changed files with 5 additions and 4 deletions

View File

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

View File

@@ -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},

View File

@@ -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) {

View File

@@ -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