#33771: Localized thousand separator
-------------------------------------+-------------------------------------
               Reporter:  srunow     |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  4.0
  system                             |       Keywords:  thousand separator
               Severity:  Normal     |  template
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Using thousand separator with |intcomma (USING_THOUSAND_SEPARATOR is not
 set) and additional |floatformat: leads to wrong localized output.

 {{{
 context = {"exfloat": 1000.01, "exint": 1000}
 [...]
 {{ exfloat|intcomma }} # output: 1.000,01 -> correct
 {{ exfloat|floatformat:2|intcomma }} # output: 1,000,01 -> wrong
 {{ exfloat|floatformat:-2|intcomma }} # output: 1,000,01 -> wrong
 {{ exint|intcomma }} # output: 1.000 -> correct
 {{ exint|floatformat:2|intcomma }} # output: 1,000,00 -> wrong
 {{ exint|floatformat:-2|intcomma }} # output: 1.000 -> correct
 }}}

 Localization is German, no possible setting following the documentation is
 fixing this.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33771>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701814097b518-23b7a84f-9506-49fb-85d0-de361c7d788b-000000%40eu-central-1.amazonses.com.

Reply via email to