Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
yii
i18n
MessageSource
loadMessages
yii\i18n\MessageSource::loadMessages PHP Méthode
MessageSource Class Documentation
Afficher le fichier
Open project: yiisoft/yii2
loadMessages()
protected
méthode
If translation for specific locale code such as
en-US
isn't found it tries more generic
en
.
protected
loadMessages
(
string
$category
,
string
$language
) :
array
$category
string
the message category
$language
string
the target language
Résultat
array
the loaded messages. The keys are original messages, and the values are translated messages.
protected function loadMessages($category, $language) { return []; }
MessageSource
init
loadMessages
translate
translateMessage