Class HTMLPurifier_Language
Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier.
Direct known subclasses
HTMLPurifier_Language_en_x_test
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
formatMessage( string $key, array $args = array() )
Formats a localised message with passed parameters |
public
string
|
$code | 'en' |
#
ISO 639 language code of language. Prefers shortest possible version. |
public
boolean
|
$fallback | false |
#
Fallback language code. |
public
array
|
$messages | array() |
#
Array of localizable messages. |
public
array
|
$errorNames | array() |
#
Array of localizable error codes. |
public
boolean
|
$error | false |
#
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. |
public
boolean
|
$_loaded | false |
#
Has the language object been loaded yet? |
protected
mixed
|
$config |
|
|
protected
mixed
|
$context |
|