Author:
klaftertief
Version:
1.0.3
Released:
6 July 2011
Category:
Events, and Multilingual

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.

  1. saved parameters in the cookie
  2. first matched language code in browser settings
  3. default language code (first in saved preferences)

Please report bugs at https://github.com/klaftertief/language_redirect/issues

Repository

http://github.com/klaftertief/language_redirect

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details