Kad Kerforn 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 :)
do something like that in your db console:
update globalize_countries set thousands_sep='.' where code='FR';

Have fun,
Roland

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Railsi18n-discussion mailing list
Railsi18n-discussion@rubyforge.org
http://rubyforge.org/mailman/listinfo/railsi18n-discussion

Reply via email to