public static function init($request) { self::$request = $request; self::registerLanguage(array("fr")); if (Session::isActive()) { self::$prefered_language = Session::get()->getLanguageSetting() == "auto" ? self::GetLanguageFromHttpRequest() : Session::get()->getLanguageSetting(); } else { self::$prefered_language = self::GetLanguageFromHttpRequest(); } }