Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.5
Component:
number.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2007 at 15:51 UTC
Updated:
28 Jun 2009 at 15:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
julma commentedJust thinking that in english the separator is a point whereas it is a comma in french. However the problem remains with a point.
Itcould be nice to think the validation process for french and as many langages as possible.
Comment #2
BobLouis commentedIndeed in many European coutries, the comma [,] is the decimal separator, and not the dot [.].
This is not taken into account by the module, although the issue was raised here for Drupal 4.7: http://drupal.org/node/118364
Is there an equivalent solution for Drupal 5.x?
Comment #3
Bèr Kessels commentedA ported and slightly altered version of the http://drupal.org/node/118364 patch, for Drupal 5.
Needs work, because:
- we must support thousands-separators.
- this is an ugly solution: the preg_replace pattern should rather be altered based on the separator.
- We should also support thousands separator.
All in all: the number module's decimal support needs rethinking. In the mean time this patch may help a little.
Comment #4
Bèr Kessels commented.. and the patch.
Oh, and I need to add: we abandoned this in favor of a simpler solution: textfield for price info. So I won't be the one working on this patch (hint :))
Comment #5
karens commentedThis all works differently in D6 where we allow you to define the elements to use for separators. Once the D6 work is done we can come back and try to backport some of it to D5.
Comment #6
karens commentedThis won't get done for D5.