#16558: django.contrib.humanize filters are not well localized
--------------------------------------+-----------------------------------
Reporter: blackraven | Owner: blackraven
Type: Bug | Status: reopened
Milestone: 1.4 | Component: contrib.humanize
Version: 1.3 | Severity: Normal
Resolution: | Keywords: russian, humanize
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------+-----------------------------------
Changes (by anonymous):
* status: closed => reopened
* resolution: needsinfo =>
Comment:
Well, here's an example:
I have the following code in template:
{obj.price|intcomma}
If the object price is 2500, the output is:
'''2,500'''
disregarding of locale which is RU in my case.
The problem is, in number of countries
(http://en.wikipedia.org/wiki/Decimal_mark#Countries_using_Arabic_numerals_with_decimal_comma)
comma is decimal separator. So the output above is read as 2.500 ( two and
five hundred thousandths ).
Instead, the decimal separator should be chosen according to locale, and
in my case it should be just space char, so that my number will look like:
'''2 500'''
and any decimal number would look like:
'''1 234.56'''
Hope that makes things clear.
--
Ticket URL: <https://code.djangoproject.com/ticket/16558#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en.