Improved currency handling
----------------------------------------
In changeset 1294, we changed the locale handling to reduce configuration
issues.

The livesettings system is no longer used for setting and configuring
currency.  Please look at l10n.l10n_settings for examples of configuration.
 Essentially, if your default currency is not USD, you will need to add a
new setting to your settings.py file, and configure the "currency_formats"
and "default_currency" for your country.

For example, say you had a new currency, the FOO, which you wanted to use as
your default currency, and say that it usually is written as ^value, or if
negative ^(value)

In your settings.py you would do something like this

{{{
L10N_SETTINGS = {
  'currency_formats = {
     'FOO' : {'symbol': '^', 'positive' : "^%(val)0.2f", 'negative':
"^(%(val)0.2f)", 'decimal' : '.'},
  },
  'default_currency' : 'FOO'
}
}}}

-- 
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

--

You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.


Reply via email to