TranslationPlugin README

The project's README from github.com/YiiGuxing/TranslationPlugin. As one markdown file: README.md.

TranslationPlugin TranslationPlugin

Plugin Homepage Build Status License GitHub releases Version Downloads Financial Contributors on Open Collective

Translation plugin for IntelliJ based IDEs/Android Studio.

screenshots




Getting Started 开始使用 はじめに 시작하기


Microsoft Translator      Google Translate      OpenAI Translator      DeepL Translator      Youdao Translate      Baidu Translate      Alibaba Translate


Features

Compatibility

Installation

Get from Marketplace

Restart the IDE after installation.

Using The Plugin

  1. Sign up for a translation service (optional)

    Most translation services require user registration to access their services (such as OpenAI, DeepL, Youdao Translate, etc.). Therefore, you may need to create an account, obtain an Authentication Key, and then bind the Authentication Key within the plugin:Preferences(Settings) > Tools > Translation > General > Translation Engine > Configure...

  2. Begin translating

    Select a text or hover the mouse over the text > Right-click > Translate

    Or use shortcuts for translation, as detailed in Actions.

  3. Replace with Translation

    Translate the target text and replace it. If the target language is English, the output has several formats: in camel case, with a word separator (when the output contains multiple words, the separator can be configured in the plugin configuration page: Translation Settings > Replace with Translation > Separator) and in the original format.

    Instructions: Select a text or hover the mouse over the text > Right-click > Replace with Translation (Or use shortcuts for translation, as detailed in Actions).

  4. Translate Documentation

    Quick Documentation and Inline Documentation can be translated via the context menu or shortcuts (detailed in Actions).

    Translation Settings > Other > Automatically translate documentation: When you check this option, the Quick Documentation will be automatically translated when you view it.

  5. Switch engines

    Click the engine widget in the status bar or use the shortcut Ctrl + Shift + S (macOS: Control + Meta + Y) to switch between the translation engine and the TTS engine quickly.

Actions

FAQ

If you have any questions, please ask here.

  1. What should I do if there is a network error or the network connection times out?

    A:

    • Check the network environment and make sure the network is running smoothly.
    • Check whether a proxy is preventing the plugin from accessing the translation API.
    • Check the IDE proxy configuration to see if that is the cause of the problem.
  2. What should I do if the translated content appears garbled?

    A: Garbled code generally appears when there is a lack of corresponding characters in the font. You can go to the Settings page of the plugin to modify the font in order to fix the garbled code (as shown below).

    screenshots

  3. What if I can't save the application key?

    A: You can try changing the way passwords are saved to In KeePass (Settings > Appearance & Behavior > System Settings > Passwords). For more details:

    • For macOS, please refer to #81
    • For Linux, please refer to #115
  4. What if the shortcuts don't work?

    A: The shortcut keys are most likely not working because they are being used in other plugins or external applications. You can reset shortcut keys for the corresponding operations.

Support and Donations

You can contribute and support this project by doing any of the following:

Thank you for your support!

Contributors

Technology Contributors

The CDN acceleration and security protection for this project are sponsored by Tencent EdgeOne.

Tencent EdgeOne

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Backers

Thank you to all our backers! ❤️ [Become a backer]

Sponsors

Support this project by becoming a sponsor! Your logo will show up here with a link to your website. [Become a sponsor]

Donors

Name Website Amount
丿初音 475.00 CNY
剑平 120.00 CNY
山有扶苏 github.com/fobgochod 110.00 CNY
xudley xudley.cn 100.00 CNY
朱振山 100.00 CNY
丁云波 100.00 CNY
逆行 100.00 CNY
Kimmy 100.00 CNY
LiMingjun 100.00 CNY
DarknessTM github.com/darknesstm 100.00 CNY

More donors

TranslationPlugin (YiiGuxing/TranslationPlugin)

Searching Database…

Что это такое?TranslationPlugin — это плагин для перевода в IDE на базе IntelliJ и в Android Studio. Он позволяет переводить текст, документацию и символы кода прямо в редакторе, используя несколько движков перевода.
Это отдельное приложение или плагин внутри моей IDE?Это плагин, который устанавливается в уже существующую IDE семейства JetBrains (или в Android Studio/DevEco Studio). Отдельного собственного приложения у него нет.
Нужен ли мне ключ API, чтобы им пользоваться?Большинство движков работают сразу после установки, но некоторым сервисам, например OpenAI, DeepL и Youdao Translate, перед использованием нужна регистрация и привязка Authentication Key в настройках плагина.
Есть ли частые проблемы при установке или работе?Переведённый текст может отображаться искажённо, если в настроенном шрифте нет нужных символов. Ключи приложений иногда не сохраняются, пока в настройках IDE вы не переключите хранилище паролей на KeePass. Сочетания клавиш также могут конфликтовать с другими плагинами.
С какими IDE он работает?Он работает со всем семейством IDE JetBrains, а также с Android Studio и Huawei DevEco Studio, включая IntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, PhpStorm, Rider, RubyMine, RustRover, DataGrip и другие.
Мой текст отправляется на сторонние серверы?Да. Запросы на перевод уходят в тот внешний движок, который вы выберете (Microsoft, Google, DeepL, OpenAI, Youdao, Baidu или Alibaba), поэтому текст для перевода покидает ваш компьютер.
Какие движки перевода можно выбрать?Microsoft Translator, Google Translate, DeepL Translator, OpenAI Translator, Youdao Translate, Baidu Translate и Alibaba Translate, а также озвучивание (TTS) от Microsoft Edge, Google и OpenAI.
Может ли он переводить больше, чем выделенный текст?Да. Помимо выделенного текста или текста под курсором, он может переводить Quick Documentation, встроенную документацию (включая пакетный перевод всей встроенной документации в файле) и целые документы. Также он поддерживает Word Book для сохранения слов.
Можно ли заменить идентификаторы кода переведённым текстом?Да. Действие «Replace with Translation» переводит выделенный текст и может вывести его в camelCase с настраиваемым разделителем слов или в исходном формате. Это удобно для именования переменных.
Как быстро переключаться между движками перевода?Нажмите виджет движка в строке состояния или сочетание Ctrl+Shift+S (Control+Meta+Y на macOS), чтобы переключаться между движками перевода и TTS, не открывая настройки.
Creator
YiiGuxing
Size
24.7 MB
Stars
11.9K
Age
10y
Commits · 90 Days