mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Updated Swiss number formatting in fr_CH locale
This commit is contained in:
parent
4d96649a33
commit
f2936b2e12
1 changed files with 8 additions and 2 deletions
|
@ -27,6 +27,12 @@ DATETIME_INPUT_FORMATS = [
|
|||
"%d/%m/%Y %H:%M:%S.%f", # '25/10/2006 14:30:59.000200'
|
||||
"%d/%m/%Y %H:%M", # '25/10/2006 14:30'
|
||||
]
|
||||
DECIMAL_SEPARATOR = ","
|
||||
THOUSAND_SEPARATOR = "\xa0" # non-breaking space
|
||||
|
||||
# Swiss number formatting can vary based on context (e.g. Fr. 23.50 vs 22,5 m).
|
||||
# As Django does not support context-specific formatting, these settings follow
|
||||
# common IT practices used in Swiss operating systems and applications.
|
||||
# For official government guidelines, see:
|
||||
# https://www.bk.admin.ch/bk/de/home/dokumentation/sprachen/hilfsmittel-textredaktion/schreibweisungen.html
|
||||
DECIMAL_SEPARATOR = "."
|
||||
THOUSAND_SEPARATOR = "'" # single quote
|
||||
NUMBER_GROUPING = 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue