I use this Typoscript code:
lib.search = FLUIDTEMPLATE
lib.search.file = {$partialsTemplatesPath}search.html
Whats the best way to use multilanguage inside this Fluidtemplate?
Using lib.search.variables
and GP:L
conditions cant be the best way, right?
UPDATE: Template:
<f:translate key="LLL:{locallangPath}locallang.xlf:search" />
XLF File:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2013-10-21T12:50:51Z" product-name="content">
<header/>
<body>
<trans-unit id="search">
<source>Search</source>
</trans-unit>
</body>
</file>
</xliff>
Translated XLF (de.locallang.xlf):
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="de" datatype="plaintext" original="messages" date="2013-10-21T12:50:51Z" product-name="content">
<header/>
<body>
<trans-unit id="search">
<target>Suche</target>
</trans-unit>
</body>
</file>
</xliff>
This is the right way I guess. But the output is only "Search" and not "Suche". Did I miss something?