public abstract class AbstractMyMemoryTranslate extends BaseTranslate
enabled, glossarySupplier
Constructor and Description |
---|
AbstractMyMemoryTranslate() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getMyMemoryResponse(Language sLang,
Language tLang,
java.lang.String text) |
abstract java.lang.String |
getName()
Get machine translation engine name.
|
protected abstract java.lang.String |
getPreferenceName() |
protected abstract boolean |
includeMT()
true: Include MT / false: human translate
|
boolean |
isConfigurable()
Indicates that the MT provider has options that can be configured.
|
protected java.lang.String |
mymemoryCode(Language language)
Modify some country codes to fit with MyMemory
|
void |
showConfigurationUI(java.awt.Window parent)
Invoke the configuration UI of this MT provider.
|
protected abstract java.lang.String |
translate(Language sLang,
Language tLang,
java.lang.String text) |
cleanSpacesAroundTags, clearCache, getCachedTranslation, getCredential, getFromCache, getTranslation, isCredentialStoredTemporarily, isEnabled, putToCache, setCredential, setEnabled, setGlossarySupplier
protected abstract java.lang.String getPreferenceName()
getPreferenceName
in class BaseTranslate
public abstract java.lang.String getName()
IMachineTranslation
protected java.lang.String mymemoryCode(Language language)
language
- An OmegaT languageprotected abstract java.lang.String translate(Language sLang, Language tLang, java.lang.String text) throws java.lang.Exception
translate
in class BaseTranslate
java.lang.Exception
protected java.util.Map<java.lang.String,java.lang.Object> getMyMemoryResponse(Language sLang, Language tLang, java.lang.String text) throws java.lang.Exception
java.lang.Exception
public boolean isConfigurable()
IMachineTranslation
true
, and implement their configuration UI by overriding
IMachineTranslation.showConfigurationUI(Window)
.public void showConfigurationUI(java.awt.Window parent)
IMachineTranslation
protected abstract boolean includeMT()