You are here

public function TMGMTDefaultTranslatorPluginController::getSupportedRemoteLanguages in Translation Management Tool 7

Gets all supported languages of the translator.

This list of all language codes used by the remote translator is then used for example in the translator settings form to select which remote language code correspond to which local language code.

Parameters

TMGMTTranslator $translator: Translator entity for which to get supported languages.

Return value

array An array of language codes which are provided by the translator (remote language codes).

Overrides TMGMTTranslatorPluginControllerInterface::getSupportedRemoteLanguages

1 call to TMGMTDefaultTranslatorPluginController::getSupportedRemoteLanguages()
TMGMTDefaultTranslatorPluginController::getSupportedLanguagePairs in plugin/tmgmt.plugin.translator.inc
Default implementation that gets target languages for each remote language. This approach is ineffective and therefore it is advised that a plugin should provide own implementation.

File

plugin/tmgmt.plugin.translator.inc, line 72
Contains the abstract translator base plugin class.

Class

TMGMTDefaultTranslatorPluginController
Default controller class for service plugins.

Code

public function getSupportedRemoteLanguages(TMGMTTranslator $translator) {
  return array();
}