public function TMGMTTestTranslatorPluginController::getSupportedTargetLanguages in Translation Management Tool 7
Returns all available target languages that are supported by this service when given a source language.
Parameters
TMGMTTranslator $translator: The translator entity.
$source_language: The source language.
Return value
array An array of remote languages in ISO format.
Overrides TMGMTDefaultTranslatorPluginController::getSupportedTargetLanguages
File
- tests/
tmgmt_test.plugin.translator.inc, line 87 - Cotains the test translator plugin.
Class
- TMGMTTestTranslatorPluginController
- @file Cotains the test translator plugin.
Code
public function getSupportedTargetLanguages(TMGMTTranslator $translator, $source_language) {
$languages = drupal_map_assoc(array(
'en',
'de',
'es',
'it',
'zh-hans',
'gsw-berne',
));
unset($languages[$source_language]);
return $languages;
}