Function Hook_translation_google_translate->get_google_lang_code

Definitions

sources/hooks/systems/translation/google_translate.php

  • Convert a standard language codename to a Google Translate 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