[英]Accessing Google Translation Service (C# WinForms)
I've seen many websites AND programs that access the google translation service. 我已经看到许多访问Google翻译服务的网站和程序。
I'm trying to create a little app where there are basically 2 TextBox controls and a Button, where you can select a language to translate from and to. 我正在尝试创建一个小应用程序,该应用程序基本上有2个TextBox控件和一个Button,您可以在其中选择要翻译的语言。
But how do I access the API? 但是,如何访问API? I've not found anything so far. 到目前为止我还没有找到任何东西。
Send WebRequest to 发送WebRequest到
http://www.google.com/translate_t?hl=en&ie=UTF8&text= {0}&langpair={1} http://www.google.com/translate_t?hl=zh_CN&ie=UTF8&text= {0}&langpair = {1}
, where 0 = your text to translate, and 1 = language pair separated by "|" ,其中0 =您要翻译的文字,以及1 =以“ |”分隔的语言对 delimiter 分隔符
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.