Function Hook_translation_google_translate->get_translation_context

Definitions

sources/hooks/systems/translation/google_translate.php

  • Get translation context for future internal use.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$context integer required parameter N/A N/A A TRANS_TEXT_CONTEXT_* constant
$from ?LANGUAGE_NAME required parameter N/A N/A Source language (null: autodetect from the text itself)
$to LANGUAGE_NAME required parameter N/A N/A Destination language
$errormsg ?string required parameter N/A N/A Error message (returned by reference) (null: not set yet)

Return

  • Context metadata for the particular translation effort
  • Type: mixed
  • Set: N/A
  • Range: N/A