loadMessages() protected method
Loads the message translation for the specified $language and $category.
If translation for specific locale code such as en-US
isn't found it tries more generic en
. When both are present, the en-US
messages will be merged over en
. See loadFallbackMessages() for details. If the $language is less specific than $sourceLanguage, the method will try to load the messages for $sourceLanguage. For example: $sourceLanguage is en-GB
, $language is en
. The method will load the messages for en
and merge them over en-GB
.
See also:
protected array loadMessages ( $category, $language ) | ||
---|---|---|
$category | string |
The message category |
$language | string |
The target language |
return | array |
The loaded messages. The keys are original messages, and the values are translated messages. |
Please login to continue.