[hibernate-issues] [Hibernate-JIRA] Commented: (HV-306) Falling back to system´s default locale if chosen locale was EN

Gunnar Morling (JIRA) noreply at atlassian.com
Thu Apr 15 10:26:58 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36462#action_36462 ] 

Gunnar Morling commented on HV-306:
-----------------------------------

Will add an empty ValidationMessages_en.properties file.

That way a bundle for ENGLISH exists (suppressing the fall back to the bundle for the default locale), which in turn delegates all calls to its parent bundle (which is the base bundle ValidationMessages.properties).

> Falling back to system´s default locale if chosen locale was EN
> ---------------------------------------------------------------
>
>                 Key: HV-306
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-306
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.0.2.GA
>            Reporter: uwe schaefer
>            Assignee: Gunnar Morling
>             Fix For: 4.1.0
>
>         Attachments: ValidationI18NTest.java
>
>
> When requesting interpolation for an ENGLISH locale, it is not found and the ResourceBundleMessageInterpolator falls back to the System´s default.
> Effect is, if GERMAN or FRENCH is the default Locale, you´re not going to see the english text, ever.
> I´d suggest to at least copy the 
> ValidationMessages.properties
> to
> ValidationMessages_en.properties
> to make it work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list