本文介绍了Google API翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的Code项目成员,我希望您能关注以下问题:

我正在使用google GoogleTranslateAPI版本v2.0.50727 dll.当我执行以下代码时,它给翻译失败!例外.请帮助我解决我的问题.

Dear Code project members i would like your kind attention towards my following problem:

i am using google GoogleTranslateAPI version v2.0.50727 dll. when i m executing the following code it is giving Translate failed! exception. please help me to sort my problem out.

static void Main(string[] args)
        {
        string Text = "This is a string to translate";

        Console.WriteLine("Before Translation:{0}", Text);

        Text = Google.API.Translate.Translator.Translate
        (Text,Google.API.Translate.Language.English,
         Google.API.Translate.Language.French);

        Console.WriteLine("Before Translation:{0}", Text);

        Console.Read();
         } 




提前致谢.
问候progchd




Thanks in advance.
regards progchd

推荐答案


这篇关于Google API翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 06:12