Update translation script

This commit is contained in:
Gres 2020-05-24 20:49:19 +03:00
parent 614e1e5a02
commit 94776f06b3
2 changed files with 9 additions and 2 deletions

View File

@ -1,8 +1,15 @@
function httpGetAsync(url, callback) {
let xmlHttp = new XMLHttpRequest();
xmlHttp.timeout = 30000; // msecs
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
if (xmlHttp.readyState != 4)
return
if (xmlHttp.status == 200)
callback(xmlHttp.responseText);
else
proxy.setFailed(xmlHttp.statusText)
xmlHttp.onreadystatechange = null;
xmlHttp = null;
}
xmlHttp.open("GET", url, true);
xmlHttp.send(null);

View File

@ -588,7 +588,7 @@
{"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/google.js", "path":"$translators$/google.js", "md5":"16ffead93035e08e8db13279cc8b65a7", "size":1260}
]}
,"google_api": {"files":[
{"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/google_api.js", "path":"$translators$/google_api.js", "md5":"ba0d5fb0e156cccd47e048389c2762fa", "size":865}
{"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/google_api.js", "path":"$translators$/google_api.js", "md5":"90b9b1a5c8dc52fd4a3f28be93442a56", "size":1030}
]}
,"papago": {"files":[
{"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/papago.js", "path":"$translators$/papago.js", "md5":"538bb7280192b18d15d24b07adae2638", "size":1956}