Google Translate

Compatible with  IntelliJ IDEA
23.10.2010
12 504
This plugin performs translations in Editor window from one language to another. It uses translate.google.com service behind the scene.

Download plugin

Version

Update date

Recent change notes

This plugin performs translations in Editor window from one language to another. It uses "translate.google.com" service behind the scene.

Plugin is especially convenient when you are trying to translate long i18n.property files in your project for different languages.

Plugin adds "Translate" item into popup menu for the editor (also, in "Code" menu and "Generate" group). It also have separate configuration screen for selecting "from" and "to" languages.

How to use

  • Select the part to be translated;
  • Select "Translate" item from the editor popup menu;
  • "translate.google.com" web site will perform actual translation;
  • Response from the service will be inserted in place of selection.
Changes:
  • 1.1.0.
    1. Adjusting changes in Google translate service for countries list and translation function.
  • 1.0.9
    1. Adjusting changes in Google translate service for countries list.
    1. Migrating to IDEA 9.
  • 1.0.8
    1. Adjusting changes in IDEA how it works now with proxies.
    1. Adjusting changes in Google translate service.
  • 1.0.7
    1. Downgrading java version to 1.5 (to be compatible for Mac users).
  • 1.0.6
    1. Fixed bug for Arabic language.
  • 1.0.5
    1. Added Translation Preview feature. Select the text for preview and then intention icon will appear. Or press "Alt-Enter" key combination to force the intention. Another way is to click on "Translation Preview" item in editor pop-up.
    2. Removed deprecated code.
  • 1.0.3
    1. It works now with the latest version of Intellij IDEA 7 (Selena; build 7118)..
  • 1.0.0
    1. Initial Release.

General usage instructions

How to use

1. Select the part to be translated;
2. Select "Translate" item from popup menu;
3. "translate.google.com" web site will perform actual translation;
4. Response from the service will be inserted in place of selection.

Author: Alexander Shvets (mailto:shvets_alexander@yahoo.com).

Anonymous
03.12.2014
This is not working for me. The from and to drop downs are empty when I select "Translate" for translation. Nothing happens when I select the text and click on Translate. I am using windows 7, android studio 0.8.14(beta) and google translate version 1.1.0
Anonymous
19.09.2008
This is almost great! It would be very good If I could translate the whole xx_xx.properties file with one click.

After this I could use a tool like Attesoro and fix bad translations. Since there you can see the original files teksti with the translation.

So if you are going to do any more development on the plugin this would be a great feature.

Jykke
Anonymous
21.12.2007
Great plugin, thank you.

It has a small problem though, when you choose to translate when there is no text selected:
[code]
null
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at org.google.code.translate.TranslateAction$PasteLineHandler
.executeWriteAction(TranslateAction.java:56)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1
.run(EditorWriteActionHandler.java:51)
at com.intellij.openapi.application.impl.ApplicationImpl$13
.compute(ApplicationImpl.java:1)
at com.intellij.psi.impl.source.PostprocessReformattingAspect
.postponeFormattingInside(PostprocessReformattingAspect.java:43)
at com.intellij.openapi.application.impl.ApplicationImpl
.runWriteAction(ApplicationImpl.java:274)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler
.execute(EditorWriteActionHandler.java:35)
at com.intellij.openapi.editor.actionSystem.EditorAction$1
.run(EditorAction.java:59)
at com.intellij.openapi.command.impl.CommandProcessorImpl
.executeCommand(CommandProcessorImpl.java:55)
at com.intellij.openapi.command.impl.CommandProcessorImpl
.executeCommand(CommandProcessorImpl.java:5)
at com.intellij.openapi.editor.actionSystem.EditorAction
.actionPerformed(EditorAction.java:66)
at com.intellij.openapi.editor.actionSystem.EditorAction
.actionPerformed(EditorAction.java:45)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter
.actionPerformed(ActionMenuItem.java:5)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem
.fireActionPerformed(ActionMenuItem.java:27)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:25)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:66)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler
.mouseReleased(BegMenuItemUI.java:4)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:93)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:26)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:203)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
[/code]
Please  sign in  to leave a comment.