Function __global->user_lang__with__translation_override
Definitions
sources/lang.php
- Get the user's currently selected language, with support for an override when doing a translation.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $post | boolean | No | No | False | N/A | N/A | Whether the language setting is a POST parameter (default is a GET parameter) |
Returns
- The user's current language
- Type: LANGUAGE_NAME
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the user's currently selected language, with support for an override when doing a translation.
*
* @param boolean $post Whether the language setting is a POST parameter (default is a GET parameter)
* @return LANGUAGE_NAME The user's current language
*/
function user_lang__with__translation_override(bool $post = false) : string
* Get the user's currently selected language, with support for an override when doing a translation.
*
* @param boolean $post Whether the language setting is a POST parameter (default is a GET parameter)
* @return LANGUAGE_NAME The user's current language
*/
function user_lang__with__translation_override(bool $post = false) : string

