[TYPO3-templavoila] Multilanguage templates

Dmitry Dulepov typo3 at fm-world.ru
Sun Jan 22 18:05:16 CET 2006


Hi!

John Angel wrote:
> I've read about making multilanguage sites, but what about multilanguage
> templates?
>
> What if there are certain parts of templates with headers which should be
> translated? These are usually short sentences (e.g. "Related articles",
> "Most viewed articles", "Search") hard coded in HTML templates, which
> should
> be translated, also.
> 
> Does TV offer solution for this?
> 
> I assume I can map these sentences, and then insert TS object for each of
> them, dumping the content of some article containing translation.

You can define field type as [NONE] and use <TypoScript> in the DS record to
fetch strings from locallang.xml file with simple TS:
------------------
10 = TEXT
10.data = LLL:fileadmin/templates/locallang.xml:header.related_articles
------------------

Dmitry.



More information about the TYPO3-project-templavoila mailing list