#21 new
Alessandro Zarrilli

text_field should show translated separator on BigDecimal fields

Reported by Alessandro Zarrilli | December 15th, 2008 @ 01:45 AM

In a lot of european countries you use a comma to separate decimals instead of a dot: text_field doesn't currently care about number/format/separator specified in the yml localization file.
Or maybe it's ActiveRecord responsability to translate the separator?
Or maybe it's BigDecimal creator/getter/setter responsability to translate the separator?

NB: I tried to overwrite BigDecimal creator/getter/setter: everything is fine until you do an SQL update. MySQL adapter calls to_s on the BigDecimal object, and of course MySQL doesn't like a decimal field containing a comma!

Comments and changes to this ticket

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff

People watching this ticket

Pages