15.06.2012, 12:27
Sorry for resurrecting the topic, but I really need to know how to do this ... Someone help me please, would be a great help! All codes are outdated and no longer work
There is another application that translates text on the web?
|
Yes I currently use http://www.microsofttranslator.com/ but I just got an email telling me they will be moving the apis and I do not know what they mean by this.. But sadly I think they are also going to force devs to pay.
My website is still working but it's an new url udcs-tss.com but like I said it might stop working soon depending on what they meant with that email I got. |
stock TranslateText(text[])
{
new str[256];
format(str, sizeof(str), "http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId=6635D742380CF583FEE16FF83E80BC8238F166E3&from=&to=en&text=%s", text);
HTTP(0, HTTP_GET, str, "", "");
return 1;
}
It was ages ago I worked with my code.. But I opened my old php script and you should be able to do like that.. The only problem I can see is that you doesn't encode the input. So your code will only work on regular charters and with no spaces. I used php to encode but you might be able to use: http://dracoblue.net/dev/urlencode-in-pawn/141/ anyway I can't help you more then this.
|
Work yes, test:
http://api.microsofttranslator.com/V...res especiais! |