Свойство | Type | Description | |
---|---|---|---|
$basePath | string | ||
$catalog | string | ||
$useBigEndian | boolean | ||
$useMoFile | boolean |
Méthode | Description | |
---|---|---|
getMessageFilePath ( string $language ) : string | Returns message file path for the specified language and category. | |
loadFallbackMessages ( string $category, string $fallbackLanguage, array $messages, string $originalMessageFile ) : array | The method is normally called by [[loadMessages]] to load the fallback messages for the language. | |
loadMessages ( string $category, string $language ) : array | Loads the message translation for the specified $language and $category. | |
loadMessagesFromFile ( string $messageFile, string $category ) : array | null | Loads the message translation for the specified language and category or returns null if file doesn't exist. |
protected getMessageFilePath ( string $language ) : string | ||
$language | string | the target language |
Résultat | string | path to message file |
protected loadFallbackMessages ( string $category, string $fallbackLanguage, array $messages, string $originalMessageFile ) : array | ||
$category | string | the message category |
$fallbackLanguage | string | the target fallback language |
$messages | array | the array of previously loaded translation messages. The keys are original messages, and the values are the translated messages. |
$originalMessageFile | string | the path to the file with messages. Used to log an error message in case when no translations were found. |
Résultat | array | the loaded messages. The keys are original messages, and the values are the translated messages. |