Language Redirect
Adds language redirection to Symphony.
Browse
Description
Language Redirect provides an event to redirect visitors based on browser settings, values in a cookie or default settings. It adds language and region parameters to the parameter pool and renders those parameters in a clean way at the beginning of the URL.
Language Redirect adds a new settings field to the Preferences Page. There you can add your supported language codes as a comma separated list. A language code has to be either a two character string like en
(language) or a five character string like en-au
(language-region). The extensions adds the language part as $url-language
and the optional region part as $url-region
(normal get parameters) to the parameter pool for usage in your datasources or XSL templates.
The event stores the current language an region parameters in a cookie. Visitors will be redirected depending on settings in the following order.
- saved parameters in the cookie
- first matched language code in browser settings
- default language code (first in saved preferences)
Please report bugs at https://github.com/klaftertief/language_redirect/issues