Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed various non-breaking space characters from [17478] to use the…

… code representation rather than the actual character, which is too hard to overlook because it just looks like a space

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c1bdfd6f6fff0844c17853972358a2300f6aac23 1 parent 2a1a0f4
Adrian Holovaty authored February 17, 2012
2  django/conf/locale/cs/formats.py
@@ -33,5 +33,5 @@
33 33
     '%Y-%m-%d',             # '2006-10-25'
34 34
 )
35 35
 DECIMAL_SEPARATOR = ','
36  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  36
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
37 37
 NUMBER_GROUPING = 3
3  django/conf/locale/es_MX/formats.py
@@ -24,6 +24,5 @@
24 24
     '%d/%m/%y %H:%M',
25 25
 )
26 26
 DECIMAL_SEPARATOR = '.'   # ',' is also official (less common): NOM-008-SCFI-2002
27  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  27
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
28 28
 NUMBER_GROUPING = 3
29  
-
2  django/conf/locale/fr/formats.py
@@ -37,5 +37,5 @@
37 37
     '%Y-%m-%d',             # '2006-10-25'
38 38
 )
39 39
 DECIMAL_SEPARATOR = ','
40  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  40
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
41 41
 NUMBER_GROUPING = 3
2  django/conf/locale/nb/formats.py
@@ -39,5 +39,5 @@
39 39
     '%d.%m.%y',              # '25.10.06'
40 40
 )
41 41
 DECIMAL_SEPARATOR = ','
42  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  42
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
43 43
 NUMBER_GROUPING = 3
2  django/conf/locale/nn/formats.py
@@ -39,5 +39,5 @@
39 39
     '%d.%m.%y',              # '25.10.06'
40 40
 )
41 41
 DECIMAL_SEPARATOR = ','
42  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  42
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
43 43
 NUMBER_GROUPING = 3
2  django/conf/locale/ru/formats.py
@@ -36,5 +36,5 @@
36 36
     '%Y-%m-%d',           # '2006-10-25'
37 37
 )
38 38
 DECIMAL_SEPARATOR = ','
39  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  39
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
40 40
 NUMBER_GROUPING = 3
2  django/conf/locale/sk/formats.py
@@ -33,5 +33,5 @@
33 33
     '%Y-%m-%d',             # '2006-10-25'
34 34
 )
35 35
 DECIMAL_SEPARATOR = ','
36  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  36
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
37 37
 NUMBER_GROUPING = 3
2  django/conf/locale/sv/formats.py
@@ -36,5 +36,5 @@
36 36
     '%m/%d/%y',              # '10/25/06'
37 37
 )
38 38
 DECIMAL_SEPARATOR = ','
39  
-THOUSAND_SEPARATOR = u' ' # non-breaking space
  39
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
40 40
 NUMBER_GROUPING = 3
2  django/contrib/localflavor/de_CH/formats.py
@@ -39,5 +39,5 @@
39 39
 # For details, please refer to http://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de
40 40
 # (in German) and the documentation
41 41
 DECIMAL_SEPARATOR = ','
42  
-THOUSAND_SEPARATOR = u' '
  42
+THOUSAND_SEPARATOR = u'\xa0' # non-breaking space
43 43
 NUMBER_GROUPING = 3
2  docs/topics/i18n/formatting.txt
@@ -178,7 +178,7 @@ To customize the English formats, a structure like this would be needed::
178 178
 
179 179
 where :file:`formats.py` contains custom format definitions. For example::
180 180
 
181  
-    THOUSAND_SEPARATOR = u' '
  181
+    THOUSAND_SEPARATOR = u'\xa0'
182 182
 
183 183
 to use a non-breaking space (Unicode ``00A0``) as a thousand separator,
184 184
 instead of the default for English, a comma.

0 notes on commit c1bdfd6

Please sign in to comment.
Something went wrong with that request. Please try again.