Свойство | Тип | Описание | |
---|---|---|---|
$_loaded | Has the language object been loaded yet? | ||
$code | ISO 639 language code of language. Prefers shortest possible version. | ||
$error | True if no message file was found for this language, so English is being used instead. Check this if you'd like to notify the user that they've used a non-supported language. | ||
$errorNames | Array of localizable error codes. | ||
$fallback | Fallback language code. | ||
$messages | Array of localizable messages. |
Свойство | Тип | Описание | |
---|---|---|---|
$config | |||
$context |
Метод | Описание | |
---|---|---|
__construct ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) | ||
formatMessage ( string $key, array $args = [] ) : string | Formats a localised message with passed parameters | |
getErrorName ( integer $int ) : string | Retrieves a localised error name. | |
getMessage ( string $key ) : string | Retrieves a localised message. | |
listify ( array $array ) : string | Converts an array list into a string readable representation | |
load ( ) | Loads language object with necessary info from factory cache |
public __construct ( HTMLPurifier_Config $config, HTMLPurifier_Context $context ) | ||
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |
public getErrorName ( integer $int ) : string | ||
$int | integer | error number, corresponding to PHP's error reporting |
Результат | string | localised message |
public getMessage ( string $key ) : string | ||
$key | string | string identifier of message |
Результат | string | localised message |
public $code |
public $error |