#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):

 Andy, thanks for your reply. As `aaugustin` pointed out, my patch is not
 necessary in fact. Current django code is ok, it is only the documentation
 that is unclear.

 My current solution looks like this (in accordance with
 [http://docs.djangoproject.com/en/1.3/topics/i18n/localization/#format-
 localization docs]):


 {{{
 settings.py:

 FORMAT_MODULE_PATH = 'mysite.formats'
 USE_L10N = True
 USE_THOUSAND_SEPARATOR = True

 mysite/formats/ru/formats.py:

 DECIMAL_SEPARATOR = '.'

 mysite/formats/en/formats.py:

 THOUSAND_SEPARATOR = ' '

 (plus empty __init__.py in corresponding dirs of course)

 }}}

 This way I get a somewhat consistent behaviour of this feature for the
 locales I work with, which is exactly what I wanted.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15918#comment:10>
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