[TYPO3-dev] condition on language
François Suter
fsu-lists at cobweb.ch
Thu Aug 12 21:27:38 CEST 2010
Hi,
> Thanks for you answer.
>
> I have static_info_tables installed. But:
> page.1=TEXT
> page.1.data = TSFE:sys_language_isocode
> doesn't produce anything.
I made a test myself and it worked. More or less.
What worked is that I managed to have an ISO code for non-default
languages. For the default language I get an empty result, instead of
"default". I looked a bit deeper into that and it's actually logical.
The default language is defined as 0, so it can't be matched to a
static_languages record.
But I found the property I was actually looking for when I started
replying in this thread ;-). As I mentioned in my previous mail, in a
well-configured installation you will have defined a config.language
property. This is accessible using:
tsfe:config|config|language
Now I don't know if this will help you, since in my installations I
defined config.language for various languages based on tests on the L
variable, so it's getting of the snake biting its own tail. However as I
understood your requirements it will at least not amount to a direct
test on L.
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-dev
mailing list