concrete/src/User/User.php
public function getUserLanguageToDisplay()
    {
        if ($this->getUserDefaultLanguage() != '') {
            return $this->getUserDefaultLanguage();
        } else {
            $app = Application::getFacadeApplication();
            $config = $app['config'];

            return $config->get('concrete.locale');
        }
    }
public function getUserLanguageToDisplay()
    {
        if ($this->getUserDefaultLanguage() != '') {
            return $this->getUserDefaultLanguage();
        } else {
            $app = Application::getFacadeApplication();
            $config = $app['config'];

            return $config->get('concrete.locale');
        }
    }
public function getUserLanguageToDisplay ( ) { if ( $ this -> getUserDefaultLanguage ( ) != '' ) { return $ this -> getUserDefaultLanguage ( ) ; } else { $ app = Application :: getFacadeApplication ( ) ; $ config = $ app [ 'config' ] ; return $ config -> get ( 'concrete.locale' ) ; } }
Checks to see if the current user object is registered. If so, it queries that records
default language. Otherwise, it falls back to sitewide settings.

@return string
Checks to see if the current user object is registered . If so it queries that records default language . Otherwise it falls back to sitewide settings .