Changes
Title
unchanged
I18n subdomains and url-rules
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
i18n, URL
Content
changed
[...]
* If we're not already on a valid subdomain, the component tries to guess the client language and checks if that language is supported. If that's not the case, the fallback language is used as active language. After that a redirect-url gets generated.
* 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 custom rules.
* If a redirect-url was previously set, a redirect to that url will be executed.
### Summary[...]