Yii::t() In Urlmanager Or I18N In Urls

Hello all,

I am trying to translate url in urlManager in config file.


'urlManager'=>array(

                'urlFormat'=>'path',

                'showScriptName'=>false,

                'rules'=>array(

                        Yii::t('app','registration')=>'user/registration/index',

                        '<controller:\w+>/<id:\d+>'=>'<controller>/view',

                        'video/user/<id:\w+>'=>'video/user',

                        'videoalbum/user/<id:\w+>'=>'videoalbum/user',

                        '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

                        '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

                        '<view:[a-zA-Z0-9-]+>/'=>'site/page',

                        

                        

                ),

            ),

translation not working. Where can be problem?

Are you doing change or crate in .htaccess file?

may this follwing link hepls you:

http://www.yiiframework.com/doc/guide/1.1/en/topics.url

So I must have language in URL? I can’t translate it directly?