Forum: Rails I18n currency locale

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
dmg (Guest)
on 2010-01-06 21:03
(Received via mailing list)
Hi Andrey,

The API with t/translation methods is far better, thanks :)

Important thing is ability to localize currencies. Locales need to
convey informations about:
- number of digits after decimal separator (which the user can
overwrite if desired),
- where to put currency sign,

for example:

        format: "%n %u"
        unit: "PLN"
        sign: "zł"

Some inspirations can be found here:

Maybe I have an old version of R18n library, but it should let you
pass BigDecimal number to locale method. For some business apps you
cannot rely on Floats (because of rounding issues).

Kind regards,
This topic is locked and can not be replied to.