Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Locale problems



******    message to minivend-users from Sakari Ailus <sakari.ailus@nic.fi>     ******

Hans-Joachim Leidinger wrote:
> ******    message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net>     ******
> Sakari Ailus schrieb:
> > ******    message to minivend-users from Sakari Ailus <sakari.ailus@nic.fi>     ******
> >
> > Locales (used here mainly in representing price information) work fine
> > when I start server, but after reconfiguring a catalog with
> > $VENDROOT/bin/minivend --reconfigure=<catalog> breaks things somehow.
> > Price information doesn't get read correctly, This doesn't seem to have
> > anything to do with locale database, removing LocaleDatabase directive
> > doesn't seem to have any effect on that.
> This is true! Any changes in locale database has no effect by
> reconfiguring the catalogs, because this file is in MEMORY. Any changes

It shouldn't be, at least Minivend creates .gdbm file for it. But this
is not the point. I'm not sure anymore if this has anything to do with
locale database. Maybe I expressed myself unclearly in last message.

The problem is this: when I start Minivend server normally, prices are
correct and it is possible to order non-integer quantity of something.
But, if I reconfigure the catalog, prices are rounded downward. If you
order non-interger quantity of a product, also the quantity is rounded
downward when price is calculated. It shouldn't be like this, should it?

> > The default locale is fi_FI.
> >
> > And another thing: we use comma instead of dot in e. g. US to separate
> > decimals, but in products database prices usually have dots, e. g.
> > 1000.01. At the end Minivend converts this dot to comma, which is good
> > thing, but still if you want to order non-integer amount of something
> > you have to use dots which is a bit confusing.
> >
> > Both of these happens on Minivend 4.04, but AFAIR also on 3.14 too.
> >
> > Any ideas?
> 
> Look into the locale database
> 
> code|en_US|de_DE|fr_FR
> 
> [DEL] (pipe symbol for tabs)
> 
> PriceDivide|1|0.5409|0.1632
> currency_symbol|$|DM|FF
> decimal_point|.|.|.

                  ^

Also you Germans (?) are using decimal dot, not comma as we Finns.

My current locale database is here (libc's (?) default settings are
wrong). I only use fi_FI locale, there is currently no need for others.

code|fi_FI|en_US|de_DE|fr_FR 
p_cs_precedes|0|1|           
decimal_point|,|.|.|.
frac_digits|2       
mon_thousands_sep| |,|,|.
mon_decimal_point|,|.|,|,
p_sep_by_space|||1      
default|1|0|0|0
PriceDivide|1|1|.5409|.1632
PriceCommas|0|0|0|0   

> default|1|0|0
> frac_digits|2|2|2
> mon_decimal_point|.|,|,
> mon_thousand_sep

Minivend reference doesn't mention this, I had this earlier too, maybe
it's from Minivend 3.?'s simple demo?

-- 
Sakari Ailus
sakari.ailus@nic.fi
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: