#15918: settings.THOUSAND_SEPARATOR is used only when the current locale does 
not
provide a value
-------------------------------------+-------------------------------------
               Reporter:  lev        |          Owner:  nobody
                   Type:             |         Status:  reopened
  Cleanup/optimization               |      Component:
              Milestone:             |  Internationalization
                Version:  1.3        |       Severity:  Normal
             Resolution:             |       Keywords:  THOUSAND_SEPARATOR
           Triage Stage:  Accepted   |      Has patch:  1
    Needs documentation:  1          |    Needs tests:  1
Patch needs improvement:  0          |  Easy pickings:  0
-------------------------------------+-------------------------------------

Comment (by lev):

 What is actually missing in the documentation is that out of 4 variables
 responsible for localized number rendering (`DECIMAL_SEPARATOR`,
 `THOUSAND_SEPARATOR`, `NUMBER_GROUPING`, `USE_THOUSAND_SEPARATOR`) only
 the last one is intended for being used in `settings.py` directly.

 The other three are supposed to be set in the corresponding `formats.py`
 files like in the example above.

 They ''can'' be set in `settings.py` but they will only be used in an
 unlikely case of the variable not set up in
 `django/conf/locale/*/formats.py` files.

 For example the very first locale, `ar`, has `DECIMAL_SEPARATOR` set, but
 it will not be used unless `NUMBER_GROUPING` (which is suspiciously
 commented out there) is set somewhere else (ie in `settings.py` or in
 `mysite/formats/ar/formats.py`).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15918#comment:11>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to