[Django] #29489: Shell and default language preference

5 views
Skip to first unread message

Django

unread,
Jun 13, 2018, 5:38:39 AM6/13/18
to django-...@googlegroups.com
#29489: Shell and default language preference
-------------------------------------+-------------------------------------
Reporter: Peyman | Owner: nobody
Karimi |
Type: Bug | Status: new
Component: | Version: 2.0
Internationalization | Keywords: shell,
Severity: Normal | LANGUAGE_CODE, USE_I18N
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
When we run the django shell (./manage.py shell), the default language
code (settings.LANGUAGE_CODE) is not activated by default
(settings.USE_I18N is set to True) and user has to activate it manually by
performing something like this:

{{{
from django.conf import settings
from django.utils import translation;
translation.activate(settings.LANGUAGE_CODE)
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29489>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 13, 2018, 12:31:19 PM6/13/18
to django-...@googlegroups.com
#29489: Shell and default language preference
-------------------------------------+-------------------------------------
Reporter: Peyman Karimi | Owner: nobody

Type: Bug | Status: new
Component: | Version: 2.0
Internationalization |
Severity: Normal | Resolution:
Keywords: shell, | Triage Stage:
LANGUAGE_CODE, USE_I18N | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Sergey Fedoseev):

Duplicate of #17379?

--
Ticket URL: <https://code.djangoproject.com/ticket/29489#comment:1>

Django

unread,
Jun 13, 2018, 3:50:37 PM6/13/18
to django-...@googlegroups.com
#29489: Shell and default language preference
-------------------------------------+-------------------------------------
Reporter: Peyman Karimi | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 2.0
Internationalization |
Severity: Normal | Resolution: duplicate

Keywords: shell, | Triage Stage:
LANGUAGE_CODE, USE_I18N | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* status: new => closed
* resolution: => duplicate


Comment:

I think Serguey is right. Would be nice to have your feedback with this on
Django 2.1.

--
Ticket URL: <https://code.djangoproject.com/ticket/29489#comment:2>

Reply all
Reply to author
Forward
0 new messages