Ticket #17053: formatting.txt.patch
File formatting.txt.patch, 840 bytes (added by , 13 years ago) |
---|
-
trunk/docs/topics/i18n/formatting.txt
61 61 will try to use a locale specific format whenever it outputs a value 62 62 in a template. 63 63 64 To enable number formatting with thousand separators it is necessary to set 65 :setting:`USE_THOUSAND_SEPARATOR = True <USE_THOUSAND_SEPARATOR>` in your 66 settings file. Alternatively, you could use 67 :doc:`django.contrib.humanize <ref/contrib/humanize>` to format numbers 68 in your template. 69 64 70 However, it may not always be appropriate to use localized values -- 65 71 for example, if you're outputting Javascript or XML that is designed 66 72 to be machine-readable, you will always want unlocalized values. You