i18n\PhpMessageSource loadFallbackMessages()

loadFallbackMessages() protected method (available since version 2.0.7)

The method is normally called by loadMessages() to load the fallback messages for the language.

Method tries to load the $category messages for the $fallbackLanguage and adds them to the $messages array.

protected array loadFallbackMessages ( $category, $fallbackLanguage, $messages, $originalMessageFile )
$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.

return array

The loaded messages. The keys are original messages, and the values are the translated messages.

doc_Yii
2016-10-30 17:06:18
Comments
Leave a Comment

Please login to continue.