Results 1 to 1 of 1

Thread: Setting default locale at app starting

  1. #1
    Join Date
    Aug 2008
    Posts
    27

    Default 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?

    Thanks

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •