[Neos] Localization in Fluid Templates

Henjo Hoeksma henjo at simplyadmire.com
Mon Mar 23 12:07:37 CET 2015

On 2015-03-11 09:26:50 +0000, Tristan Koch said:

> Hi,
> I'm trying to localize a string in one of my Fluid templates using the 
> <f:translate> view helper.
> <f:translate id="imgDesc.more.label" />
> I'd like to add the translation catalogue (XLIFF) to my site package. 
> However, when I add <Site>/Resources/Private/Translations/de/Main.xlf I 
> get the error:
> No XLIFF file is available for TYPO3.Neos::Main::de in the locale chain.
> Interestingly the error is the same if a deliberately invalidate the 
> XML file (omitting a tag for example). It appears that the Translations 
> folder is not added to the load path. This is confirmed by the fact 
> that if I add the exact same Main.xlf files to 
> Packages/Application/TYPO3.Neos/Resources/Private/Translations/ they 
> get recognized.
> I was under the impression a site package is an ordinary Flow package. 
> Any ideas?

Hi Tristan,

you have to specify your package in the translate viewhelper. A Neos 
site defaults to the TYPO3.Neos package.

ie: <f:translate id="myLabel" package="My.PackageKey" 
source="MyOtherSourceThanMain">Default value</f:translate>

Kinds regards,


More information about the Neos mailing list