From 8c6e6854e14a93b9a352865abd58e5aeb49028c7 Mon Sep 17 00:00:00 2001 From: Gres Date: Fri, 6 Nov 2015 21:13:18 +0300 Subject: [PATCH] Increased translation stability. --- translators/bing.js | 2 +- translators/google.js | 2 +- translators/yandex.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/translators/bing.js b/translators/bing.js index 7e476be..2fa19c1 100644 --- a/translators/bing.js +++ b/translators/bing.js @@ -11,7 +11,7 @@ function checkFinished () { return res + i.innerText; }, ''); st_wtp.translated (text); - }, 500); // wait for gui fill + }, 2000); // wait for gui fill } function onResourceLoad (url) { if (url.indexOf ('/api.microsofttranslator.com/') > -1) { diff --git a/translators/google.js b/translators/google.js index 7cc4b54..1607db2 100644 --- a/translators/google.js +++ b/translators/google.js @@ -12,7 +12,7 @@ function checkFinished () { }, ''); st_wtp.translated (text); isTranslationFinished = isScheduled = false; - }, 500); // wait for gui fill + }, 2000); // wait for gui fill } function onResourceLoad (url) { if (url.indexOf ('/translate_a/single') > -1) { diff --git a/translators/yandex.js b/translators/yandex.js index 01d71e1..7686593 100644 --- a/translators/yandex.js +++ b/translators/yandex.js @@ -11,7 +11,7 @@ function checkFinished () { return res + i.innerText; }, ''); st_wtp.translated (text); - }, 500); // wait for gui fill + }, 2000); // wait for gui fill } function onResourceLoad (url) { }