Hi, I use the following in config/main.php to make the urls translateable:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false,
'rules'=>array(
'/' => 'site/index',
'/'.toAscii(Yii::t('base','Anmelden')) => 'site/login',
'/'.toAscii(Yii::t('base','Abmelden')) => 'site/logout',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
This works fine for me. mypage.com/anmelden leads to site/login. BUT has anyone an idea, how to tell the CViewAction to translate the name of the view file? I need something like
'/'.toAscii(Yii::t('base','Impressum')) => array('site/page', 'view' => 'imprint'),
But this does not work.