Rules localization in url manager

Hi,there! I have idea to use Yii-rules depending of language.

For example, instead of [size="5"]http://site.com/shop/items/view[/size]

i want to use [size="5"]http://site.com/str[/size],

where str is SEO-string in native language:

First up solution is using dictionaries in config:


'urlManager'=>array(

    'urlFormat'=>'path',

    'showScriptName'=>false,

    'rules'=>array(

        '/'.Yii::t('dictionary','url')=>array('/shop/items/view'),

    ),

),

But i can’t use dictionaries at this stage. Seems, language and dictionaries aren’t loaded yet.

Do you see the solve?

may be mod_rewrite? but it will be a huge list of links there for every language

i’ve found solution