Announcement Announcement Module
Collapse
No announcement yet.
ReloadableResourceBundleMessageSource unable to find message when default locale is Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ReloadableResourceBundleMessageSource unable to find message when default locale is

    Why is the spring "ReloadableResourceBundleMessageSource" unable to find the proper message associated with a code when Locale.getDefault() returns en, but able to find the proper message when it returns en_US

    Default Locale: en_US

    Code:
    key: CODE_1, Locale: Locale.US           = Hit
    key: CODE_1, Locale: Locale.CANADA       = Hit
    key: CODE_1, Locale: fr_CA               = Hit
    key: CODE_1, Locale: null (use default)  = Hit

    Default Locale: en

    Code:
    key: CODE_1, Locale: Locale.US               = Hit
    key: CODE_1, Locale: Locale.CANADA           = CODE_1
    key: CODE_1, Locale: fr_CA                   = CODE_1
    key: CODE_1, Locale: null (use default)      = CODE_1
    Last edited by yaravind; Jul 21st, 2010, 10:59 PM.
Working...
X