[opencms-dev] Webform error messages and languages

Yves Glodt yg at mind.lu
Thu Jun 4 11:39:18 CEST 2009


Thank you Mathias, it works now.

One more hint to others: I needed to edit the controlcode since the language 
was set to "en" there.

On Wednesday 03 June 2009 17:03:37 Mathias Lin | SYSVISION wrote:
> You specify the locale through the locale-property of the webform instance
> in your site. No need to set anything fixed in form.jsp.
>
> Not sure why it's not working on your side, but in my case, it works well
> when setting the locale property of the webform.
> Make sure you have added the locales you need in your site in
> opencms-system.xml, otherwise it doesn't work.
>
> Bugzilla from yg at mind.lu wrote:
> > Hi Mathias,
> >
> > I had found these files in the meantime.
> >
> > But how do I specify workplace-which file is used by the form?
> >
> > I tried setting the locale and locale-available parameters of the webform
> > as
> > well as of form,jsp with no result.
> >
> > regards,
> > Yves
> >
> > On Wednesday 03 June 2009 16:38:28 Mathias Lin | SYSVISION wrote:
> >> The property files to edit the message are here
> >> /system/modules/com.alkacon.opencms.formgenerator/classes/com/alkacon/op
> >>enc ms/formgenerator/workplace_xx.properties
> >>
> >> After editing and publishing, you need to restart the app so the changes
> >> take effect.
> >>
> >> Bugzilla from yg at mind.lu wrote:
> >> > I found another message which I am unable to translate:
> >> >
> >> > "An error occured while validating the form. Please check the
> >> > submitted values."
> >> >
> >> > On Wednesday 03 June 2009 11:54:45 Yves Glodt wrote:
> >> >> Hello,
> >> >>
> >> >> I have a multi-language website running on OpenCms, is there a way to
> >> >> change the following strings in the webform module?
> >> >>
> >> >>
> >> >> "This field is mandatory, please fill in a value"
> >> >> "All fields marked with an asterisk (*) are mandatory."
> >> >>
> >> >>
> >> >> (I need to provide them in en/de/fr/es for now, They seem to be coded
> >>
> >> in
> >>
> >> >> the webform.
> >> >>
> >> >> I could work around the last one by disabling the "Enable mandatory
> >> >> marks"-
> >> >> parameter and put the * in the input-label myself, but still, when
> >> >> submitting an incomplete form I see no way on how to translate the
> >> >> per-input- errormessages.
> >> >>
> >> >> Best regards,
> >> >> Yves
> >>
> >> -----
> >> Mathias Lin
> >> SYSVISION Ltd., China
> >> http://www.sysvision.com




More information about the opencms-dev mailing list