[TYPO3-dev] Better intelligence in translate view helper

Jost Baron Jost.Baron at gmx.de
Sat Sep 13 14:27:32 CEST 2014


Hi Olle,

the translate-ViewHelper uses the Core LocalizationUtility, which does a
lot of caching and memoization. Try to change a localization label -
sometimes you need to clear all caches in the install tool to update the
output.

Regards,
Jost

On 12.09.2014 20:06, Olle Haerstedt wrote:
> I have a for-loop in a Fluid template which translate a button text over
> and over. To improve on performance, I removed the view helper and
> translated the text once in the controller instead. My questions is,
> would be possible to build in more intelligence in the view helper, so
> that is it automatically called only once for each output? Memoizing the
> result, that is. Preferebly without creating a bunch of objects every time.




More information about the TYPO3-dev mailing list