Typo3 - Get the current language in an external php file

I am new to typo3 :) and I want to get the current language in an external php file.

How can i do this?

Many thanks.

+6
typo3
source share
3 answers

If you have a TSFE instance, you can access sys_language_uid through $GLOBALS['TSFE']->sys_language_uid

+14
source share

Usually L is always used as a language parameter in typo3. $ _GET ['L']

+1
source share

Always the best way to get the current language:

 $GLOBALS['TSFE']->sys_language_uid 

or

 $GLOBALS['TSFE']->sys_language_content 

based on the fact that you get the current language identifier, and you can give a condition for this.

+1
source share

All Articles