Log a list of translators that were found during detect*

This commit is contained in:
Aurimas Vinckevicius 2015-03-31 13:40:43 -05:00
parent c05025f4b1
commit 49a0b02b06

View File

@ -1505,8 +1505,15 @@ Zotero.Translate.Base.prototype = {
* Called when all translators have been collected for detection
*/
"_detectTranslatorsCollected":function() {
Zotero.debug("Translate: All translator detect calls and RPC calls complete");
Zotero.debug("Translate: All translator detect calls and RPC calls complete:");
this._foundTranslators.sort(function(a, b) { return a.priority-b.priority });
if (this._foundTranslators.length) {
this._foundTranslators.forEach(function(t) {
Zotero.debug("\t" + t.label + ": " + t.priority);
});
} else {
Zotero.debug("\tNo suitable translators found");
}
this._runHandler("translators", this._foundTranslators);
},