From e445b66fd8a2b5e931debad3c920be1345871ad9 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 9 Feb 2012 18:57:22 +0000 Subject: 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 --- docs/topics/i18n/formatting.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt index 3c8ebaf409..2ca96ed57e 100644 --- a/docs/topics/i18n/formatting.txt +++ b/docs/topics/i18n/formatting.txt @@ -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. -- cgit v1.3