If you don't want to pay for Google paid service (please see Solution 1 by Tim Corey), you can still use the Google Translate Web page itself,
http://translate.google.com/[
^].
As you can note, the text to be translated and language IDs are passed to this page via the URL parameters. You can send HTTP request using the class
System.Net.HttpWebRequest
, read HTTP response and parse it to extract the translation. Please see:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[
^],
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[
^] (see HTTP code sample here).
This is a bit ugly but will work. This is a very simple case of
Web scraping,
http://en.wikipedia.org/wiki/Web_scraping[
^].
Please see also my past answers to related questions:
get specific data from web page[
^],
How to get the data from another site[
^].
—SA