Function __global->require_lang
Definitions
sources/lang.php
- Includes a language file for use in the script.If $type is not null, then this specifies whether to use 'lang_custom' or 'custom' (otherwise, normal priorities occur).
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$codename | ID_TEXT | required parameter | N/A | N/A | The language file name |
$lang | ?LANGUAGE_NAME | Null | N/A | N/A | The language (null: uses the current language) |
$type | ?string | Null | N/A | N/A | The language type (lang_custom, or custom) (null: normal priorities are used) |
$ignore_errors | boolean | False | N/A | N/A | Whether to just return if there was a loading error |