#20601: intcomma and floatformat internationalization error
-------------------------------------+-------------------------------------
     Reporter:  c.schmitt@…          |                    Owner:  (none)
         Type:  New feature          |                   Status:  new
    Component:  Template system      |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
  internationalization, humanize,    |
  contrib, float, floatcomma         |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Ron):

 For the specific German case a fix:

 `'|'.join(intcomma(floatformat(amount, 2)).rsplit(',', 1)).replace(',',
 '.').replace('|', ',')`

 Maybe this helps anybody...

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20601#comment:14>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/078.ac9b73209c9df197d80f98ffcd01abeb%40djangoproject.com.

Reply via email to