Dec 3rd, 2008, 12:19 PM
Setting default locale at app starting
I'm currently developing a web applications which supports 3 locales:
By default, es_ES is the default locale and all works perfectly. But now I need to setup gl_ES as the default locale of the application and also allow to change it to the other posibilities.
I've read about FixedLocaleResolver, but this one doesn't allow changing locale, so it isn't valid for my purpose.
Exist any way to do this? Perhaps modifying SessionLocaleResolver... but I don't know the way to do it.
P.D. I was looking at http://static.springframework.org/sp...localeresolver and no one of the given locale managers solves my problem. One solution could be building an interceptor which overwrite the locale to gl_ES... but I don't know if this solution is the better approach.
Last edited by bLaDe00; Dec 4th, 2008 at 04:34 AM.
Tags for this Thread