Difference between #1 and #7 of
I18n subdomains and url-rules

Changes

Title unchanged

I18n subdomains and url-rules

Category unchanged

Tutorials

Yii version unchanged

Tags changed

i18n, URL

Content changed

[...]
<?php
...

'components' => array(
'i18n' => array(
    'class' => 'I18n',
 
'urlRulesPath' => dirname(__FILE__) . '/i18n/urlRules',
'supportedLanguages' => array(
array('code' => 'en', 'name' => 'english', 'fallback' => true),
[...]
* The application language will be set to the just figured out active language.

* The custom url rules will be included and passed to the urlManager component. The urlManager will be re-initialized to apply the cu
stom rules.

* If a redirect-url was previously set, a redirect to that url will be executed.
[...]
It's in the end up to you what you need, but I hope this example solution could give you a clue of how this can be done.

Feel free to share your thoughts and remarks - thank you.

 
 
### Links
 
 
[Russian version](http://dbhelp.ru/i18n-subdomains-and-url-rules/page/)
7 0
17 followers
Viewed: 46 397 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL
Written by: Y!!
Last updated by: atrandafir
Created on: Nov 7, 2009
Last updated: 13 years ago
Update Article

Revisions

View all history