zotero/chrome/locale
Dan Stillman 27cb099c82 Allow asynchronous item saving in import translators
This allows for imported items to be saved individually instead of being
saved in a batch after processing the entire imported file (which for
large imports would hang the UI, even if the actual saving was
asynchronous). This also fixes the progress meter during asynchronous
saves.

To take advantage of this, import translators will need to return a
promise when available (using the native Promise object) from doImport()
and wait for optional promises from item.complete().

The logic here can probably be streamlined further. (E.g., we might be
able to say that item.complete() always returns a promise.) It's
complicated by the fact that, at the moment, Promise isn't available in
child sandboxes, though this can probably be fixed.

Tests forthcoming, but they require a translator that supports this,
which needs to be committed separately.

View with -w for a cleaner diff.
2017-02-08 14:56:44 -05:00
..
af-ZA/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
ar/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
bg-BG/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
ca-AD/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
cs-CZ/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
da-DK/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
de/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
el-GR/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
en-US/zotero Allow asynchronous item saving in import translators 2017-02-08 14:56:44 -05:00
es-ES/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
et-EE/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
eu-ES/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
fa/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
fi-FI/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
fr-FR/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
gl-ES/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
he-IL/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
hr-HR/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
hu-HU/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
id-ID/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
is-IS/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
it-IT/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
ja-JP/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
km/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
ko-KR/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
lt-LT/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
mn-MN/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
nb-NO/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
nl-NL/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
nn-NO/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
pl-PL/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
pt-BR/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
pt-PT/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
ro-RO/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
ru-RU/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
sk-SK/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
sl-SI/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
sr-RS/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
sv-SE/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
th-TH/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
tr-TR/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
uk-UA/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
vi-VN/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
zh-CN/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00
zh-TW/zotero Update locales from Transifex 2017-01-24 03:48:43 -05:00