From 21c466fcd64ab2ad8f3fc4425a9a6839aeb90551 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 20 Feb 2012 23:30:28 -0500 Subject: [PATCH] Don't show "Translating undefined" for non-web translators --- chrome/content/zotero/tools/testTranslators/translatorTester.js | 2 +- 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 index 92b954a04..dc3c23e8a 100644 --- 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);