[TYPO3-dev] How to detect from an extension controller which language is selected?
bernd wilke
t3ng at bernd-wilke.net
Mon Oct 28 13:00:09 CET 2013
Am 28.10.13 12:35, schrieb Juan Asencio:
> 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?
>
if you are inside of TYPO3 you have global vars which include a lot of
information.
somewhere in TSFE there is the current language(-ID)
you also may define some settings in typoscript depending on the current
language.
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-dev
mailing list