About Multi Language Site

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

http://www.yiiframework.com/doc/guide/1.1/es/topics.i18n

For Yii2 this is the correct link: https://github.com/yiisoft/yii2/blob/master/docs/guide/i18n.md

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’?