◆ getCurrentLang()
static getCurrentLang |
( |
| ) |
|
|
static |
- Возвращает
- string
См. определение в файле loc.php строка 78
◆ getDefaultLang()
static getDefaultLang |
( |
|
$lang | ) |
|
|
static |
Returns default language for specified language. Default language is used when translation is not found.
- Аргументы
-
- Возвращает
- string
См. определение в файле loc.php строка 453
◆ getIncludedFiles()
static getIncludedFiles |
( |
| ) |
|
|
static |
Returns previously included lang files.
- Возвращает
- array
См. определение в файле loc.php строка 474
◆ getMessage()
static getMessage |
( |
|
$code, |
|
|
|
$replace = null , |
|
|
|
$language = null |
|
) |
| |
|
static |
◆ getMessagePlural()
static getMessagePlural |
( |
string |
$code, |
|
|
int |
$value, |
|
|
array |
$replace = null , |
|
|
string |
$language = null |
|
) |
| |
|
static |
Gets plural message by id and number
- Аргументы
-
{string} | messageId |
{number} | value |
{object} | [replacements] |
- Возвращает
- {?string} Returns plural message by message code and number. Loc::loadMessages(FILE) should be called first once per php file
- Аргументы
-
string | $code | |
int | $value | |
array | null | $replace | e.g. array("#NUM#"=>5) |
string | null | $language | |
- Возвращает
- string|null
См. определение в файле loc.php строка 497
◆ getPluralForm()
static getPluralForm |
( |
|
$value, |
|
|
|
$language = '' |
|
) |
| |
|
static |
◆ loadCustomMessages()
static loadCustomMessages |
( |
|
$file, |
|
|
|
$language = null |
|
) |
| |
|
static |
Loads custom messages from the file to overwrite messages by their IDs.
- Аргументы
-
string | $file | |
string | null | $language | |
См. определение в файле loc.php строка 282
◆ loadLanguageFile()
static loadLanguageFile |
( |
|
$file, |
|
|
|
$language = null , |
|
|
|
$normalize = true |
|
) |
| |
|
static |
Loads language messages for specified file
- Аргументы
-
string | $file | |
string | $language | |
bool | $normalize | |
- Возвращает
- array
См. определение в файле loc.php строка 224
◆ loadMessages()
static loadMessages |
( |
|
$file | ) |
|
|
static |
Loads language messages for specified file in a lazy way
- Аргументы
-
См. определение в файле loc.php строка 64
◆ setCurrentLang()
static setCurrentLang |
( |
|
$language | ) |
|
|
static |