#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 romibi):

 Swiss guy here.
 Keep in mind that just because the goverment specifies some formatting for
 governmental publications doesn't mean the rest of the country uses it.
 Commonly used in IT and default swiss locale settings on current operating
 systems is '.' as decimal separator for ALL values (see
 https://de.wikipedia.org/wiki/Dezimaltrennzeichen#Schweiz )
 {{{
 Im IT-Bereich ist in heute gängigen Betriebssystemen (Windows, macOS,
 Linux usw.) in der schweizspezifischen Spracheinstellung der Punkt als
 Dezimaltrennzeichen definiert, auf dem Ziffernblock schweizerischer
 Tastaturen wird ebenfalls der Punkt verwendet.
 }}}

 So my vote is: change DECIMAL_SEPARATOR to '.' and ignore the government
 link and refer to wikipedia in the documentation.

 The removal of USE_L10N and this "wrong" locale gave me quite some
 headaches when we upgraded from 2.2 to 5.0 just now.
 Glad I finally found out how to override this in a custom format file
 (https://docs.djangoproject.com/en/5.0/topics/i18n/formatting/#creating-
 custom-format-files)
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35095#comment:21>
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/0107019092b23e8a-1809b509-8f9d-412d-b60e-9c75a017d8e5-000000%40eu-central-1.amazonses.com.

Reply via email to