I am trying out Django 1.2’s spiffy new localization feature.
settings.py
USE_L10N = True
LANGUAGE_CODE = 'sv-SE'
sometemplate.html
{{32.519823}}
Is rendered as: 32.519823
In Sweden, the decimal separator should be (, comma) not (. period). Am I missing something?
In answer to my own question, it’s because
DECIMAL_SEPARATORis defined as'.'informats.pyfor the sv locale (incorrectly, IMHO).To solve this I overrided
FORMAT_MODULE_PATHusing this reference. Thanks to Brandon in #django for helping me.