mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
added German (Switzerland) localflavor formats
added documentation on the limitations of the German (Switzerland) localflavor formats Based on a patch by sspross (#16188) git-svn-id: http://code.djangoproject.com/svn/django/trunk@17472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b926765a7c
commit
e445b66fd8
2 changed files with 61 additions and 0 deletions
|
@ -180,3 +180,21 @@ where :file:`formats.py` contains custom format definitions. For example::
|
|||
|
||||
to use a space as a thousand separator, instead of the default for English,
|
||||
a comma.
|
||||
|
||||
|
||||
Limitations of the provided locale formats
|
||||
==========================================
|
||||
|
||||
Some locales use context-sensitive formats for numbers, which Djangos
|
||||
localization system cannot handle automatically.
|
||||
|
||||
|
||||
Switzerland (German)
|
||||
--------------------
|
||||
|
||||
The Swiss number formatting depends on the type of number that is being
|
||||
formatted. For monetary values, a comma is used as the thousand separator and
|
||||
a decimal point for the decimal separator, for all other numbers, a comma is
|
||||
used as decimal separator and a space as thousand separator. The locale format
|
||||
provided by Django uses the generic separators, a comma for decimal and a space
|
||||
for thousand separators.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue