Interface TranslationOperation


public interface TranslationOperation
Operation providing means to open a translation view on the client-side.
Since:
5.2.33
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Operation type providing means to open a translation view on the client-side.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Initiates the translation process on the client-side.
    void
    Specifies the element the translation should be done for.
    void
    Specifies the source language of the translation.
    void
    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

  • Method Details

    • setElement

      void setElement(DataProvider element)
      Specifies the element the translation should be done for.
      Parameters:
      element - The element to translate.
      Since:
      5.2.33
    • setSourceLanguage

      void setSourceLanguage(Language language)
      Specifies the source language of the translation.
      Parameters:
      language - The source language.
      Since:
      5.2.33
    • setTargetLanguage

      void setTargetLanguage(Language language)
      Specifies the target language of the translation.
      Parameters:
      language - The target language.
      Since:
      5.2.33
    • setTranslationPlugin

      void setTranslationPlugin(String pluginType, boolean automatic)
      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