Giter VIP home page Giter VIP logo

translationplugin's Introduction

TranslationPlugin GitHub release Jetbrains Plugins Gitter

Version Downloads Downloads last month

JetBrains IDE/Android Studio 翻译插件,支持中英互译、单词朗读。

screenshots

截图1

安装

兼容除 MPS 外所有产品编译号为143以上的 Jetbrains IDE 产品。

支持的 IDE:

  • Android Studio
  • IntelliJ IDEA
  • IntelliJ IDEA Community Edition
  • PhpStorm
  • WebStorm
  • PyCharm
  • PyCharm Community Edition
  • RubyMine
  • AppCode
  • CLion
  • DataGrip
  • Rider

使用 IDE 内置插件系统:

  • Preferences(Settings) > Plugins > Browse repositories... > 搜索并找到"Translation" > Install Plugin

手动:

重启IDE.

Actions

  • Show Translation Dialog...: 打开翻译对话框。默认显示在工具栏上,默认快捷键为Alt + 0

    Translate

  • Translate: 取词并翻译。如果有已选择的文本,优先从选择的文本内取词,否则默认以最大范围自动取词(该取词模式可在Settings中配置)。默认显示在编辑器右键菜单上,默认快捷键为Alt + 1

    Translate

  • Translate(Inclusive): 取词并翻译。自动以最大范围取最近的所有词,忽略手动选择的文本。默认快捷键为Alt + 2

    Translate(Inclusive)

  • Translate(Exclusive): 取词并翻译。自动取最近的单个词,忽略手动选择的文本。默认快捷键为Alt + 3

    Translate(Exclusive)

  • Translate And Replace...: 翻译并替换。取词方式同Translate操作。默认显示在编辑器右键菜单上,默认快捷键为Alt + R

    Translate(Exclusive)

  • Translate Text Component: 翻译一些文本组件(如快速文档、提示气泡、输入框……)中选中的文本。默认快捷键为Alt + T

    Translate(Exclusive)

使用

  1. 打开翻译对话框:

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

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

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

    翻译

    或者使用快捷键Alt + 1/2/3/T/R进行翻译(Mac下默认快捷键可能无效,需要自定义快捷键),详见 Actions

  3. 自定义快捷键(Mac下默认快捷键可能无效):

    Preferences(Settings) > Keymap > 搜索Translation。在需要添加快捷键Action上 右键 > add Keyboard Shortcut... 设置快捷键(按ESC键可关闭气泡和翻译对话框)。

    keymap

  4. 设置有道API KEY:

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

  5. 如何获取有道API KEY?

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

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

  6. 网络代理

  支持HTTP代理,可到这里设置HTTP代理: Preferences(Settings) > Appearance & Behavior > System Settings > HTTP Proxy

  1. Settings(Preferences)

    Settings

更新日志

v1.3.4(2017-4-17)

  • 支持自定义字体,再也不怕小方块了
  • 使用公共API KEY时警告
  • "频繁请求"和"API KEY错误"提示添加跳转至设置页链接以方便设置API KEY
  • 优化历史记录
  • Bug修复

完整的更新历史记录

translationplugin's People

Contributors

yiiguxing avatar

Watchers

 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.