mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +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:
parent
d6f9c1e774
commit
75c60e8053
10 changed files with 13 additions and 14 deletions
|
@ -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
|
||||
==========================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue