[FLOW3-general] Setting the current locale correctly
Karsten Dambekalns
karsten at typo3.org
Mon Oct 29 13:04:12 CET 2012
Hi.
On 21.10.12 16:08, David Sporer wrote:
> Is it possible to set the CurrentLocale only once in my switchLanguageAction
> so I don't have to create a initializeView method for every Controller?
You could solve it by having a base controller and just do the needed
setting in it's initializeAction() method.
> I've seen that there's also a setDefaultLocale() Method but that would
> change the default language for all users not only the user that visits the
> page right now right?
No, it would also be for the current request only. But setting the
current locale should be preferred, the default locale is the "last
resort", so to speak.
Regards,
Karsten
--
Karsten Dambekalns
TYPO3 Core Developer, Neos / Flow Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the FLOW3-general
mailing list