GithubHelp home page GithubHelp logo

andy521 / ectranslation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skykai521/ectranslation

0.0 1.0 0.0 148 KB

Android Studio Plugin,Translate English to Chinese. Android Studio 翻译插件,可以将英文翻译为中文.

Java 100.00%

ectranslation's Introduction

#ECTranslation

Android Studio 翻译插件,可以将英文翻译为中文.

##1.使用方法

  • Clone项目,获取ECTranslation.jar。或者:点击下载
  • 打开Android Studio, Preferences -> Plugins -> Install plugin from disk -> 选择ECTranslation.jar安装并重启Android Studio。
  • 选中代码,选择 Edit -> Translate或者按下 command + I(也可以自己设定)。即可翻译。效果如下:

##2.修改快捷键

使用键盘快捷键触发

  • Preferences -> Keymap -> 搜索Translate - > 右键 add Keyboard Shortcut. 输入你想要的快捷键即可。

使用鼠标触发(可以设置,但不建议设置,会影响侧边栏双击的功能)

  • Preferences -> Keymap -> 搜索Translate - > 右键 add Mouse Shortcut. 设置你想触发的鼠标操作即可。但是目前不建议这样设置因为会影响侧边栏功能的使用。所以最好还是根据自己的习惯设置键盘快捷键。

##3.更新日志

V1.4

  • 缩略词分割优化,例如原有分割方式会将UID分割为U-I-D三个独立的字母,改进后连续的大写字母视为一个单词
  • 单词选择优化,仅需将光标置于词内即可识别出当前选择的单词,例如在句子Cre|ates an empty string.中,只需将光标置于|处,无需选中单词,插件会分析出单词Creates为需要翻译的词汇。如果当前存在使用鼠标选中的词汇或句子,将不会执行自动识别
  • 添加插件入口到编辑器右键菜单内,在编辑器内右键选择Translate即可触发翻译
  • 当选中内容为一个句子时,弹框仅显示翻译结果,不再显示选中内容,选中单词翻译的逻辑不变
  • 忽略注释,/**///*和连续空白字符将会被忽略
  • 翻译结果会被同步输出到Event Log内

###V1.3

  • 去除对话框提示的icon。

###V1.2

  • 增加翻译弹框显示的时间。
  • 增加拆分单词翻译,现在支持类似:setContentView与ALIGN_CENTER的翻译了。

V1.1

  • 修复长按快捷键导致Android Studio无响应的问题。
  • 重构代码。

V1.0

  • 1.0版本发布。实现基本功能。

##4.QA

  1. Windows和Mac都可以使用吗?

可以。

  1. 翻译出现乱码怎么办?

点击查看解决办法

##Thanks

ectranslation's People

Contributors

skykai521 avatar misakuo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.