i heard that the best way for multi language in yii framework is yii i18N
how can use it in translation my menu and my fixed content and error messages
i heard that the best way for multi language in yii framework is yii i18N
how can use it in translation my menu and my fixed content and error messages
thnx Alot CeBe that was helpful
I have a question.
I read the documentation. But for me one thing not clear.
echo \Yii::t('app', 'Balance: {0}', $sum);
The first paramter of the T method is ‘app’
But in the config is this app equals to with the ‘app*’?
'i18n' => [
'translations' => [
'app*' => [
'class' => 'yii\i18n\PhpMessageSource',
//'basePath' => '@app/messages',
//'sourceLanguage' => 'en-US',
'fileMap' => [
'app' => 'app.php',
'app/error' => 'error.php',
],
],
],
Or is it equals to the ‘app’ in the ‘fileMap’?