karim sallami
karim sallami

Reputation: 55

Get the current language in typo3

in pi based Extension I have: $this->pi_getLL('languagekey') to get my translated variable.My problem is that I want to display my current language , something returns "en"

Upvotes: 0

Views: 861

Answers (1)

karim sallami
karim sallami

Reputation: 55

After a long seach I found the Typo3 returns the current language by $GLOBALS['TSFE']->lang

You can find here many useful variable of Typo3

Upvotes: 1

Related Questions