[TYPO3-mvc] extbase - translate label for other language
bernd wilke
t3ng at bernd-wilke.net
Thu Feb 6 09:03:41 CET 2014
Am 05.02.14 17:53, schrieb Viktor Livakivskyi:
> And talking about your case, I can see only dirty method: using
> reflection, make $LOCAL_LANG and $languageKey properties accessible,
> unset $LOCAL_LANG[$extensionName] and set $languageKey to your desired
> language - so initializeLocalization() method will re-inint labels. And
> then put it all back.
> But, I really hope, that there is much cleaner solution, because for me
> it looks now as "hack the hack".
another dirty method coming to mind:
build an eId-Service just for responding a textlabel to a key and a
language parameter
(only possible if calls to server itself are enabled)
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-project-typo3v4mvc
mailing list