number validator for entering decimals

In some locales the separator for the decimal places is . (dot eg. 12.34), but some other locales uses , (comma eg. 12,34)

In CNumberValidator the line that checks if entered text is a number is:


so it checks only for . (dot), but we should consider all situations… maybe to use decimalFormat?


Some kind of locale support would be greate, but maybe with a different name like CLocaleNumberValidator?