[TYPO3-mvc] XLIFF-support in fluid viewhelper

Thomas Hucke thucke at web.de
Sun Mar 3 10:01:08 CET 2013


Thank you Daniel,

Ionly deleted the files in the localconf directory. Obviously that wasn´t 
enough.
After deleting all cache via backend it works - nearly....
BTW: Now I´ve added $TYPO3_CONF_VARS['SYS']['lang']['cache']['clear_menu'] = 
TRUE; in my localconf.php

What´s being displayed now is the following:

    Current rating is {currentRates} out of {stepCount}

Objects are not replaced with their actual values.
How do get it working?


Greets
Thomas


"Daniel Siepmann"  schrieb im Newsbeitrag 
news:mailman.5357.1362249490.609.typo3-project-typo3v4mvc at lists.typo3.org...

Looks all fine. Did you clear the Cache as the language files are cached.
And did you try something without single quotes and curly braces to
test if there is a problem?

--
Daniel Siepmann
TYPO3 Editorial Team Co-Leader

TYPO3 .... inspiring people to share!
Get involved: typo3.org


On Sat, Mar 2, 2013 at 7:29 PM, Thomas Hucke <thucke at web.de> wrote:
> Hi list,
>
> I could not find any information how to make translations (<f:translate 
> key=
> ....) using XLIFF files.
>
> I´ve got this XLF-File in EXT:Resources\Private\Language\locallang.xlf:
>
> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
> <xliff version="1.0">
> <file source-language="en" datatype="plaintext" original="messages"
> date="2013-03-01T17:33:10Z" product-name="th_rating">
>  <header/>
>  <body>
>   <trans-unit id="fluid.template.ratinglinks.currentRating"
> xml:space="preserve">
>    <source>'Current rating is {currentRates} out of {stepCount}'</source>
>   </trans-unit>
>  </body>
> </file>
> </xliff>
>
> And I try to acess this wihtin a FLUID template:
>    <f:translate key='fluid.template.ratinglinks.currentRating'/>
>
> What am I doing wrong here?
>
> Thanks
> Thomas
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc 



More information about the TYPO3-project-typo3v4mvc mailing list