Interface TranslationOperation
public interface TranslationOperation
Operation providing means to open a translation view on the client-side.
- Since:
- 5.2.33
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OperationType<TranslationOperation>Operation type providing means to open a translation view on the client-side. -
Method Summary
Modifier and TypeMethodDescriptionbooleanperform()Initiates the translation process on the client-side.voidsetElement(DataProvider element) Specifies the element the translation should be done for.voidsetSourceLanguage(Language language) Specifies the source language of the translation.voidsetTargetLanguage(Language language) Specifies the target language of the translation.voidsetTranslationPlugin(String pluginType, boolean automatic) Specifies the plugin which should be used for the initial translation of content into the configured target language.
-
Field Details
-
TYPE
Operation type providing means to open a translation view on the client-side.- Since:
- 5.2.33
-
-
Method Details
-
setElement
Specifies the element the translation should be done for.- Parameters:
element- The element to translate.- Since:
- 5.2.33
-
setSourceLanguage
Specifies the source language of the translation.- Parameters:
language- The source language.- Since:
- 5.2.33
-
setTargetLanguage
Specifies the target language of the translation.- Parameters:
language- The target language.- Since:
- 5.2.33
-
setTranslationPlugin
Specifies the plugin which should be used for the initial translation of content into the configured target language.- Parameters:
pluginType- The plugin to use.automatic- Initial translation should be done automatically.- Since:
- 5.2.33
-
perform
boolean perform()Initiates the translation process on the client-side.- Returns:
- Returns whether or not the translation has been successfully saved.
- Since:
- 5.2.33
-