Form Validation with locale specific numbers

In our forms we have a number of numeric fields, which we would like to validate. Being in Germany, out client wants German locale, i.e. decimal comma instead of decimal point.

If I define the field as type “numeric” in the Object, the validator insists on a decimal point, otherwise it claims the value is not a number.

We’d like to keep the field as numeric, because some calculations are based on it.

I tried using a custom validator, but, again, if the field is defined as “numeric” the default validator kicks in.

So basically the question is, how can we make the form validator accept a German locale for a number?

Thank you in advance!

Baiscally the same with datepicker. The datepicker requires an english format of the date like “15-4-25”. A value in a german format (“15.4.25”) throws a not valid message.

We are starting on better l10n support now and will keep validation in mind. For now, I think the only option really is to create your own validators. Number formatting is definitely a tricky one though with the very different interpretations of , and .. But yes, the validators should take localisation into account.