[TYPO3-dev] How to detect from an extension controller which language is selected?

Søren Malling soren.malling at gmail.com
Mon Oct 28 14:32:29 CET 2013


Hi Juan,

Have a look inside the global TSFE array and you should find it at this
position

$GLOBALS['TSFE']->sys_language_uid

Cheers,

Søren


On Mon, Oct 28, 2013 at 12:35 PM, Juan Asencio <jao at dmi.dk> wrote:

> Hello,
>
> In our typo3 installation we have a site in two different languages.
>
> I would like to know which language has the user selected. Because I use
> the url to access a folder on fileadmin.
>
> The problem is that when the user selects another language than the
> default, on the url is added the selected language like for english 'en'.
>
> Any suggestions how to detect the selected language or any other way how
> to solve this?
>
> Thanks in advance,
>
>
> Juan.-
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>



More information about the TYPO3-dev mailing list