You are here

public function TMGMTTranslatorPluginControllerInterface::mapToLocalLanguage in Translation Management Tool 7

Maps remote language to local language.

Parameters

TMGMTTranslator $translator: Translator entity for which to get local language.

$language: Remote language code.

Return value

string Local language code.

Related topics

1 method overrides TMGMTTranslatorPluginControllerInterface::mapToLocalLanguage()
TMGMTDefaultTranslatorPluginController::mapToLocalLanguage in plugin/tmgmt.plugin.translator.inc
Maps remote language to local language.

File

plugin/tmgmt.plugin.interface.translator.inc, line 140
Contains the source plugin interface.

Class

TMGMTTranslatorPluginControllerInterface
Interface for service plugin controllers.

Code

public function mapToLocalLanguage(TMGMTTranslator $translator, $language);