[TYPO3-english] Language Condition

ppraveenk praveen.penupati at gmail.com
Thu Jun 3 11:44:30 CEST 2010


Hi,

I have a website with multilingual setup with one tree.
We use auto template parser extension.
I have an issue with some text hardcoded in the typoscript template.
I would like to display the text in the respective language using some
condition in the typoscript.
I tried the possible conditions as far as I knew like:
1. [globalVar = GP:L = 1]
2. [globalVar = TSFE:sys_language_uid = 1]
3. [globalVar = GP:L = es]
4. [language = es]
None of the above solved my issue.
I tried the condition in typoscript template in the following manner:

 1. [globalVar = GP:L = 0]
 2.      marks.TOOLTITLE.value = Tool conditions
 3. [global]	
 4. [globalVar = TSFE:sys_language_uid = 1]
 5.      marks.TOOLTITLE.value = Herramienta de condiciones
 6. [global]

The above mentioned code doesn't work. Always I see the value as
'Herramienta de condiciones' for both english and spanish languages. Also
some other subparts were not recongnized if I place the above code in my
template.
My typoscript setup for multiple languages is as below:


#setup the default language in case of bad L variable
config.sys_language_mode = content_fallback
config.uniqueLinkVars=1
config.sys_language_overlay = 1
config.sys_language_uid = 0
config.language = en
config.linkVars = L
# Spanish language, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = es
config.locale_all = spanish
[global]
# English language, sys_language.uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = en
[global]

Someone please help me how can I use language condition and show the text in
the respective language.

cheers!
praveen.
-- 
View this message in context: http://old.nabble.com/Language-Condition-tp28765314p28765314.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list