Class Google2Translate
- java.lang.Object
-
- org.omegat.core.machinetranslators.BaseTranslate
-
- org.omegat.core.machinetranslators.BaseCachedTranslate
-
- org.omegat.core.machinetranslators.Google2Translate
-
- All Implemented Interfaces:
IMachineTranslation
public class Google2Translate extends BaseCachedTranslate
Support of Google Translate API v.2 machine translation.- See Also:
- Translation API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Google2Translate.Data
Data schema class.static class
Google2Translate.Response
Data schema class for Google2 translate API response.static class
Google2Translate.Translation
Data schema class.
-
Constructor Summary
Constructors Constructor Description Google2Translate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Return Google2 engine name.boolean
isConfigurable()
Engine is configurable.void
showConfigurationUI(java.awt.Window parent)
Default configuration UI.-
Methods inherited from class org.omegat.core.machinetranslators.BaseCachedTranslate
getCachedTranslation, getTranslation
-
Methods inherited from class org.omegat.core.machinetranslators.BaseTranslate
isEnabled, setEnabled, setGlossarySupplier
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omegat.gui.exttrans.IMachineTranslation
isEnabled, setEnabled, setGlossarySupplier
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Return Google2 engine name.- Returns:
- localized name.
-
isConfigurable
public boolean isConfigurable()
Engine is configurable.- Returns:
- true
-
showConfigurationUI
public void showConfigurationUI(java.awt.Window parent)
Default configuration UI.- Parameters:
parent
- main window.
-
-