[TYPO3-dev] How to detect from an extension controller which language is selected?
Juan Asencio
jao at dmi.dk
Mon Oct 28 14:43:21 CET 2013
Thank you for your answers Bernd and Søren,
It works :)
Cheers,
Juan.-
________________________________________
From: typo3-dev-bounces at lists.typo3.org [typo3-dev-bounces at lists.typo3.org] on behalf of Søren Malling [soren.malling at gmail.com]
Sent: 28 October 2013 14:32
To: List for Core-/Extension development
Subject: Re: [TYPO3-dev] How to detect from an extension controller which language is selected?
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
>
_______________________________________________
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