[TYPO3] Make header image depend on language

JoH info at cybercraft.de
Wed Jun 14 15:24:07 CEST 2006


>> And what exactly is the difference to Brain's code - except that you
>> are not checking for globalVar here?
> Yes you got me with too fast an answer. Embarrassed, yes.
> Sorry for the incorrect answer Joey.
>
> I'd typically use:
>
> [globalVar = GP:L = 0]
> config.language = en
> [globalVar = GP:L = 1]
> config.language = es
> [GLOBAL]

And what about values for L > 1 ?
No language at all?

IMHO the solution with else is not that bad.

[globalVar = GP:L = 1]
config.language = es
[else]
config.language = en
[global]

But usually you should use a default value outside of conditions instead of 
else.

config.language = en
[globalVar = GP:L = 0]
config.language = en
[globalVar = GP:L = 1]
config.language = es
[global]

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de 





More information about the TYPO3-english mailing list