Locale Currency format

Thanks to Josh and Roland, we’ll be close to get full currency
localization !

parsing with locale settings seems to be fine (at least of amount
below billions of euros… I don’t intend to get over , I’m not Bill
Gates !)
if formatting with locale settings is fine for amounts below
thousands… it’s not above :

1,245,568,45 â?¬ (<%= product.price.format %>
1,245,568,45 (<%= product.price.amount %>

using locale settings thousand and decimal separators, it shoud be
(France and Germany at least…)

1.245.568,45

I’d like to get into it but I am just a DB (David Bowie… beginner)

kad

Kad K. wrote:

Thanks to Josh and Roland, we’ll be close to get full currency
localization !

parsing with locale settings seems to be fine (at least of amount
below billions of euros… I don’t intend to get over , I’m not Bill
Gates !)
if formatting with locale settings is fine for amounts below
thousands… it’s not above :

1,245,568,45 â?¬ (<%= product.price.format %>
1,245,568,45 (<%= product.price.amount %>

using locale settings thousand and decimal separators, it shoud be
(France and Germany at least…)

hmmm…
i’m using:

Locale.set_base_language(‘de-DE’);
Locale.set(‘de-DE’);

and getting this afterwards:
999.500,00 â?¬

ok, here it is: selected FR from the db:
select * from globalize_countries where code=‘FR’;
id | code | english_name | date_format | currency_format |
currency_code | thousands_sep | decimal_sep | currency_decimal_sep |
number_grouping_scheme
----±-----±-------------±------------±----------------±--------------±--------------±------------±---------------------±-----------------------
73 | FR | France | | %n â?¬ | EUR
| | | , | , |
western
looks like someone has forgotten to set a french thousands seperator :slight_smile:
do something like that in your db console:
update globalize_countries set thousands_sep=’.’ where code=‘FR’;

Have fun,
Roland