Hi Victor,

it seems to be a bug. I reported a similar issue some days ago with Typoscript:

http://forge.typo3.org/issues/35093

So I propose that you open an issue in the bug tracker:
http://forge.typo3.org/projects/typo3v4-mvc/issues

Regards,
Chris.


Am 09.04.2012 14:05, schrieb Victor Livakovsky:
Hi, list.

Once again I have a question about fluid.
Is it possible to use .xlf files in FLUIDTEMPLATE f:translate viewHelper?
If so, what filepath should I specify for multilanguage website?

I.e., I have two xlf files:
fileadmin/locallang.xlf
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="htmlbody" original="messages"
date="2012-04-06T11:48:07Z" product-name="fluid" xml:space="preserve">
<header/>
<body>
<trans-unit id="page.logo.title">
<source>Home (orig)</source>
</trans-unit>
</body>
</file>
</xliff>

fileadmin/de.locallang.xlf
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="htmlbody"
original="messages" date="2012-04-06T11:48:07Z" product-name="fluid"
xml:space="preserve">
<header/>
<body>
<trans-unit id="page.logo.title" approved="yes">
<source>Home (en)</source>
<target>Home (de)</target>
</trans-unit>
</body>
</file>
</xliff>

If I specify original file in a path like this:
{f:translate(key: 'LLL:fileadmin/locallang.xlf:page.logo.title',
default: 'Home')}
Then FE output is same for both languages: Home (orig)

If I specify a path like this:
{f:translate(key: 'LLL:fileadmin/de.locallang.xlf:page.logo.title',
default: 'Home')}
Then FE output is always: Home (en)

German label is never fetched. Am I doing something wrong?

_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to