[TYPO3-mvc] Use user-locale in extension

"Christian Müller (Kitsunet)" christian at kitsunet.de
Mon Jun 28 08:45:07 CEST 2010


On 27.06.2010 23:09, Thilo Schneider wrote:
> Dear list,
>
> I created my own view-helper that formats DateTime-Objects according to
> the current locale. This works like a charm for all actions called from
> the frontend, thus the dates are in my current locale.
>
> However, all actions used within the backend part of my extension seem
> to ignore the locale set. The whole backend is, as intended, in German -
> only my extension does not seem to respect this setting.
>
> Does anybody know how to get my extension to respect the system locale?
> Well, probably someone does ;)
>
> Thanks in advance,
> Thilo Schneider

locale is set in Typoscript, there is no equivalent setting for backend, 
I think setting a language does not automatically set the locale for 
that language (especially as there could be more than one possible 
locale) in backend. So I guess there is simply no locale set. If you 
need this in a module of yours, you could configure the locale as 
TSconfig setting for your mod and use that, but that would be per user 
or group, not per language.

Christian


More information about the TYPO3-project-typo3v4mvc mailing list