commit 21c466fcd64ab2ad8f3fc4425a9a6839aeb90551
parent 646b84c1d0858a968274367cefe1d88b4672d43a
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 20 Feb 2012 23:30:28 -0500
Don't show "Translating undefined" for non-web translators
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js
@@ -201,7 +201,7 @@ Zotero_TranslatorTester.prototype.fetchPageAndRunTest = function(test, testDoneC
* @param {Function} testDoneCallback A callback to be executed when test is complete
*/
Zotero_TranslatorTester.prototype.runTest = function(test, doc, testDoneCallback) {
- this._debug(this, "TranslatorTester: Translating "+test.url);
+ this._debug(this, "TranslatorTester: Translating"+(test.url ? " "+test.url : ""));
var me = this;
var translate = Zotero.Translate.newInstance(this.type);