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:
Jannis Leidel 2012-02-09 18:57:22 +00:00
parent b926765a7c
commit e445b66fd8
2 changed files with 61 additions and 0 deletions

View file

@ -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.