Class GoogleTranslateConnector

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.automatic.translation.api.AutomaticTranslationComponentPlugin
org.exoplatform.automatic.translation.impl.connectors.GoogleTranslateConnector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class GoogleTranslateConnector extends org.exoplatform.automatic.translation.api.AutomaticTranslationComponentPlugin
  • Field Summary

    Fields inherited from class org.exoplatform.automatic.translation.api.AutomaticTranslationComponentPlugin

    settingService

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    GoogleTranslateConnector(org.exoplatform.commons.api.settings.SettingService settingService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    translate(String message, Locale targetLocale)
     

    Methods inherited from class org.exoplatform.automatic.translation.api.AutomaticTranslationComponentPlugin

    getApiKey, setApiKey

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GoogleTranslateConnector

      public GoogleTranslateConnector(org.exoplatform.commons.api.settings.SettingService settingService)
  • Method Details

    • translate

      public String translate(String message, Locale targetLocale)
      Specified by:
      translate in class org.exoplatform.automatic.translation.api.AutomaticTranslationComponentPlugin