I haven't personally tried doing this, but according to the doc you can
specify language/country/variant on the formset when defining your
validation so that the validator will choose the best one available for
the given user's locale.
>From the validator DTD:
<!--
The "formset" element defines a set of forms for a locale.
Formsets for
specific locales can override only those fields that change. The
localization is properly scoped, so that a formset can override
just the
language, or just the country, or both.
-->
<!ELEMENT formset (constant*, form+)>
<!ATTLIST formset language CDATA #IMPLIED>
<!ATTLIST formset country CDATA #IMPLIED>
<!ATTLIST formset variant CDATA #IMPLIED>
So you would want to create four different <formset> defs (one for each
of your languages plus a default) for the form.
Jeff
-----Original Message-----
From: Stjepan Brbot [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 3:07 PM
To: [EMAIL PROTECTED]
Subject: Date validator and I18N
In my web application I deal with three languages (Croatian, German and
English). Application does have forms allowing user to input a date
value. When english locale is active user must have the ability to
insert date in english date format (mm/dd/yyyy), also croatian and
german users must have the ability to insert dates in their own date
format (dd.mm.yyyy). How to define a validation for such a situation? In
mask for date validation (in validation.xml) I can define only one date
format pattern!
Stjepan Brbot
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]