Author: AvishekRC | Posted on: 11/29/2010 5:01:39 AM | Views : 600

Hi ,
I want to translate from English to Malay using Google API.
I have the following code:
public static string TranslateText(string input, string languagePair, Encoding encoding) { string url = String.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1}", input, languagePair); string result = String.Empty; using (WebClient webClient = new WebClient()) { webClient.Encoding = encoding; NetworkCredential netcredit = new NetworkCredential("MyNetworkUserID", "MyNetworkPassword", "corp"); webClient.Credentials = netcredit; webClient.Proxy = new System.Net.WebProxy() { Credentials = new System.Net.NetworkCredential("MyNetworkUserID", "MyNetworkPassword", "corp") }; // webClient.Proxy = null;//if I don't giv ...

Go to the complete details ...