You are here

public function SmartlingTranslator::getDefaultRemoteLanguagesMappings in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::getDefaultRemoteLanguagesMappings()
  2. 8 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::getDefaultRemoteLanguagesMappings()
  3. 8.2 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::getDefaultRemoteLanguagesMappings()

Specifies default mappings for local to remote language codes.

This method can be used in case we know in advance what language codes are used by the remote translator and to which local language codes they correspond.

Return value

array An array of local => remote language codes.

Overrides TranslatorPluginBase::getDefaultRemoteLanguagesMappings

File

src/Plugin/tmgmt/Translator/SmartlingTranslator.php, line 443
Contains \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator.

Class

SmartlingTranslator
Smartling translator plugin.

Namespace

Drupal\tmgmt_smartling\Plugin\tmgmt\Translator

Code

public function getDefaultRemoteLanguagesMappings() {
  return array(
    'zh-hans' => 'zh-CH',
    'nl' => 'nl-NL',
    'en' => 'en-EN',
  );
}