GithubHelp home page GithubHelp logo

davidmr001 / translationplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yiiguxing/translationplugin

0.0 1.0 0.0 1.74 MB

Android Studio/IntelliJ IDEA 翻译插件,可中英互译。

Java 100.00%

translationplugin's Introduction

Translation Plugin

Android Studio/IntelliJ IDEA 翻译插件,可中英互译。

截图1

截图2

使用方法

  • 下载TranslationPlugin-v1.2.jar 或者最新的开发版 TranslationPlugin-v1.2.1-SNAPSHOT.jar

  • 安装:Settings(OS X:Preferences) -> Plugins -> Install plugin from disk -> 选择TranslationPlugin-v1.2.jar并安装。

  • 打开翻译对话框:点击工具栏上的 图标 图标即可打开翻译对话框。

  • 翻译编辑器中选择的文本:在编辑器中选择文本后单击鼠标右键,再点击Translate项:

    截图3

  • 设置快捷键:Settings(OS X:Preferences) -> Keymap -> 搜索Translate。搜索结果会有两个,Translate和TranslationDialog,Translate会取当前编辑器中选择的文本进行翻译(截图1),而TranslationDialog只会打开翻译对话框,不会取词。最后在需要添加快捷键项上右键 -> add Keyboard Shortcut 设置快捷键(默认无快捷键,按ESC键可关闭翻译对话框)。

  • 设置有道API KEY:由于有道的API在查询请求数量上存在限制,如果在1小时内查询请求次数达到一定数量后将会暂时禁止查询一段时间(大概1小时)。如果很多人同时使用同一个KEY,可能会很容易就达到了限制条件,这就可以通过使用自己的KEY来避免(一人一个KEY基本足够用了)。可在这里配置KEY —— Settings(OS X:Preferences) -> Other Settings -> Translation。如何获取有道API KEY?点击Translation设置页面上的 “获取有道API KEY” 或者 点击这里 可申请有道API KEY。

    截图4

translationplugin's People

Contributors

yiiguxing 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.