Skip to content

timurbabs/intellij-translator

Repository files navigation

IntelliJ Translator

Simple IntelliJ IDEA plugin for translate

Qries Qries Qries

Features

  • The ability to both replace and simply display the translation of the text, taking into account all special characters.;
  • The quality of the translation is comparable to that of google translator, because we use its API :)

Installation

Installation from disk

1. Download the ZIP file with the latest version of IntelliJ Plugin from releases.
2. Press Ctrl+Alt+S to open IDE settings and select Plugins.
3. On the Plugins page, click :fa-cog: and then click Install Plugin from Disk.
4. Select the plugin archive file and click OK.

Installation from source

1. Clone this repository.

git clone https://github.com/timurbabs/IntelliJ-Translator.git

2. In the cloned repository, run:

~$ ./gradlew for Linux > gradlew for Windows

3. ZIP file with the plugin will appear in the build/distributions folder.
4. Follow this instruction from point 2.

Usage

Replacing text

To translate text with replacement, press Ctrl+\ , Ctrl+T and select languages ​​for translation.

Qries

Qries

Qries

You can also translate text with replacement without choosing languages. For this select default languages ​​in the plugin settings (File -> Settings -> Tools -> Translator) or by pressing Ctrl+\ , Ctrl+S , and then you do not have to select languages ​​for translation. For replacing without choosing languages press Ctrl+\ , Ctrl+P.

If you do not know the language from which you are going to translate, you can use the automatic language detection. For this press Ctrl+\ , Ctrl+[. Тhe default language will be used as the language to translate into.

Display text

If you do not need to replace the text, but you just want to find out its translation, then you can display it on the screen by pressing Сtrl+, Ctrl+R, to choose language from menu.

If you do not want to choose a language or do not know the word in which language in front of you, then you can use the option of displaying without choosing a language (Ctrl+, Ctrl+Q) or the ability to automatically detect the language (Ctrl+\ , Ctrl+]).


You can access all previous hotkeys by pressing right-click and select IntelliJ Translator menu.


You can change hotkeys in File -> Settings -> Keymap -> Plugins -> Translator.


IntelliJ Translator can translate only selected text!