Respuesta: Translation of text using HTTP_GET and ****** translate -
CidadeNovaRP - 15.06.2012
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
Re: Translation of text using HTTP_GET and ****** translate -
Vince - 15.06.2012
The ****** Translate API is now a paid-only service.
Respuesta: Re: Translation of text using HTTP_GET and ****** translate -
CidadeNovaRP - 15.06.2012
Quote:
Originally Posted by Vince
The ****** Translate API is now a paid-only service.
|
There is another application that translates text on the web?
Re: Respuesta: Re: Translation of text using HTTP_GET and ****** translate -
robanswe - 15.06.2012
Quote:
Originally Posted by CidadeNovaRP
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.
Respuesta: Re: Respuesta: Re: Translation of text using HTTP_GET and ****** translate -
CidadeNovaRP - 15.06.2012
Quote:
Originally Posted by robanswe
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;
}
Re: Translation of text using HTTP_GET and ****** translate -
robanswe - 15.06.2012
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.
Respuesta: Re: Translation of text using HTTP_GET and ****** translate -
CidadeNovaRP - 15.06.2012
Quote:
Originally Posted by robanswe
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!
Respuesta: Re: Translation of text using HTTP_GET and ****** translate -
CidadeNovaRP - 15.06.2012
Quote:
Originally Posted by CidadeNovaRP
|
#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.
Respuesta: Translation of text using HTTP_GET and ****** translate -
CidadeNovaRP - 19.06.2012
48*2 hours...
Respond please.
Re: Respuesta: Translation of text using HTTP_GET and ****** translate -
robanswe - 19.06.2012
Quote:
Originally Posted by CidadeNovaRP
48*2 hours...
Respond please.
|
What should I respond to? Also you have still not encoded the url..
Re: Translation of text using HTTP_GET and ****** translate -
Bombo - 03.12.2013
The attempt to solve this problem:
https://sampforum.blast.hk/showthread.php?tid=479169