Свойство | Type | Description | |
---|---|---|---|
$langa | array | Messages of primary localization language | |
$langb | array | Messages of fallback localization language | |
$user_lang | string | User language |
Méthode | Description | |
---|---|---|
__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 | ||
Résultat | array |
public array $langb | ||
Résultat | array |