Google Translate's query string explained

Is there ever a time when you want to show the translation for a word or phrase to your friend?
Google can do it. In fact, Google does it well, except some small translation errors outrage millions of Chinese people.

It is not possible to send the page after the translation to people because you can't see the query string, like this one,
Google Translate showing no query string
After using Firefox's Live HTTP header, I successfully find the query string! http://www.google.com/translate_t?hl=en&ie=UTF8&text=you&langpair=en%7Czh-CN

hl= the interface language
ie=encoding(I think)
text=the text to translate
langpair=the original language and the translated language

For minimalists: you don't have to pass hl and ie

The Google Translate on URL is the same thing, just replace text with u and the string for test to URL.
I wish I can extract the returning page's translated string(which IS easy) and offers it as a service, people around the world will love me very much.


Post new comment

The content of this field is kept private and will not be shown publicly.
If you have a Gravatar account, used to display your avatar.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <span> <fn>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.

More information about formatting options

What is 4 + 15?
To combat spam, please solve the math question above.
Honey Pot that kill bots