Bug #35830
f:translate can't handle XLIFF files correctly
| Status: | Rejected | Start date: | 2012-04-10 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Fluid: ViewHelpers | |||
| Target version: | - | |||
| Complexity: | ||||
| Votes: | 2 (View) |
Description
There is a problem with XLIFF files, when using translate viewHelper, which is working correctly with llxml files.
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.
Related issues
| related to Core - Bug #35093: Localization in Typoscript via XLIFF | Under Review | 2012-03-21 |
History
Updated by Lienhart Woitok about 1 year ago
This is no bug in Extbase or Fluid. It looks like TYPO3 localization does not fully support locallang.xlf files in fileadmin, but I didn't have too close a look at that code in TYPO3 core. Maybe someone else can tell further details about this.
Updated by Viktor Livakivskyi about 1 year ago
Hi and thank you for the info.
I've added relation to core issue, reported by Chris Mueller.
Updated by Ingo Pfennigstorf 8 months ago
- Status changed from New to Rejected
see #35093 for core issue
Updated by Anja Leichsenring 5 months ago
- Project changed from Extbase MVC Framework to Fluid
- Category changed from 963 to Fluid: ViewHelpers
Updated by Gerrit Code Review 26 days ago
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20133