Code Monkey home page Code Monkey logo

translationplugin's Introduction

Translation GitHub release Jetbrains Plugins Gitter

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

screenshots

截图1

截图2

安装

  • 使用IDEA内置插件系统:
    • Preferences(Settings) > Plugins > Browse repositories... > 搜索并找到"Translation" > Install Plugin
  • 手动:

重启IDEA.

使用

  1. 打开翻译对话框:

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

  2. 翻译编辑器中选择的文本:

    在编辑器中 选择文本 > 单击鼠标右键 > Translate

    截图3

  3. 设置快捷键:

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

  4. 设置有道API KEY:

    Preferences(Settings) > Other Settings > Translation。 由于有道的API在查询请求数量上存在限制,如果在1小时内查询请求次数达到一定数量后将会暂时禁止查询一段时间(大概1小时)。如果很多人同时使用同一个KEY,可能会很容易就达到了限制条件,这就可以通过使用自己的KEY来避免(一人一个KEY基本足够用了)。

    截图4

  5. 如何获取有道API KEY?

    Preferences(Settings) > Other Settings > Translation > 获取有道API KEY

    或者 点击这里 也可申请有道API KEY。

更新日志

v1.2.1(2016-08-29)

  • 添加默认主题下的色彩样式
  • 优化
    • 在翻译话框显示的情况下,同步翻译结果和历史记录。
    • 历史记录优化——鼠标在翻译文本过长而无法完全展示内容的历史记录条上悬停时,显示全部内容。
  • Bug修复
    • 在非聚焦状态下按ESC键无法关闭对话框。
    • 翻译话框无法显示错误信息。
    • 其他Bug。

完整的更新历史记录

translationplugin's People

Contributors

yiiguxing avatar

Watchers

James Cloos avatar  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.