diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-02-09 18:57:22 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-02-09 18:57:22 +0000 |
| commit | e445b66fd8a2b5e931debad3c920be1345871ad9 (patch) | |
| tree | 4fd0ce4f879fa7318a01e09f86798d4551c029bd /docs | |
| parent | b926765a7c04e88a85f2360a238efde9ffe98244 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/formatting.txt | 18 |
1 files changed, 18 insertions, 0 deletions
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. |
