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
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $in | LANGUAGE_NAME | No | No | required parameter | N/A | N/A | The code to convert |
| &$errormsg | ?string | Yes | No | Null | N/A | N/A | Error message (returned by reference) (null: not set yet) |
Returns
- The converted code (null: none found)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert a standard language codename to a Bing Translator code.
*
* @param LANGUAGE_NAME $in The code to convert
* @param ?string $errormsg Error message (returned by reference) (null: not set yet)
* @return ?string The converted code (null: none found)
*/
protected function get_bing_lang_code(string $in, ?string &$errormsg = null) : ?string
* Convert a standard language codename to a Bing Translator code.
*
* @param LANGUAGE_NAME $in The code to convert
* @param ?string $errormsg Error message (returned by reference) (null: not set yet)
* @return ?string The converted code (null: none found)
*/
protected function get_bing_lang_code(string $in, ?string &$errormsg = null) : ?string

