#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:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 Replying to [comment:9 Alexander Lazarević]:
 > So the THOUSAND_SEPARATOR seems to be the non-breaking-space (as
 implemented) and not `single-quote` or `coma` (as in the PR), regardless
 of plain numbers or monetary value.

 This PR is not about values used by Django, it's about comments and docs.
 Please check previous
 [https://code.djangoproject.com/ticket/35095?replyto=9#comment:3
 comments].

 Django uses separators for **non-monetary numbers** i.e.
 {{{#!python
 DECIMAL_SEPARATOR = ","
 THOUSAND_SEPARATOR = "\xa0" # non-breaking space
 }}}

 However, both docs and comments mention that for **monetary values**
 format is different. The question is, should we change a comment to the:
 > "For monetary numbers, the DECIMAL_SEPARATOR is a . (decimal point) and
 the THOUSAND_SEPARATOR is **a , (comma).**"
 or should we change docs to the:
 > "For monetary values, a **single quote** is used as the thousand
 separator and a decimal point for the decimal separator."

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35095#comment:12>
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/0107018cfd136ad9-e26354f2-f4ce-40f4-9efa-e3d9dc3148fc-000000%40eu-central-1.amazonses.com.

Reply via email to