Announcement Announcement Module
Collapse
No announcement yet.
How to set Locale ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set Locale ?

    I would like to let user choose thier own language. But i don't know how to set Locale in LogonFormController (extends SimpleFormController). Any suggestion?

    Since
    RequestContextUtils.getLocale(Request).getLanguage ()= th
    But
    RequestContextUtils.getLocale(Request).getCountry( ) = empty string
    So currency format shows improper. Then I would like to set a default Locale and let user change it as well. Could you please give me some example?

    Thank you in advance.
    A

  • #2
    You may review countries sample from Spring distribution. It shows how to configure/use multiple Locales.
    HTH

    Comment


    • #3
      Could you please send me some link? I tried to check it in http://www.springframework.org/demo.html -> countries But it can't accessed.
      A

      Comment


      • #4
        Countires source is included in Spring distribution. Look inside $SPRING_ROOT/samples/countries.

        Comment

        Working...
        X