在 Delphi 中翻译语言
我多年来一直在寻找一些可以将任何语言翻译成另一种语言的代码,但我发现没有一个代码有效。
我知道 Google 有一个很好的翻译 API,但我无法让任何人的 Delphi 代码在其上工作。
总会有一个错误出现。 任何帮助将不胜感激,我需要一个可以尽快翻译我的最终学校项目的程序。
I have been looking for ages now for some code that can translate any language to another but none of the code I find works.
I know Google has a good translate API but I can't get anyone's Delphi code on it to work.
There is always an error that comes in the way.
Any help would be much appreciated, I need a program that can translate ASAP of my final school project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Google Translate API 是一个不错的选择,但现在只能作为有偿服务。相反,您可以尝试 Microsoft Translator V2 API,请查看这篇文章
使用 delphi 中的 Microsoft Translator V2 API
了解有关如何从 delphi 中使用此 API 的更多详细信息。更新
这是与本文相同的演示项目,经过修改以与您的 delphi 版本兼容。
The Google Translate API is a good option, but now is available only as a paid service. Instead you can try the Microsoft Translator V2 API, check this article
Using the Microsoft Translator V2 API from delphi
for more details about how use this API from delphi.UPDATE
This is the same demo project of the article modified to be compatible with your version of delphi.
也许您没有找到 Marco Cantu 的作品?与 REST/AJAX/Delphi 配合使用
但作为 RRUZ表示,Google Translate API 目前仅作为付费服务提供。
Maybe you did not find Marco Cantu's works?Works with REST/AJAX/Delphi
But as RRUZ said, the Google Translate API is only available now as a paid service.
首先,你找不到一个 100% 将一种语言翻译成另一种语言的工具。您可以拥有一个工具来为您完成一些(或多或少)工作,但您需要“完善”其余部分。正如 RRUZ 所说,您可以使用微软的翻译器,但我所说的也适用于这种情况。任何此类工具都会花钱。谷歌的翻译很好,但是需要付费。
PS:我不认为在学校他们会要求你创建一个可以从任何语言翻译到任何语言的工具。也许有一个小工具可以证明你已经掌握了这个概念。只是我的2分钱...
First of all, you can not find a 100% tool to translate from a language to another. You can have a tool which is doing some(more or less) of the job for you, but you need to 'polish' the rest. As RRUZ said, you can use the Microsoft's translator but what I've said applies also in this case. Any tool of this type will cost you money. Google's translate is quite good, but you need to pay for it.
PS: I don't think that at school they ask you to create a tool which is translating from any language to any language. Maybe a small tool which can prove you got the concept. just my 2 cents...