Interface TranslationOperation
public interface TranslationOperation
Operation providing means to open a translation view on the client-side.
- Since:
- 5.2.33
-
Field Summary
Modifier and TypeFieldDescriptionstatic final OperationType<TranslationOperation>
Operation type providing means to open a translation view on the client-side. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
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
-