Google Translate API

Puedes encontrar todo tipo de tutoriales y manuales referentes a AMS
The Google Translate API has been officially deprecated an alternative is the Microsoft Translator V2, check this article for more details.



In this post i will show you how work with the Google Translate API V2 (Labs), this API lets you automatically translates text from one language to another.

Disclaimer

This version of the Google Translate API is in Labs, and its features might change unexpectedly until it graduates.
The Google Translate API requires the use of an API key, which you can get from the Google APIs console
Before to use this API check the Google Translate API Terms of Use.

To use the Google Translate API you must send a HTTP GET request to its URI.

The URI for a request has the following format:

Código: Seleccionar todo

https://www.googleapis.com/language/translate/v2?parameters
Example to making a request to translate the Hello World text from English (en) to Spanish (es) the URI must be constructed in this way

Código: Seleccionar todo

https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&source=en&target=es&q=Hello%20world
The response in JSON format will be

Código: Seleccionar todo

{"data":{"translations":[{"translatedText":"Hola Mundo"}]}}
To activate the auto-detection of the source language you must avoid the use of the source keyword

Código: Seleccionar todo

https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&target=es&q=Hello%20world
and the JSON response in this case will be

Código: Seleccionar todo

{"data":{"translations":[{"translatedText":"Hola a todos","detectedSourceLanguage":"en"}]}
crdt : Rodrigo

result :

Imagen

Código: Seleccionar todo

id = HTTP.SubmitSecure("https://www.googleapis.com/language/translate/v2",...
http://code.google.com/intl/en/apis/lan ... _rest.html

:friends:
  Thank you, you can upload apz example?  
rafaxplayer escribió:  Thank you, you can upload apz example?  
yes wy not :yes:
dont forget change key
HIDE: ON
Hidebb Message Hidden Description

code source :
HIDE: ON
Hidebb Message Hidden Description
hace tiempo vi algo de esto gracias...
thank's :D!
as you said (copy from jquery translate plugin) google translate sdk will be publicly unavalible under sept of this year, this is due the huge amount of traffic generated.

The ms translate api will be the only usabe service right now, but google works better, for example, ms translates broken ("averiado") as "lost the virginity", a fucking bad translation...
Y como se utiliza?
thanks :)).
thanx
thanks
thanks !!
gracias!! muy bueno
thanks
thank you
gracias sta bonito el Traslator
thanks
gracias
i will test
gracias... muy bueno,..