Opened 9 years ago

Last modified 9 years ago

#24913 closed Bug

localize filter tag not work for thousand separator then USE_L10N is False — at Initial Version

Reported by: Krupin Dmitry Owned by: nobody
Component: Internationalization Version: 1.7
Severity: Normal Keywords: localize
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

in settings.py
USE_L10N = False
USE_THOUSAND_SEPARATOR = True

it template

{% localize on %}

{{ object.price }}

{% endlocalize %}

or

{{ object.price|localize }}

but there is no affect

I think in util.formats.number_format function should be something like this

if use_l10n:

force_grouping = True

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top