function serviceHeader(){return new ServiceHeader(12,"Promt","Free online translation of texts, Web sites and E-mails for English, Portuguese (Brazilian), German, French, Spanish, Italian and Russian languages."+Const.NL2+serviceHost()+Const.NL2+"\u00a9 PROMT Service LLC, 2001-2018",Capability.TRANSLATE)}function serviceHost(a,b,c){return"https://www.online-translator.com"}function serviceLink(a,b,c){return serviceHost()}
SupportedLanguages=[-1,"au",-1,-1,-1,"ar",-1,-1,-1,-1,"ca","zhcn","zhcn",-1,-1,-1,-1,"en",-1,"fi",-1,"fr",-1,"de","el",-1,-1,-1,-1,-1,-1,"it",-1,"ja",-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,"pt",-1,"ru",-1,-1,-1,"es",-1,-1,-1,"tr",-1,-1,-1,-1,-1,-1,-1,-1,-1,"kk",-1,-1,-1,-1,-1,-1,-1,-1,-1];
function serviceTranslateRequest(a,b,c){3E3<a.length&&(a=a.slice(0,3E3));a=encodeUriParam(a);a=a.replace(/'/g,"\\'");a=format("{dirCode:'{0}-{1}',template:'General',text:'{2}',lang:'{3}',limit:3000,useAutoDetect:true,key:'',ts:'MainSite',tid:'',IsMobile:true}",codeFromLanguage(b),codeFromLanguage(c),a,Options.LanguageCode);b=getHeader()+Const.NL+"Content-Type: application/json; charset=UTF-8";return new RequestData(HttpMethod.POST,"/services/soap.asmx/GetTranslation",a,b)}
function serviceTranslateResponse(a,b,c,d){eval("var res = "+b);a="";res&&res.d&&(res=res.d,a=res.errMessage?res.errMessage:res.isWord&&res.resultNoTags?trimString(res.resultNoTags):stripHtml(res.result),res.ptsDirCode&&(b=res.ptsDirCode.split("-"),2===b.length&&(c=languageFromCode(b[0]),d=languageFromCode(b[1]))));return new ResponseData(a,c,d)};
