Function Hook_translation_google_translate->put_result_into_context
Definitions
sources/hooks/systems/translation/google_translate.php
- Put a result within some surrounding text, based on the display context.Some translation backends require output text to be displayed in a certain way.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$text_result | string | required parameter | N/A | N/A | Result text |
$context | integer | required parameter | N/A | N/A | A TRANS_TEXT_CONTEXT_* constant |
$context_metadata | mixed | required parameter | N/A | N/A | Context metadata for the particular translation effort |
Return
- Output text
- Type: string
- Set: N/A
- Range: N/A