i18n: Add some comments

This commit is contained in:
loblao 2016-09-03 11:50:29 -03:00 committed by Alex Grintsvayg
parent b30a7c0708
commit 05d465905f

View file

@ -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()) : [];