谷歌翻译api在monodroid [英] google translate api in monodroid
本文介绍了谷歌翻译api在monodroid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
string text = "hello";
TranslateClient client = new TranslateClient("");
Language la1=Language.English;
Language la2=Language.English;
string translated= client.Translate("hello", la1, la2);
textBox1.Text = translated;
-------------------------------------------- ----------------------
帮帮我
这段代码是错误的
使用Google翻译api 4创建的Alpha
------------------------------------------------------------------
help me
this code is error
created with google translate api 4 alpha
推荐答案
当您不对错误消息说任何话时,很难为您提供帮助.
但是,根据 TranslateClient [
It is hard to help you when you''re not saying anything about the error message.
However, according to the TranslateClient[^] class definition, there is no constructor taking a string.
So, I assume
TranslateClient client = new TranslateClient();
将解决您的问题.
will solve your problem.
这篇关于谷歌翻译api在monodroid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文