\MultilingualRootURLController
Synopsis
class MultilingualRootURLController
extends RootURLController
{
- // members
- private static boolean $UseLocaleURL = false;
- private static boolean $UseDashLocale = false;
- private static boolean $use_country_only = false;
- // methods
- public void handleRequest()
- public static {string} detect_browser_locale()
- public static {bool} should_be_on_root()
- public static {string} get_locale_from_country()
Hierarchy
Extends
- RootURLController
Members
private
-
$UseDashLocale
Tells the routing controllers to use a dashed locale or not i.e /en-us/ instead of /en_US/ requires MultilingualRootURLController.UseLocaleURL to be true -
$UseLocaleURL
Tells the routing controllers to use the locale url or not i.e /en_US/ instead of /en/ - $use_country_only
Methods
public
- detect_browser_locale() — Determines the locale best matching the given list of browser locales
- get_locale_from_country() — Finds the locale based on the allowed locales and the country code
- handleRequest()
- should_be_on_root() — Returns TRUE if a request to a certain page should be redirected to the site root (i.e. if the page acts as the home page).