Свойство | Тип | Описание | |
---|---|---|---|
$langa | array | Messages of primary localization language | |
$langb | array | Messages of fallback localization language | |
$user_lang | string | User language |
Метод | Описание | |
---|---|---|
__construct ( string $lang ) | Find the user language, either one of the allowed languages or English as a fallback. Store the English messages as an alternative for incomplete translations. | |
message ( string $id ) : string | Return a localized message string for $id. | |
offsetExists ( $id ) | Implement this part of the Array interface for easier access by the templates. | |
offsetGet ( $id ) | Implement this part of the Array interface for easier access by the templates. |
public __construct ( string $lang ) | ||
$lang | string | user language (according to client) |
public offsetExists ( $id ) |
public array $langa | ||
Результат | array |
public array $langb | ||
Результат | array |