在Eclipse的插件塞阔雅译者服务 [英] Translator service in sequoyah plugin of Eclipse

查看:230
本文介绍了在Eclipse的插件塞阔雅译者服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在Eclipse中塞阔亚插件。我使用它的编辑翻译在Android项目我的strings.xml文件。现在,当我右键单击塞阔亚文本编辑器中列,然后点击翻译列',我得到这说明选择翻译服务,语言翻译从和语言翻译窗口。但是,因为有没有在列表中,我不能选择任何翻译服务。所以,我怎么能安装翻译服务,以便我可以在上面定义的方式来使用?

I have installed sequoyah plugin in eclipse. I am using its editor to translate my strings.xml file in Android project. Now when I right click the column in sequoyah text editor and click on 'translate column', I get the window which shows to select translator service, language to translate from and language to translate to. But I can not select any translator service as there is none in the list. So how can I install the translator service so that I can use in the way defined above?

推荐答案

我知道的唯一实现是带有MOTODEV工作室为Android,使用谷歌翻译API V2之一。不幸的是,这是一种有偿服务,并要求您有访问API,这你从谷歌的服务,一键搞定。

The only implementation I know is the one that comes with MOTODEV Studio for Android, using Google Translate API v2. Unfortunately, this is a paid service and requires you have a key for accessing the API, which you have to get from Google services.

增加新的翻译,虽然是通过塞阔雅做的相当简单。它包括通过提供包含接收字符串列表翻译一些方法的类实现自己的扩展点(org.eclipse.sequoyah.localization.tools.translator)之一,通过使用您选择的翻译服务做实际的翻译,并返回结果。一旦你的Eclipse这个运行时,你会看到它显示在下拉列表中选择用于翻译服务:)

The addition of new translators, though, is quite simple to do through Sequoyah. It consists of implementing one of their extension points (org.eclipse.sequoyah.localization.tools.translator) by providing a class that contains some methods that receive lists of strings to translate, do the actual translation by using a translating service of your choice, and return the results. Once you get your Eclipse running with this, you'll see it show up on the drop down list for choosing the translator service :)

希望它帮助!

这篇关于在Eclipse的插件塞阔雅译者服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆