#35095: Monetary values in Switzerland discrepancy
-------------------------------------+-------------------------------------
     Reporter:  Andrea Angelini      |                    Owner:  Neil
         Type:                       |  Pendyala
  Cleanup/optimization               |                   Status:  assigned
    Component:                       |                  Version:  5.0
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz):

 Django has no way to differentiate formatting between monetary values and
 other values. This formatting difference is a Swiss peculiarity, AFAIK. So
 the current setting values are valid for most number, except monetary
 values. I admit the comment is not very clear about that and could be
 improved. By the way the `fr_CH` formats file could have the same comment,
 as the situation is the same.

 In my apps, I generally add an `|unlocalize` filter each time I have to
 display a monetary value, so the `.` is used to format those numbers. This
 solution is fine for Swiss-only apps, but fails in multi-country apps. We
 could imagine implementing a special `monetary` filter/tag, but it looks
 overkill if it's just for one country, considering that Swiss people will
 also understand when a comma is used for monetary values, it's just not
 the official way of printing them.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35095#comment:16>
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/0107018cffc6239d-6352146e-77b1-47be-bbe2-4b12c9a04bbd-000000%40eu-central-1.amazonses.com.

Reply via email to