Thursday, March 20, 2008

Google Translate API

Google launched another AJAX API, this time for language detection and translation. The API works for the same language pairs that are available at Google Translate and lets you display the translation of a text inside your own page, without having to link to an external translation service.

The translation API could be used to automatically translate some content from a web page using the browser's preferred language, to create a Greasemonkey script that translates to English the posts written in other languages, to detect if a comment is written in English before posting it and for many other things.

Here's one example of use, where you can enter a text in one of the supported languages (Arabic, Chinese, French, German, Greek, Dutch, Italian, Japanese, Korean, Portuguese, Russian, Spanish), Google automatically detects the language and it shows the English translation. The sample text is from Le Monde.






Labels: ,

  16 comments ( Post a comment )
You mean like:

http://www.steeleweed.com/computer.html
translation didn't work for me:(
@Anonymous:
I changed the sample text because Google returned an error message: "the string to be translated exceeds the maximum length allowed".
Apparently, there is a restriction on how long text strings can be -- it's 500 characters.
http://code.google.com/p/jquery-translate/
No limits with this!
thanks for the information, i used google translate, it was a great tools.
Can you use this API in any web based application?
Needs a C api...
The Google translations are excellent. Try comparing to Yahoo! which uses the SysTran product. SysTran really needs to get out of the machine-driven translation business, because they cannot translate something as simple or as common as "c'est" or "l'un de" or anything with an apostrophe. If you get past the failure to handle simple apostrophes, the rest truly a joke. It's as if they found the worst programmers in the world and paired them up with functionally illiterate linguists. How in God's name does a company whose reason for being is translation botch things so badly? They're an embarrassment.
I have developed Online Translation Service http://translator.vndv.com/ page which uses Google AJAX Language API. I also used Google AJAX Language API to translate the user interface of Online Translation Service to the following languages: English, Arabic, Bulgarian, Chinese, Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hindi, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Romanian, Russian, Spanish, Swedish.
please php api
Yes I am need to connection and get data code. FOr example php code. This is AJAX and search engine doesn't reading in it.
Need an API for Indian languages in which google home page can be viewed, like Bengali,Telugu,Marathi,Tamil,Gujarati,Kannada,Malayalam,Punjabi. Please help.
I am searching for a custom implementation of google translation, google cache or any other service of google to achieve results similar to that of an anonymous proxy server.
The translation API could be used to automatically translate some content from a web page using the browser's preferred language, to create a Greasemonkey script that translates to English the posts written in other languages, to detect if a comment is written in English before posting it and for many other things.
Cool :-)