public interface TranslationOperation
Modifier and Type | Field and Description |
---|---|
static OperationType<TranslationOperation> |
TYPE
Operation type providing means to open a translation view on the client-side.
|
Modifier and Type | Method and Description |
---|---|
boolean |
perform()
Initiates the translation process on the client-side.
|
void |
setElement(DataProvider element)
Specifies the element the translation should be done for.
|
void |
setSourceLanguage(Language language)
Specifies the source language of the translation.
|
void |
setTargetLanguage(Language language)
Specifies the target language of the translation.
|
void |
setTranslationPlugin(String pluginType,
boolean automatic)
Specifies the plugin which should be used for the initial translation
of content into the configured target language.
|
static final OperationType<TranslationOperation> TYPE
void setElement(DataProvider element)
element
- The element to translate.void setSourceLanguage(Language language)
language
- The source language.void setTargetLanguage(Language language)
language
- The target language.void setTranslationPlugin(String pluginType, boolean automatic)
pluginType
- The plugin to use.automatic
- Initial translation should be done automatically.boolean perform()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210