Announcement Announcement Module
Collapse
No announcement yet.
MessageSource should not translate nonexistent locales Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageSource should not translate nonexistent locales

    I'm using ResourceBundleMessageSource in spring 3.0.6-RELEASE
    I have the following translation files in my localization directory:
    - locale.en
    - locale.en_US
    - locale.en_GB
    - locale.it
    - locale.it_IT
    - locale.it_CH

    When I request to translate nonexistent locales (for example fr_FR), spring will give me the translation for Italian.
    I instead expect an exception.
    This is quite strange, do you have any help on how to avoid this behavior?
    Thank you very much

    --
    Nicoḷ
Working...
X