Announcement Announcement Module
No announcement yet.
Setting default locale at app starting Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting default locale at app starting

    Hi all!

    I'm currently developing a web applications which supports 3 locales:

    - es_ES
    - gl_ES
    - en_US

    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.

    Any ideas?


    P.D. I was looking at 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, 04:34 AM.