You are here

function tmgmt_provide_remote_languages_mappings in Translation Management Tool 7

Determines if the translator plugin supports remote language mappings.

Parameters

TMGMTTranslator $translator: Translator entity.

Return value

bool In case translator does not explicitly state that it does not provide the mapping feature it will return TRUE.

Related topics

3 calls to tmgmt_provide_remote_languages_mappings()
TMGMTDefaultTranslatorPluginController::mapToLocalLanguage in plugin/tmgmt.plugin.translator.inc
Maps remote language to local language.
TMGMTDefaultTranslatorPluginController::mapToRemoteLanguage in plugin/tmgmt.plugin.translator.inc
Maps local language to remote language.
TMGMTDefaultTranslatorUIController::pluginSettingsForm in plugin/tmgmt.ui.translator.inc
Form callback for the plugin settings form.

File

./tmgmt.module, line 1091
Main module file for the Translation Management module.

Code

function tmgmt_provide_remote_languages_mappings(TMGMTTranslator $translator) {
  $info = tmgmt_translator_plugin_info($translator->plugin);
  if (!isset($info['map remote languages'])) {
    return TRUE;
  }
  return $info['map remote languages'];
}