简体   繁体   English

Android上的交互式Google翻译

[英]interactive Google Translation on android

I have an android app: plain text, and I want to make it interactive: on clicking the word, I want a window to pop up and show the translation of the word 我有一个Android应用程序:纯文本,并且希望使其具有交互性:单击该单词时,我希望弹出一个窗口并显示单词的翻译

Probably i should use some sort of Google Translate API 可能我应该使用某种Google Translate API

please tell me, what direction should i head digging in order to develop such an app 请告诉我,我应该朝哪个方向发展才能开发这样的应用程序

For Google Translate you should look into the Google Translate Api docs on developers.google.com. 对于Google Translate,您应该在developers.google.com上查看Google Translate Api文档。

It isn't free though, Google Translate is a paid service that costs $20 per 1 million characters. 不过它不是免费的,Google Translate是一项付费服务​​,每100万个字符收费20美元。

You can use Google Translate for free but that is stealing and would be unadvisable, especially if you want to publish your app on the Play marketplace. 您可以免费使用Google翻译,但这很容易被窃取,不建议您使用,尤其是当您想在Play市场上发布应用程序时。

Microsoft offer a free Bing Translation Api . 微软提供了免费的Bing Translation Api It's free up to 2 million characters per month. 每月最多免费提供200万个字符。 If you combine that with a caching system so you don't constantly hit it for words already translated then it should work fine. 如果您将其与缓存系统结合使用,那么您就不会因为已翻译的单词而不断打它,那么它应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM