Пример #1
0
 /**
  * Used to allow third party software to override the language detection mechanism for frontend requests
  * the module can provide an object derived from CmsLanguageDetector to this method.
  *
  * Note, this module must return a language for which there is an available NLS file.
  *
  * @param CmsLanguageDetector Object containing methods to detect a compatible, desired language
  * @return void
  */
 public static function set_language_detector(CmsLanguageDetector &$obj)
 {
     if (is_object(self::$_fe_language_detector)) {
         die('language detector already set');
     }
     self::$_fe_language_detector = $obj;
 }