[ 
http://jira.magnolia-cms.com/browse/MGNLFORM-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tobias Mattsson updated MGNLFORM-50:
------------------------------------

    Attachment: MGNLFORM-50.patch

> i18n-problem with custom validation-error-messages
> --------------------------------------------------
>
>                 Key: MGNLFORM-50
>                 URL: http://jira.magnolia-cms.com/browse/MGNLFORM-50
>             Project: Magnolia Form Module
>          Issue Type: Improvement
>    Affects Versions: 1.1.1
>            Reporter: Hans Tobler
>            Assignee: Ondřej Chytil
>             Fix For: 1.2
>
>         Attachments: MGNLFORM-50.patch
>
>
> In the magnolia-form-module i did run into a i18n-Problem. 
>  When you submit a mail and you have required fields which you did not fill 
> out you get an error-Message, e.g. 
>  <autor-defined error-message>  Name: is required 
>  'Name' is the field-name of the form-element 
>  'is required' is the label "form.user.errorMessage.mandatory" from 
> messages_en.properties-file 
> The Problem is that this message ('is required') which is displayed to the 
> end-user is not translated to the languages (de, it, fr) we have on the 
> website. 
> As a workaround I thought i could use our own messages-files by changing the 
> attribute "i18nBasename" from the form-paragraph in the config. 
> But this does not work. The reason is that the message-file is hard-coded in 
> info.magnolia.module.form.util.FormUtil.java to 
> "info.magnolia.module.form.messages".
> FormModel.addErrorMessage() uses FormUtil 
> Suggestion for improvement: The form-module code is changed so it is possible 
> to use custom-defined-messages-files.

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




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to