[TYPO3-dev] Value of dynamic name variable typoscript
gal typo
question.question at laposte.net
Fri Jan 31 16:03:24 CET 2014
It's ok, i get it, now I have the "Website Language" options!
But, I think that the best solution for me his my first solution, because I want to have in a file locallang.xml all translations labels (pages,texte, etc..). Unfortunately, my typoscript can't see "English" lang translations (in my website I want to have French as the default language and I want to translate all French labels used to English).
PS : I have an english typo3 installation.
My locallang.xml file :
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
<meta type="array">
<type>module</type>
<description>Language labels</description>
</meta>
<data type="array">
<languageKey index="default" type="array">
<label index="lib_accueil">Accueil (default)</label>
</languageKey>
<languageKey index="fr" type="array">
<label index="lib_accueil">Accueil (fr)</label>
</languageKey>
<languageKey index="en" type="array">
<label index="lib_accueil">Accueil (en)</label>
</languageKey>
</data>
</T3locallang>
My typoscript :
# French language
config.sys_language_uid = 1
config.language = fr
config.htmlTag_langKey = fr-FR
config.locale_all = fr_FR
# French language
[globalVar = GP:L=1]
config.sys_language_uid = 1
config.language = fr
config.htmlTag_langKey = fr-FR
config.locale_all = fr_FR
[global]
# English language
[globalVar = GP:L=2]
config.sys_language_uid = 2
config.language = en
config.htmlTag_langKey = en-EN
config.locale_all = en_En
[global]
lib.myfield=TEXT
lib.myfield.data = LLL:fileadmin/templates/language/locallang.xml:lib_accueil
The results is always:
"Accueil (default)" ( and not "Accueil (en)" when &L=2)
More information about the TYPO3-dev
mailing list