Debug print translated message.
Sometimes prevent duplicate translations.
This commit is contained in:
parent
ce8567afca
commit
fe16cbe669
@ -10,6 +10,7 @@ function checkFinished () {
|
||||
var text = spans.reduce (function (res, i) {
|
||||
return res + i.innerText;
|
||||
}, '');
|
||||
console.log (text);
|
||||
st_wtp.translated (text);
|
||||
isTranslationFinished = isScheduled = false;
|
||||
}, 2000); // wait for gui fill
|
||||
|
@ -10,6 +10,7 @@ function checkFinished () {
|
||||
var text = spans.reduce (function (res, i) {
|
||||
return res + ' ' + i.innerText;
|
||||
}, '');
|
||||
console.log (text);
|
||||
st_wtp.translated (text);
|
||||
isTranslationFinished = isScheduled = false;
|
||||
}, 2000); // wait for gui fill
|
||||
|
@ -10,6 +10,7 @@ function checkFinished () {
|
||||
var text = spans.reduce (function (res, i) {
|
||||
return res + i.innerText + ' ';
|
||||
}, '');
|
||||
console.log (text);
|
||||
st_wtp.translated (text);
|
||||
isTranslationFinished = isScheduled = false;
|
||||
}, 2000); // wait for gui fill
|
||||
|
@ -13,17 +13,17 @@
|
||||
"path_linux": "ScreenTranslator"
|
||||
},
|
||||
"Bing translator": {
|
||||
"version": 2,
|
||||
"version": 3,
|
||||
"url": "https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/bing.js",
|
||||
"path": "translators/bing.js"
|
||||
},
|
||||
"Google translator": {
|
||||
"version": 2,
|
||||
"version": 3,
|
||||
"url": "https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/google.js",
|
||||
"path": "translators/google.js"
|
||||
},
|
||||
"Yandex translator": {
|
||||
"version": 3,
|
||||
"version": 4,
|
||||
"url": "https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/yandex.js",
|
||||
"path": "translators/yandex.js"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user