We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
看看这是否适合您
google-language-api-for-dotnet
http://code.google.com/p/google-language-api-for-dotnet/
Google 翻译
http://www.codeproject.com/KB/IP/GoogleTranslator.aspx
使用 Google Api 翻译您的文本
http://blogs.msdn.com/shahpiyush /archive/2007/06/09/3188246.aspx
从 C# 调用 Google Ajax Language API 进行翻译和语言检测
http://www.esotericdelights.com/post/ 2008/11/Calling-Google-Ajax-Language-API-for-Translation-and-Language-Detection-from-C.aspx
C# 中的翻译 Web 服务
http://www.codeproject.com/KB/cpp/translation.aspx
使用 Google 的翻译 API .NET
http://www.reimers.dk/blogs/jacob_reimers_weblog/archive/2008/06/18/using-google-s-translation-api-from-net.aspx
See if this works for you
google-language-api-for-dotnet
http://code.google.com/p/google-language-api-for-dotnet/
Google Translator
http://www.codeproject.com/KB/IP/GoogleTranslator.aspx
Translate your text using Google Api's
http://blogs.msdn.com/shahpiyush/archive/2007/06/09/3188246.aspx
Calling Google Ajax Language API for Translation and Language Detection from C#
http://www.esotericdelights.com/post/2008/11/Calling-Google-Ajax-Language-API-for-Translation-and-Language-Detection-from-C.aspx
Translation Web Service in C#
http://www.codeproject.com/KB/cpp/translation.aspx
Using Google's Translation API from .NET
http://www.reimers.dk/blogs/jacob_reimers_weblog/archive/2008/06/18/using-google-s-translation-api-from-net.aspx
第一个代码示例不起作用的原因是页面布局发生了变化。根据该页面上的警告:“翻译后的字符串由靠近底部的正则表达式获取。这当然可能会改变,您必须保持最新。”
我认为这现在应该有效,至少在他们再次更改页面之前是这样。
The reason the first code sample doesn't work is because the layout of the page changed. As per the warning on that page: "The translated string is fetched by the RegEx close to the bottom. This could of course change, and you have to keep it up to date."
I think this should work for now, at least until they change the page again.
我发现这段代码对我有用:
I found this code works for me:
Google 翻译套件,一个开源库 http://ggltranslate.codeplex.com/
Google Translate Kit, an open source library http://ggltranslate.codeplex.com/
当我使用上面的代码时。它向我显示翻译后的文本作为问号,如(?????????)。然后我从 WebClient 转换为 HttpClient 然后我得到了准确的结果。所以你可以使用这样的代码。
然后你调用一个函数,比如。你输入任何语言对的前两个字母。
从英语(en)到乌尔都语(ur)。
When I used above code.It show me translated text as question mark like (???????).Then I convert from WebClient to HttpClient then I got a accurate result.So you can used code like this.
Then you Call a function like.You put first two letter of any language pair.
From English(en) To Urdu(ur).
这是我的代码略有不同,也解决了编码问题:
函数调用示例:
结果将是“Hola”
Here is my slighly different code, solving also the encoding issue:
Example of the function call:
The result will be "Hola"
Google 将于 2011 年底关闭翻译 API,因此您应该考虑替代方案!
Google is going to shut the translate API down by the end of 2011, so you should be looking at the alternatives!
如果您想翻译您的资源,只需下载 Visual Studio 的 MAT(多语言应用程序工具包)即可。 https://marketplace.visualstudio.com/items?itemName=MultilingualAppToolkit.MultilingualAppToolkit- 18308
这是在 Visual Studio 中翻译项目的方法。
https://blogs.msdn.microsoft.com/matdev/
If you want to translate your resources, just download MAT (Multilingual App Toolkit) for Visual Studio. https://marketplace.visualstudio.com/items?itemName=MultilingualAppToolkit.MultilingualAppToolkit-18308
This is the way to go to translate your projects in Visual Studio.
https://blogs.msdn.microsoft.com/matdev/