Function Hook_translation_bing_translator->get_bing_lang_code

Definitions

sources/hooks/systems/translation/bing_translator.php

  • Convert a standard language codename to a Bing Translator code.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$in LANGUAGE_NAME required parameter N/A N/A The code to convert
$errormsg ?string Null N/A N/A Error message (returned by reference) (null: not set yet)

Return

  • The converted code (null: none found)
  • Type: ?string
  • Set: N/A
  • Range: N/A