Translation of text using HTTP_GET and ****** translate
#41

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
Reply
#42

The ****** Translate API is now a paid-only service.
Reply
#43

Quote:
Originally Posted by Vince
View Post
The ****** Translate API is now a paid-only service.
There is another application that translates text on the web?
Reply
#44

Quote:
Originally Posted by CidadeNovaRP
View Post
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.
Reply
#45

Quote:
Originally Posted by robanswe
View Post
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.
Yes, but even so, it could help me? Did the following CODE, correct me please:
pawn Code:
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;
}
Reply
#46

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.
Reply
#47

Quote:
Originally Posted by robanswe
View Post
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!
Reply
#48

Quote:
Originally Posted by CidadeNovaRP
View Post
#EDIT
URL:
api.microsofttranslator.com/V2/Ajax.svc/Translate?appId=6635D742380CF583FEE16FF83E80BC8238 F166E3&from=&to=en&text=Este texto estava em Portuguкs e com espaзos e caracteres especiais!

@EDIT Oh shit, sorry for Double Post, I click the error button.
Reply
#49

48*2 hours...
Respond please.
Reply
#50

Quote:
Originally Posted by CidadeNovaRP
View Post
48*2 hours...
Respond please.
What should I respond to? Also you have still not encoded the url..
Reply
#51

The attempt to solve this problem: https://sampforum.blast.hk/showthread.php?tid=479169
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)