Results 1 to 1 of 1

Thread: ReloadableResourceBundleMessageSource unable to find message when default locale is “

  1. #1
    Join Date
    Sep 2007
    Posts
    13

    Default ReloadableResourceBundleMessageSource unable to find message when default locale=en

    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 at 10:59 PM.

Posting Permissions

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