[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Locale problems
****** 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
in locale database has effect by restarting the MV server only.
Otherwise you are using the locale via SQL ....
> 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|.|.|.
default|1|0|0
frac_digits|2|2|2
mon_decimal_point|.|,|,
mon_thousand_sep
mon_thousands_sep|,|,|.
p_cs_precedes|1
p_sep_by_space|||1
price_picture||DM ### ### ###,##|
products||de_products|produits
and add a new field fi_FI, use (for example)
[page href="process/locale/en_US/page/<pagename>"]English[/page]
[page href="process/locale/fr_FR/page/<pagename>"]Français[/page]
[page href="process/locale/de_DE/page/<pagename>"]Deutsch[/page]
[page href="process/locale/fi_FI/page/<pagename>"]Finland[/page]
to switch the locale!
Regards,
Joachim
--
-------------Hans-Joachim Leidinger---------------------
-
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