#35306: Localisation of dates very confusing - why can't it be turned off 
anymore?
-------------------------------------+-------------------------------------
     Reporter:  Richard              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  5.0
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:  LANGUAGE_CODE,       |             Triage Stage:
  DATE_FORMAT                        |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Michael):

 I agree and also miss the `USE_L10N` setting. Removing it feels like a
 large tech company that believes they know better than you, and force
 various changes without asking you to opt in. Unlike linux where it's the
 same, unless you wish to opt in.

 Anyways if `USE_L10N` is never coming back, we need to deprecate it
 properly, its still lurking in the code base, grepping to see where its
 used, with Django 5.0.3 shows:

 {{{
 utils/cache.py|340 col 17| if settings.USE_I18N:
 utils/cache.py|420 col 49| is_accept_language_redundant =
 settings.USE_I18N
 utils/translation/trans_null.py|3 col 12| # settings.USE_I18N = False can
 use this module rather than trans_real.py.
 utils/translation/reloader.py|13 col 17| if settings.USE_I18N:
 utils/translation/__init__.py|43 col 12| # settings.USE_I18N, as late as
 possible, so that modules can be imported
 utils/translation/__init__.py|54 col 5| USE_I18N will have no effect to
 which function is served upon request. If
 utils/translation/__init__.py|55 col 33| your tests rely on changing
 USE_I18N, you can delete all the functions
 utils/translation/__init__.py|66 col 21| if settings.USE_I18N:
 conf/global_settings.py|158 col 1| USE_I18N = True
 conf/project_template/project_name/settings.py-tpl|110 col 1| USE_I18N =
 True
 conf/urls/i18n.py|13 col 21| if not settings.USE_I18N:
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35306#comment:1>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e51e69052-4934116c-2895-44a7-8a6a-71be542bb21c-000000%40eu-central-1.amazonses.com.

Reply via email to