mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #17217 -- Use non breaking spaces for format localization in which spaces are used. Thanks, Claude Paroz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -176,11 +176,10 @@ To customize the English formats, a structure like this would be needed::
|
||||
|
||||
where :file:`formats.py` contains custom format definitions. For example::
|
||||
|
||||
THOUSAND_SEPARATOR = ' '
|
||||
|
||||
to use a space as a thousand separator, instead of the default for English,
|
||||
a comma.
|
||||
THOUSAND_SEPARATOR = u' '
|
||||
|
||||
to use a non-breaking space (Unicode ``00A0``) as a thousand separator,
|
||||
instead of the default for English, a comma.
|
||||
|
||||
Limitations of the provided locale formats
|
||||
==========================================
|
||||
|
||||
Reference in New Issue
Block a user