Reputation: 18192
I need to translate some text & i am trying to use google translator to translate it. I checked this article. But i am getting an exception in following code.
result = webClient.DownloadString(url);
Exception:The remote server returned an error: (414) Request-URI Too Large.
I have never Used APIs so was trying to use this class to translate the text.
Any suggestions ?
I have checked the similar posts but could not find simpler way to do that.
Upvotes: 4
Views: 13420
Reputation: 17964
If you're using Winforms, Microsofts Translator is also a good option, they're provided as webservices which are very easy to use in .net.
Documentation:
Upvotes: 2
Reputation: 2310
You can use some SDKs for that.
http://code.google.com/p/google-api-for-dotnet/ (Unofficial Google Translate API - Seem old)
http://www.microsofttranslator.com/dev/ (Microsoft Translator API - Commercial)
http://msdn.microsoft.com/en-us/library/ff512419.aspx (Microsoft Translator API guide)
You can download the source codes and read them
Upvotes: 2