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 ...
Go to the complete details ...