[TYPO3-core] RFC: #9346: Preinitialise GLOBALS[LANG] in init.php
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Sep 16 20:54:26 CEST 2008
Hi!
Franz Holzinger wrote:
> Move the lines
> +require_once(PATH_typo3.'sysext/lang/lang.php');
> +$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
> +$GLOBALS['LANG']->init($BE_USER->uc['lang']);
>
> to the beginning of the file init.php.
And how to get current language?
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/debugging_symlinked_typo3_files_with_komodo_ide_on_mac/
More information about the TYPO3-team-core
mailing list