[TYPO3] Translate static template parts
Thijs Hakkenberg
thijs at hakkenberg.com
Wed Jun 14 00:40:00 CEST 2006
Christian Lerrahn schreef:
> Hi Thijs,
>
>> I have a multiple-language site with some content elements that are
>> placed in my template with the MARKS (###NAME_OF_REPLACED_CONTENT###)
>> command in my template setup. However; because of the fact that those
>> are static content element; They aren't translated to their other
>> counterparts.
>>
>> Has anyone has another solution to incoperate static content elements
>> which are translatable?
>>
>
> I have that problem as well. There are a few tricks you can use to work
> around this. One trick is to use "pseudo pages" for some things. This is
> what I use for strange menus and sometimes for labels as well. However,
> in some cases you might not get around setting up your template
> differently in several language blocks like this
>
> [globalVar = GP:L = 1]
> page.10.subparts.logoWithLabel.file =
> fileadmin/templates/images/logo_chinese.gif
> [END]
>
> [globalVar = GP:L = 2]
> page.10.subparts.logoWithLabel.file =
> fileadmin/templates/images/logo_japanese.gif
> [END]
>
> I hate this method and try to avoid it wherever possible but in some
> cases you just can't work around this it seems. :-(
>
> Cheers,
> Christian
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
Hm. Maybe you could try to obtain a field from the database, like I do
now. However; I substitute marks (###NAME###) from my template;
page.10 {
marks.LANG= RECORDS
marks.LANG.tables = tt_content
marks.LANG.source = 82
}
I now use this (working! thanks!) setup:
page.10 {
marks.LANG= RECORDS
marks.LANG.tables = tt_content
marks.LANG.source = 82
}
#taalgedoe
config.linkVars = L
[globalVar = GP: L = 0]
config.language = nl
config.sys_language_uid = 0
config.locale_all = nl_NL
#templateonderdelen NL
page.10 {
marks.STLINKS= RECORDS
marks.STLINKS.tables = tt_content
marks.STLINKS.source = 60
marks.BOEKEN= RECORDS
marks.BOEKEN.tables = tt_content
marks.BOEKEN.source = 62
marks.HOME= RECORDS
marks.HOME.tables = tt_content
marks.HOME.source = 69
marks.CONTACT= RECORDS
marks.CONTACT.tables = tt_content
marks.CONTACT.source = 79
}
(it's basically the same workaround, I have to define the content
elements per language, however, I have them all ready on a page which is
hidden in the menu 'template parts'.).
Thanx!
--
Thijs Hakkenberg,
Voorzitter Stichting Ebriositas
www.ebriositas.nl
Student Natuurkunde UvA
www.uva.nl
Systeembeheerder Stichting Varkens in Nood
www.varkensinnood.nl
Contact:
tel: 06-48761131
www.hakkenberg.com
thijs at hakkenberg.com
More information about the TYPO3-english
mailing list