/** * Sets the currently active language/language_alt keys. * Default values are "default" for language key and "" for language_alt key. * * @return void * @author Christopher Hlubek <*****@*****.**> * @author Bastian Waidelich <*****@*****.**> */ protected function setLanguageKeys() { self::$languageKey = 'default'; self::$alternativeLanguageKey = ''; if (TYPO3_MODE === 'FE') { if (isset($GLOBALS['TSFE']->config['config']['language'])) { self::$languageKey = $GLOBALS['TSFE']->config['config']['language']; if (isset($GLOBALS['TSFE']->config['config']['language_alt'])) { self::$alternativeLanguageKey = $GLOBALS['TSFE']->config['config']['language_alt']; } } } elseif (strlen($GLOBALS['BE_USER']->uc['lang']) > 0) { self::$languageKey = $GLOBALS['BE_USER']->uc['lang']; } }