mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
i18n: Add some comments
This commit is contained in:
parent
b30a7c0708
commit
05d465905f
1 changed files with 2 additions and 0 deletions
|
@ -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()) : [];
|
||||
|
|
Loading…
Add table
Reference in a new issue