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 classGoogle2Translate.DataData schema class.static classGoogle2Translate.ResponseData schema class for Google2 translate API response.static classGoogle2Translate.TranslationData schema class.
-
Constructor Summary
Constructors Constructor Description Google2Translate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Return Google2 engine name.booleanisConfigurable()Engine is configurable.voidshowConfigurationUI(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.
-
-