Bug #3068
Fluid: TranslateViewHelper does only work once
100%
Description
The TranslateViewHelper does only work once. If you put more than one translate tag in your template only the first gets translated.
By looking at the code I think that it gets even worse. The TranslateViewHelper will only work once per HTTP request. That means that only the first translate tag of the first loaded extension will get translated and the following translate tags won't.
The problem seems to be the initialization check. The TranslateViewHelper will not get initialized after the first instance and therefore the member variable $this->LOCAL_LANG which holds the locallang information is empty.
I would suggest to create a LanguageRegistry (a Singleton) which holds the locallang information once per extension. Where should something like this be put? extbase or fluid?
Files
Updated by Niels Pardon over 13 years ago
- Assignee changed from Christopher Hlubek to Niels Pardon
Updated by Bastian Waidelich almost 13 years ago
- Project changed from 534 to TYPO3.Fluid
- Category deleted (
432)