From 05d465905f76e873122cd907368251de071cd268 Mon Sep 17 00:00:00 2001 From: loblao <12ksit@gmail.com> Date: Sat, 3 Sep 2016 11:50:29 -0300 Subject: [PATCH] i18n: Add some comments --- lib/i18n.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/i18n.class.php b/lib/i18n.class.php index d76688b8..ff7c5378 100644 --- a/lib/i18n.class.php +++ b/lib/i18n.class.php @@ -17,11 +17,13 @@ class i18n public static function register($culture = null) /*needed to trigger class include, presumably setup would happen here*/ { + // Get user preference, if any if ($culture == null) { $culture = Session::get(Session::KEY_USER_CULTURE); } + // Deduce from host if ($culture === null) { $urlTokens = Request::getHost() ? explode('.', Request::getHost()) : [];